Re: [Qemu-devel] [fixed-up][PATCH v5 3/5] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Peter Crosthwaite
On Wed, Nov 27, 2013 at 4:12 PM, liguang wrote: > Signed-off-by: liguang > --- > default-configs/arm-softmmu.mak |1 + > hw/intc/Makefile.objs |1 + > hw/intc/sunxi-pic.c | 247 > +++ > include/hw/intc/sunxi-pic.h | 20 +++

Re: [Qemu-devel] [PATCH v5 2/5] hw/timer: add sunxi timer device

2013-11-26 Thread Li Guang
Peter Crosthwaite wrote: On Wed, Nov 27, 2013 at 3:36 PM, liguang wrote: Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 276 +++ include/hw/timer/sunxi

[Qemu-devel] [PATCHv2] qdev: Validate hex properties

2013-11-26 Thread Hannes Reinecke
strtoul(l) might overflow, in which case it'll return '-1' and set the appropriate error code. So update the calls to strtoul(l) when parsing hex properties to avoid silent overflows. Cc: Peter Maydell Cc: Eric Blake Signed-off-by: Hannes Reinecke --- hw/core/qdev-properties.c | 9 + 1

[Qemu-devel] [PATCH v2] SPARC: Fix LEON3 power down instruction

2013-11-26 Thread Sebastian Huber
Synchronize the program counter before the power down helper call otherwise interrupts will return to the wrong context. Signed-off-by: Sebastian Huber --- target-sparc/translate.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/tr

Re: [Qemu-devel] [PATCH v5 2/5] hw/timer: add sunxi timer device

2013-11-26 Thread Peter Crosthwaite
On Wed, Nov 27, 2013 at 3:36 PM, liguang wrote: > Signed-off-by: liguang > --- > default-configs/arm-softmmu.mak |2 + > hw/timer/Makefile.objs |1 + > hw/timer/sunxi-pit.c| 276 > +++ > include/hw/timer/sunxi-pit.h| 37 +++

Re: [Qemu-devel] [PATCH] virtio-net: fix the indent

2013-11-26 Thread Fam Zheng
On 2013年11月27日 15:35, Zhi Yong Wu wrote: From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- hw/net/virtio-net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index b75c753..90eca9a 100644 --- a/hw/net/virtio-net.c +++ b/hw/

[Qemu-devel] outlined TLB lookup on x86

2013-11-26 Thread Xin Tong
I am trying to implement a out-of-line TLB lookup for QEMU softmmu-x86-64 on x86-64 machine, potentially for better instruction cache performance, I have a few questions. 1. I see that tcg_out_qemu_ld_slow_path/tcg_out_qemu_st_slow_path are generated when tcg_out_tb_finalize is called. And when a

[Qemu-devel] [PATCH] virtio-net: fix the indent

2013-11-26 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- hw/net/virtio-net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index b75c753..90eca9a 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -1428,7 +1428,7 @@ static

Re: [Qemu-devel] Program counter update

2013-11-26 Thread Mar Tsan
Yes, I know about the optimization. Thank you! I'm sure we' ll "talk" again... 2013/11/27 Brendan Dolan-Gavitt > The PC is not updated after every instruction in QEMU; instead it is > updated at the end of each block. If you want to see how the update is > done, you can look at the gen_jmp_im f

Re: [Qemu-devel] console muti-head some more design input

2013-11-26 Thread Gerd Hoffmann
Hi, > So I think we probably do need treat multi-head windows as separate > input devices, and/or have > an agent in the guest to do the right thing by configuring multiple > input devices to map to multiple outputs. > > I suppose spice must do something like this already, maybe they can > tell

Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which

2013-11-26 Thread Gerd Hoffmann
Hi, > Note that in the meanwhile you can use "-device usb-host-linux", I think. That is true for 1.5 + 1.6, but in 1.7 the old non-libusb code is gone. cheers, Gerd

Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which

2013-11-26 Thread Gerd Hoffmann
On Di, 2013-11-26 at 17:44 +0100, Erik Rull wrote: > Hi Gerd, > > I only have libusb (0.1 and 1.0) installed. Is there a chance to get an > error message a bit earlier - or a warning that the usb-host support was > disabled? configure doesn't print out a libusb - disabled message when not > pas

Re: [Qemu-devel] [PATCH] piix: fix 32bit pci hole

2013-11-26 Thread Gerd Hoffmann
> > +i440fx->pci_info.w32.begin = ram_size; > But this patch also obliterates the high bound, 0xe000, which can > lead to: > - w32.end - w32.begin <= 512M, or > - a special case of the former, w32.end < w32.begin. ram_size is not the total amount of memory, it is low memory only. There i

Re: [Qemu-devel] [RFC PATCH v2 5/6] qcow2: implement bdrv_preallocate

2013-11-26 Thread Fam Zheng
On 2013年11月27日 14:01, Hu Tao wrote: On Wed, Nov 27, 2013 at 11:01:23AM +0800, Fam Zheng wrote: On 2013年11月27日 10:15, Hu Tao wrote: Signed-off-by: Hu Tao --- block/qcow2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index b054a01..a23fade 100644 -

Re: [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info

2013-11-26 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 04:59:33PM +0100, Gerd Hoffmann wrote: > > Hi, > > > > > Yes, I think it's a start. Q35 is a bit harder because of the MMIO > > > > region. > > > > > > ??? Do you mean mmconfig? That can live inside the window. > > > > Are you sure? When I tried windows crashed but m

[Qemu-devel] [fixed-up][PATCH v5 3/5] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 247 +++ include/hw/intc/sunxi-pic.h | 20 +++ 4 files changed, 269 insertions(+), 0 deletions(-) create mod

Re: [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info

2013-11-26 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 07:26:21PM +0100, Igor Mammedov wrote: > On Tue, 26 Nov 2013 16:42:16 +0100 > Gerd Hoffmann wrote: > > > Hi, > > > > > This doesn't clamp the w32.begin value into [0x8000, 0xe000], > > > which seems wrong. > > > > Why? In a 1G guest you can map pci bars at 0x4

Re: [Qemu-devel] [RFC PATCH v2 5/6] qcow2: implement bdrv_preallocate

2013-11-26 Thread Hu Tao
On Wed, Nov 27, 2013 at 11:01:23AM +0800, Fam Zheng wrote: > On 2013年11月27日 10:15, Hu Tao wrote: > >Signed-off-by: Hu Tao > >--- > > block/qcow2.c | 7 +++ > > 1 file changed, 7 insertions(+) > > > >diff --git a/block/qcow2.c b/block/qcow2.c > >index b054a01..a23fade 100644 > >--- a/block/qco

[Qemu-devel] [PATCH] hw/intc/sunxi-pic: fix irq status setting

2013-11-26 Thread liguang
Signed-off-by: liguang --- hw/intc/sunxi-pic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/intc/sunxi-pic.c b/hw/intc/sunxi-pic.c index 5fd86f9..ea75f84 100644 --- a/hw/intc/sunxi-pic.c +++ b/hw/intc/sunxi-pic.c @@ -77,7 +77,7 @@ static void sunxi_pic_set_irq(void

Re: [Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Li Guang
Peter Crosthwaite wrote: On Wed, Nov 27, 2013 at 1:36 PM, Li Guang wrote: Li Guang wrote: Peter Crosthwaite wrote: On Tue, Nov 26, 2013 at 5:22 PM, liguang wrote: Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs

[Qemu-devel] [PATCH v5 1/5] hw/ptimer: add VMSTATE_PTIMER_ARRAY

2013-11-26 Thread liguang
Signed-off-by: liguang --- include/hw/ptimer.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/hw/ptimer.h b/include/hw/ptimer.h index 28fcaf1..a9b8f1d 100644 --- a/include/hw/ptimer.h +++ b/include/hw/ptimer.h @@ -27,6 +27,9 @@ void ptimer_stop(ptimer_state *s)

[Qemu-devel] [PATCH v5 3/5] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 247 +++ include/hw/intc/sunxi-pic.h | 20 +++ 4 files changed, 269 insertions(+), 0 deletions(-) create mod

[Qemu-devel] [PATCH v5 4/5] hw/arm: add sunxi machine type

2013-11-26 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 98 ++ 2 files changed, 99 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index 3671b4

[Qemu-devel] [PATCH v5 5/5] MAINTAINERS: add myself to maintain sunxi machine

2013-11-26 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi +M

[Qemu-devel] [PATCH v5 2/5] hw/timer: add sunxi timer device

2013-11-26 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 276 +++ include/hw/timer/sunxi-pit.h| 37 + 4 files changed, 316 insertions(+), 0 deletions(-) create m

[Qemu-devel] [PATCH v5 0/5] add sunxi machine type

2013-11-26 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controll

Re: [Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Peter Crosthwaite
On Wed, Nov 27, 2013 at 1:36 PM, Li Guang wrote: > Li Guang wrote: >> >> Peter Crosthwaite wrote: >>> >>> On Tue, Nov 26, 2013 at 5:22 PM, liguang wrote: Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 +

Re: [Qemu-devel] console muti-head some more design input

2013-11-26 Thread Dave Airlie
On Fri, Nov 22, 2013 at 6:41 PM, Gerd Hoffmann wrote: > Hi, > >> > While thinking about this: A completely different approach to tackle >> > this would be to implement touchscreen emulation. So we don't have a >> > single usb-tablet, but multiple (one per display) touch input devices. >> > The

[Qemu-devel] [Bug 1254940] Re: qemu-KVM guest OS occurs many ext3-fs errors after multiple forced shutdown

2013-11-26 Thread benjamin_zb
** Description changed: Hi: I met some filesysterm errors in a sles guest on KVM. My system environment is: HOST:    suse 10, the kernel version is 2.6.32.43    Qemu-KVM 1.2    Libvirt 1.0 guest OS:    suse 10, the kernel version is 2.6.32.43 VMs use a qcow2 disk. Descripti

Re: [Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-26 Thread Li Guang
Li Guang wrote: Peter Crosthwaite wrote: On Tue, Nov 26, 2013 at 5:22 PM, liguang wrote: Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 238 +++ include

Re: [Qemu-devel] [RFC PATCH v2 0/6] qemu-img: add preallocation=full

2013-11-26 Thread Fam Zheng
On 2013年11月27日 10:15, Hu Tao wrote: This series implements full image preallocation to create a non-sparse image file at creation time, both for raw and qcow2 format. The purpose is to avoid performance deterioration of the guest cause by sparse image. This series implements full preallocation b

Re: [Qemu-devel] [RFC PATCH v2 5/6] qcow2: implement bdrv_preallocate

2013-11-26 Thread Fam Zheng
On 2013年11月27日 10:15, Hu Tao wrote: Signed-off-by: Hu Tao --- block/qcow2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index b054a01..a23fade 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2180,6 +2180,12 @@ static int qcow2_amend_options(Bloc

Re: [Qemu-devel] [RFC PATCH v2 3/6] block/raw-posix: implement bdrv_preallocate

2013-11-26 Thread Fam Zheng
On 2013年11月27日 10:15, Hu Tao wrote: Signed-off-by: Hu Tao --- block/raw-posix.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/block/raw-posix.c b/block/raw-posix.c index f836c8e..c563073 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1050,

Re: [Qemu-devel] Program counter update

2013-11-26 Thread Brendan Dolan-Gavitt
The PC is not updated after every instruction in QEMU; instead it is updated at the end of each block. If you want to see how the update is done, you can look at the gen_jmp_im function in target-i386/translate.c. -Brendan On Tue, Nov 26, 2013 at 12:51 PM, Mar Tsan wrote: > I'm a master's studen

Re: [Qemu-devel] [RFC PATCH v2 2/6] block: add BlockDriver.bdrv_preallocate.

2013-11-26 Thread Fam Zheng
On 2013年11月27日 10:15, Hu Tao wrote: This field is used to preallocate disk space for block device. Signed-off-by: Hu Tao --- block.c | 13 + include/block/block.h | 1 + include/block/block_int.h | 3 +++ 3 files changed, 17 insertions(+) diff --git a/b

Re: [Qemu-devel] [PATCH v2 2/2] full introspection support for QMP

2013-11-26 Thread Amos Kong
On Fri, Jul 19, 2013 at 04:05:16PM -0600, Eric Blake wrote: > On 07/16/2013 04:37 AM, Amos Kong wrote: > > Introduces new monitor command to query QMP schema information, > > the return data is a dynamical and nested dict/list, it contains > > s/dynamical/dynamic/ > > > the useful metadata to hel

[Qemu-devel] [RFC PATCH v2 6/6] qcow2: Add full image preallocation option

2013-11-26 Thread Hu Tao
This adds a preallocation=full mode to qcow2 image creation, which creates a non-sparse image file. Signed-off-by: Hu Tao --- block/qcow2.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index a23fade..492c5e6 100644 --- a/b

[Qemu-devel] [RFC PATCH v2 5/6] qcow2: implement bdrv_preallocate

2013-11-26 Thread Hu Tao
Signed-off-by: Hu Tao --- block/qcow2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index b054a01..a23fade 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2180,6 +2180,12 @@ static int qcow2_amend_options(BlockDriverState *bs, return 0; } +s

[Qemu-devel] [RFC PATCH v2 4/6] raw-posix: Add full image preallocation option

2013-11-26 Thread Hu Tao
This patch adds a new option preallocation for raw format, and implements full preallocation. Signed-off-by: Hu Tao --- block/raw-posix.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/block/raw-posix.c b/block/raw-posix.c index c563073..200886d 100644 --- a/block/ra

[Qemu-devel] [RFC PATCH v2 0/6] qemu-img: add preallocation=full

2013-11-26 Thread Hu Tao
This series implements full image preallocation to create a non-sparse image file at creation time, both for raw and qcow2 format. The purpose is to avoid performance deterioration of the guest cause by sparse image. This series implements full preallocation by using fallocate()/posix_fallocate()

[Qemu-devel] [RFC PATCH v2 3/6] block/raw-posix: implement bdrv_preallocate

2013-11-26 Thread Hu Tao
Signed-off-by: Hu Tao --- block/raw-posix.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/block/raw-posix.c b/block/raw-posix.c index f836c8e..c563073 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1050,6 +1050,39 @@ static int64_t raw_get_al

[Qemu-devel] [RFC PATCH v2 2/6] block: add BlockDriver.bdrv_preallocate.

2013-11-26 Thread Hu Tao
This field is used to preallocate disk space for block device. Signed-off-by: Hu Tao --- block.c | 13 + include/block/block.h | 1 + include/block/block_int.h | 3 +++ 3 files changed, 17 insertions(+) diff --git a/block.c b/block.c index 382ea71..3985133 10

[Qemu-devel] [RFC PATCH v2 1/6] block: introduce prealloc_mode

2013-11-26 Thread Hu Tao
This patch prepares for the subsequent patches. Signed-off-by: Hu Tao --- block/qcow2.c | 6 +++--- include/block/block.h | 6 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 6e5d98d..b054a01 100644 --- a/block/qcow2.c +++ b/block

[Qemu-devel] [PATCH 1/2] vmdk: Allow read only open of VMDK version 3

2013-11-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block/vmdk.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/vmdk.c b/block/vmdk.c index a7ebd0f..7c64bed 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -605,13 +605,16 @@ static int vmdk_open_vmdk4(BlockDriverState *bs, header

[Qemu-devel] [PATCH 0/2] vmdk: Allow version 3 read only open

2013-11-26 Thread Fam Zheng
According to an update on VMware Knowledge Base [KB 2064959], we should be safe to open version 3 as read only. This is meaningful as an compatibility improvement, so let's enable it. Fam Fam Zheng (2): vmdk: Allow read only open of VMDK version 3 qemu-iotests: Add sample image and test for V

[Qemu-devel] [PATCH 2/2] qemu-iotests: Add sample image and test for VMDK version 3

2013-11-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/qemu-iotests/059| 5 + tests/qemu-iotests/059.out| 5 + tests/qemu-iotests/sample_images/iotest-version3.vmdk.bz2 | Bin 0 -> 414 bytes 3 files changed, 10 insertions(+) create mode

Re: [Qemu-devel] [PATCH v2 0/2] qemu-iotests: Filter out "qemu-io> " in all tests

2013-11-26 Thread Fam Zheng
On 2013年11月20日 10:25, Fam Zheng wrote: The second patch is too large as a mail, you can pull from: https://github.com/famz/qemu.git 035-filter-qemu-io v2: Rebase to current master. [01] Add Reviewed-by for Eric. [02] Update comment to describe the command for mechanical substitut

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-26 Thread Li Guang
Igor Mammedov wrote: On Wed, 27 Nov 2013 08:15:31 +0800 Li Guang wrote: Igor Mammedov wrote: On Tue, 26 Nov 2013 08:29:27 +0800 Li Guang wrote: Igor Mammedov wrote: On Fri, 22 Nov 2013 08:57:40 +0800 Li Guangwrote: Michael S. Tsirkin wrot

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-26 Thread Igor Mammedov
On Wed, 27 Nov 2013 08:15:31 +0800 Li Guang wrote: > Igor Mammedov wrote: > > On Tue, 26 Nov 2013 08:29:27 +0800 > > Li Guang wrote: > > > > > >> Igor Mammedov wrote: > >> > >>> On Fri, 22 Nov 2013 08:57:40 +0800 > >>> Li Guang wrote: > >>> > >>> > >>> > Michael S. Tsirk

Re: [Qemu-devel] [PATCH v5 5/7] block: Parse "backing" option to reference existing BDS

2013-11-26 Thread Fam Zheng
On 2013年11月27日 00:18, Paolo Bonzini wrote: Il 26/11/2013 05:05, Fam Zheng ha scritto: +if (backing_bs && *backing_bs != '\0') { +bs->backing_hd = bdrv_find(backing_bs); +if (!bs->backing_hd) { +error_setg(errp, "Backing device not found: %s", backing_bs); +

Re: [Qemu-devel] [PATCH arm-devs v2 1/2] hw/timer: Introduce ARM A9 Global Timer.

2013-11-26 Thread Peter Crosthwaite
On Mon, Jul 15, 2013 at 11:20 PM, Peter Maydell wrote: > On 15 July 2013 06:19, wrote: >> From: Peter Crosthwaite >> >> The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. >> The timer is shared but each CPU has a private independent comparator >> and interrupt. >> >> Based

Re: [Qemu-devel] [PATCH 04/27] vl: convert -m to qemu_opts_parse()

2013-11-26 Thread Igor Mammedov
On Mon, 25 Nov 2013 13:51:03 +0100 Paolo Bonzini wrote: > Il 21/11/2013 03:38, Igor Mammedov ha scritto: > > Along with conversion extend -m option to support following parameters: > > "mem" - startup memory amount > > "slots" - total number of hotplug memory slots > > "maxmem" - maximum po

[Qemu-devel] [PATCH 04/28] vl: convert -m to QemuOpts

2013-11-26 Thread Igor Mammedov
Adds option to -m "mem" - startup memory amount For compatibility with legacy CLI if suffix-less number is passed, it assumes amount in Mb. Otherwise user is free to use suffixed number using suffixes b,k/K,M,G Signed-off-by: Igor Mammedov --- qemu-options.hx | 7 +-- vl.c| 5

[Qemu-devel] [PATCH 05/28] vl.c: extend -m option to support options for memory hotplug

2013-11-26 Thread Igor Mammedov
Add following parameters: "slots" - total number of hotplug memory slots "maxmem" - maximum possible memory "slots" and "maxmem" should go in pair and "maxmem" should be greater than "mem" for memory hotplug to be enabled. Signed-off-by: Igor Mammedov --- qemu-options.hx | 7 +-- vl.c

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-26 Thread Li Guang
Peter Crosthwaite wrote: On Tue, Nov 26, 2013 at 5:22 PM, liguang wrote: Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 98 ++ 2 files changed, 99 insertions(+), 0 deletions(-) create mode 100644 hw/ar

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-26 Thread Li Guang
Igor Mammedov wrote: On Tue, 26 Nov 2013 08:29:27 +0800 Li Guang wrote: Igor Mammedov wrote: On Fri, 22 Nov 2013 08:57:40 +0800 Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: Michael S. Tsir

Re: [Qemu-devel] [PATCH] piix: fix 32bit pci hole

2013-11-26 Thread Jordan Justen
On Tue, Nov 26, 2013 at 8:16 AM, Gerd Hoffmann wrote: > Make the 32bit pci hole start at end of ram, so all possible address > space is covered. Of course the firmware can use less than that. > Leaving space unused is no problem, mapping pci bars outside the > hole causes problems though. > > Sig

[Qemu-devel] [Bug 1255303] [NEW] ALSA underruns occurr when using QEMU

2013-11-26 Thread Francesco Turco
Public bug reported: I'm running QEMU 1.6.1 on a 64-bit Gentoo Linux system. The guest operating system is Windows 7 32-bit. I get multiple identical warning messages when using the ac97 or hda sound cards: > ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa- lib-1.0.27.2/src/pcm/p

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-26 Thread Igor Mammedov
On Tue, 26 Nov 2013 08:29:27 +0800 Li Guang wrote: > Igor Mammedov wrote: > > On Fri, 22 Nov 2013 08:57:40 +0800 > > Li Guang wrote: > > > > > >> Michael S. Tsirkin wrote: > >> > >>> On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: > >>> > >>> > Michael S. Tsirkin

Re: [Qemu-devel] [PATCH v3 05/11] AARCH64: Add AARCH64 CPU initialization, get and put registers support

2013-11-26 Thread Peter Maydell
On 27 September 2013 11:10, Mian M. Hamayun wrote: > From: "Mian M. Hamayun" > > The cpu init function tries to initialize with all possible cpu types, as > KVM does not provide a means to detect the real cpu type and simply refuses > to initialize on cpu type mis-match. By using the loop based i

Re: [Qemu-devel] sparc64 with openbios-sparc64

2013-11-26 Thread Mahmood Naderan
On Tuesday, November 26, 2013 4:51 PM, Mahmood Naderan wrote: >Hello, >Is there any news on emulating sparc64 machine with openbios-sparc64 on a >x86_64 host machine? I followed >some posts regarding this from 2010 however >didn't end-up with a conclusion.   >Regards, >Mahmood If dev

Re: [Qemu-devel] [PATCH 08/17] add unix_msgfd_lookup() to callback get_buffer

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 15:00, Lei Li ha scritto: >>> >> I think adding a byte in the middle of the stream is not reliable. >> >> Rather, you should transmit the socket always at the same place, for >> example in the first call of qemu_local_save_ram, after it has written >> the 64-bit field. > > I guess 't

Re: [Qemu-devel] [PATCH] piix: fix 32bit pci hole

2013-11-26 Thread Laszlo Ersek
On 11/26/13 17:16, Gerd Hoffmann wrote: > Make the 32bit pci hole start at end of ram, so all possible address > space is covered. Of course the firmware can use less than that. > Leaving space unused is no problem, mapping pci bars outside the > hole causes problems though. > > Signed-off-by: Ge

Re: [Qemu-devel] [PATCH] SPARC: Fix LEON3 power down instruction

2013-11-26 Thread Peter Maydell
On 25 November 2013 14:22, Sebastian Huber wrote: > The env->pc is not necessarily up-to-date in the helper function. Use > the program counter of the disassembly context instead. > > Signed-off-by: Sebastian Huber > --- > target-sparc/helper.c|6 +++--- > target-sparc/helper.h|

Re: [Qemu-devel] [PATCH v2 00/19] bsd-user: Add system call and mips/arm support.

2013-11-26 Thread Ed Maste
On 8 November 2013 11:33, Stacey Son wrote: > [v2] > > - Rebases to 1.7.0-rc0. (Requires, however, Andreas Tobler's patch to > build: see > http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg0.html) > - Fixes deadlock in the _umtx_op() system call handler. > - Fixes race condition

Re: [Qemu-devel] SEV and WFE instructions on ARM

2013-11-26 Thread Peter Maydell
On 26 November 2013 12:51, Walsh, Benjamin wrote: > I was looking at using WFE on QEMU, found that it is > implemented as a NOP, googled and I found this thread. > > I am not using this for SMP, simply to implement sleep, so the busy > loop is conceptually OK. Except, of course, that QEMU floors t

Re: [Qemu-devel] [PATCH 21/27] pc: add memory hotplug 440fx machine

2013-11-26 Thread Igor Mammedov
On Mon, 25 Nov 2013 18:00:56 +0100 Andreas Färber wrote: > Am 25.11.2013 11:41, schrieb Igor Mammedov: > > On Thu, 21 Nov 2013 17:09:27 +0100 > > Andreas Färber wrote: > > > >> Am 21.11.2013 15:34, schrieb Igor Mammedov: > >>> On Thu, 21 Nov 2013 15:13:12 +0100 > >>> Andreas Färber wrote: > >>

Re: [Qemu-devel] SEV and WFE instructions on ARM

2013-11-26 Thread Walsh, Benjamin
Hello Sebastian, I was looking at using WFE on QEMU, found that it is implemented as a NOP, googled and I found this thread. I am not using this for SMP, simply to implement sleep, so the busy loop is conceptually OK. Except, of course, that QEMU floors the host CPU at 100% in the idle loop.

Re: [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info

2013-11-26 Thread Igor Mammedov
On Tue, 26 Nov 2013 15:11:01 +0100 Laszlo Ersek wrote: > On 11/26/13 10:10, Michael S. Tsirkin wrote: > > > seabios manages to enumerate PCI with information exported from qemu > > so why can't OVMF? > > SeaBIOS and qemu duplicate logic (code) between each other. > > src/fw/pciinit.c grabs Ram

Re: [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info

2013-11-26 Thread Igor Mammedov
On Tue, 26 Nov 2013 16:42:16 +0100 Gerd Hoffmann wrote: > Hi, > > > This doesn't clamp the w32.begin value into [0x8000, 0xe000], > > which seems wrong. > > Why? In a 1G guest you can map pci bars at 0x4000 just fine. > > _CRS in acpi should declare the area where you can map pc

Re: [Qemu-devel] [PATCH for-1.7 0/2] block/drive-mirror: Reuse backing HD for sync=none

2013-11-26 Thread Anthony Liguori
Max Reitz writes: > This series fixes the drive-mirror blockjob in case of "none" sync mode > to always use the old (current) image file as the backing file of the > newly created mirrored file (in case of "absolute-paths" mode). > > It is rather important to get this into 1.7, as we will introdu

Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 18:29, Erik Rull ha scritto: > > Just a thought: > Snippet from configure: > > libusb_cflags=$($pkg_config --cflags libusb-1.0) > libusb_libs=$($pkg_config --libs libusb-1.0) > QEMU_CFLAGS="$QEMU_CFLAGS $libusb_cflags" > libs_softmmu="$libs_softmmu $l

[Qemu-devel] [ANNOUNCE] QEMU 1.7.0-rc2 is now available

2013-11-26 Thread Anthony Liguori
Hi, On behalf of the QEMU Team, I'd like to announce the availability of the third release candidate for the QEMU 1.7 release. This release is meant for testing purposes and should not be used in a production environment. http://wiki.qemu.org/download/qemu-1.7.0-rc2.tar.bz2 You can help improve

Re: [Qemu-devel] [qemu PATCH] hw/i386/pc_sysfw: support more than one flash drive

2013-11-26 Thread Jordan Justen
On Tue, Nov 26, 2013 at 5:32 AM, Laszlo Ersek wrote: > On 11/26/13 13:36, Markus Armbruster wrote: > >> Your stated purpose for multiple -pflash: >> >> This accommodates the following use case: suppose that OVMF is split in >> two parts, a writeable host file for non-volatile variable stor

[Qemu-devel] Program counter update

2013-11-26 Thread Mar Tsan
I'm a master's student and I' ve taken up a project for which I must find where the program counter update is performed *in the source code*. I've built the Android source from the git repositories and I'm working with the Android Emulator (not Qemu per se). I'm currently searching in the target-i3

Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which

2013-11-26 Thread Erik Rull
Erik Rull wrote: Hi Gerd, I only have libusb (0.1 and 1.0) installed. Is there a chance to get an error message a bit earlier - or a warning that the usb-host support was disabled? configure doesn't print out a libusb - disabled message when not passing the libusb-parameter. I tried now explici

[Qemu-devel] virtio queue in qemu

2013-11-26 Thread Yaodong Yang
Hi all,How to get the number of io requests inside the virtio queue, from a linux guest vm to a given virtual disk, in a given time?Thanks!

Re: [Qemu-devel] [PATCH 04/27] vl: convert -m to qemu_opts_parse()

2013-11-26 Thread Igor Mammedov
On Tue, 26 Nov 2013 15:49:05 +0100 Markus Armbruster wrote: > Igor Mammedov writes: > > > On Thu, 21 Nov 2013 11:12:43 +0100 > > Markus Armbruster wrote: > > > >> Igor Mammedov writes: > >> [...] > Two separate issues here: > > 1. The "no qemu_mem_opts have been specified" case > >This

Re: [Qemu-devel] [PATCH v5 4/7] block: Add checks of blocker in block operations

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 05:05, Fam Zheng ha scritto: > --- a/blockdev.c > +++ b/blockdev.c > @@ -1001,6 +1001,11 @@ SnapshotInfo > *qmp_blockdev_snapshot_delete_internal_sync(const char *device, > return NULL; > } > > +if (bdrv_op_is_blocked(bs, BLOCK_OP_TYPE_INTERNAL_SNAPSHOT_DELETE, >

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Gleb Natapov
On Tue, Nov 26, 2013 at 06:05:37PM +0200, Michael S. Tsirkin wrote: > On Tue, Nov 26, 2013 at 02:56:10PM +0200, Gleb Natapov wrote: > > On Tue, Nov 26, 2013 at 01:47:03PM +0100, Paolo Bonzini wrote: > > > Il 26/11/2013 13:40, Zhanghaoyu (A) ha scritto: > > > > When guest set irq smp_affinity, VMEXI

Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which

2013-11-26 Thread Erik Rull
Hi Gerd, I only have libusb (0.1 and 1.0) installed. Is there a chance to get an error message a bit earlier - or a warning that the usb-host support was disabled? configure doesn't print out a libusb - disabled message when not passing the libusb-parameter. I tried now explicitly with --ena

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 17:21, Avi Kivity ha scritto: >>> It's indeed safe, but I think there's a nice win to be had if we >>> drop the assumption. >> I'm not arguing with that, but a minor commoent below: >> (BTW, PCI memory writes are posted, but configuration writes are not). >>> MSIs are configured

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Gleb Natapov
On Tue, Nov 26, 2013 at 06:27:47PM +0200, Avi Kivity wrote: > On 11/26/2013 06:24 PM, Gleb Natapov wrote: > >On Tue, Nov 26, 2013 at 04:20:27PM +0100, Paolo Bonzini wrote: > >>Il 26/11/2013 16:03, Gleb Natapov ha scritto: > >I understood the proposal was also to eliminate the > >sy

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Gleb Natapov
On Tue, Nov 26, 2013 at 05:28:23PM +0100, Paolo Bonzini wrote: > Il 26/11/2013 17:24, Gleb Natapov ha scritto: > >> VCPU writes to routing table > >>e = entry from IRQ routing table > >> kvm_irq_routing_update(kvm, new); > >> VCPU resumes executio

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 04:58:53PM +0100, Paolo Bonzini wrote: > Il 26/11/2013 16:35, Avi Kivity ha scritto: > If we want to ensure, we need to use a different mechanism for > synchronization than the global RCU. QRCU would work; readers are not > wait-free but only if there is a co

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Avi Kivity
On 11/26/2013 06:28 PM, Paolo Bonzini wrote: Il 26/11/2013 17:24, Gleb Natapov ha scritto: VCPU writes to routing table e = entry from IRQ routing table kvm_irq_routing_update(kvm, new); VCPU resumes execution

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 17:24, Gleb Natapov ha scritto: >> VCPU writes to routing table >>e = entry from IRQ routing table >> kvm_irq_routing_update(kvm, new); >> VCPU resumes execution >>kvm_set_msi_irq(e, &irq); >>

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Avi Kivity
On 11/26/2013 06:24 PM, Gleb Natapov wrote: On Tue, Nov 26, 2013 at 04:20:27PM +0100, Paolo Bonzini wrote: Il 26/11/2013 16:03, Gleb Natapov ha scritto: I understood the proposal was also to eliminate the synchronize_rcu(), so while new interrupts would see the new routing table, interrupts alr

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Gleb Natapov
On Tue, Nov 26, 2013 at 04:20:27PM +0100, Paolo Bonzini wrote: > Il 26/11/2013 16:03, Gleb Natapov ha scritto: > > >>I understood the proposal was also to eliminate the > > >>synchronize_rcu(), > > >>so while new interrupts would see the new routing table, interrupts > > >>alre

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Avi Kivity
On 11/26/2013 06:11 PM, Michael S. Tsirkin wrote: On Tue, Nov 26, 2013 at 06:06:26PM +0200, Avi Kivity wrote: On 11/26/2013 05:58 PM, Paolo Bonzini wrote: Il 26/11/2013 16:35, Avi Kivity ha scritto: If we want to ensure, we need to use a different mechanism for synchronization than the global

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 06:14:27PM +0200, Gleb Natapov wrote: > On Tue, Nov 26, 2013 at 06:05:37PM +0200, Michael S. Tsirkin wrote: > > On Tue, Nov 26, 2013 at 02:56:10PM +0200, Gleb Natapov wrote: > > > On Tue, Nov 26, 2013 at 01:47:03PM +0100, Paolo Bonzini wrote: > > > > Il 26/11/2013 13:40, Zha

Re: [Qemu-devel] [PATCH v5 1/7] qapi: Add BlockOperationType enum

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 05:05, Fam Zheng ha scritto: > +# > +# @backup-source: As a backup source. See the 'drive-backup' command. > +# > +# @backup-target: As a backup target. See the 'drive-backup' command. > +# > +# @change: See the 'change' command. > +# > +# @commit: See the 'block-commi' command. bloc

Re: [Qemu-devel] [PATCH v5 5/7] block: Parse "backing" option to reference existing BDS

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 05:05, Fam Zheng ha scritto: > +if (backing_bs && *backing_bs != '\0') { > +bs->backing_hd = bdrv_find(backing_bs); > +if (!bs->backing_hd) { > +error_setg(errp, "Backing device not found: %s", backing_bs); > +return -ENOENT; > +} >

[Qemu-devel] [PATCH] piix: fix 32bit pci hole

2013-11-26 Thread Gerd Hoffmann
Make the 32bit pci hole start at end of ram, so all possible address space is covered. Of course the firmware can use less than that. Leaving space unused is no problem, mapping pci bars outside the hole causes problems though. Signed-off-by: Gerd Hoffmann --- hw/pci-host/piix.c | 10 +-

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 06:06:26PM +0200, Avi Kivity wrote: > On 11/26/2013 05:58 PM, Paolo Bonzini wrote: > >Il 26/11/2013 16:35, Avi Kivity ha scritto: > >If we want to ensure, we need to use a different mechanism for > >synchronization than the global RCU. QRCU would work; readers are n

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Avi Kivity
On 11/26/2013 05:58 PM, Paolo Bonzini wrote: Il 26/11/2013 16:35, Avi Kivity ha scritto: If we want to ensure, we need to use a different mechanism for synchronization than the global RCU. QRCU would work; readers are not wait-free but only if there is a concurrent synchronize_qrcu, which shoul

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 02:56:10PM +0200, Gleb Natapov wrote: > On Tue, Nov 26, 2013 at 01:47:03PM +0100, Paolo Bonzini wrote: > > Il 26/11/2013 13:40, Zhanghaoyu (A) ha scritto: > > > When guest set irq smp_affinity, VMEXIT occurs, then the vcpu thread will > > > IOCTL return to QEMU from hypervi

Re: [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info

2013-11-26 Thread Gerd Hoffmann
Hi, > > > Yes, I think it's a start. Q35 is a bit harder because of the MMIO > > > region. > > > > ??? Do you mean mmconfig? That can live inside the window. > > Are you sure? When I tried windows crashed but maybe I'm wrong. > Did you try some windows guests? At least it looks that way on

Re: [Qemu-devel] [PATCH rebased for-1.8] i386: pc: align gpa<->hpa on 1GB boundary (v6)

2013-11-26 Thread Marcelo Tosatti
On Mon, Nov 25, 2013 at 11:05:10PM +0200, Michael S. Tsirkin wrote: > On Mon, Nov 25, 2013 at 06:43:13PM +0100, Paolo Bonzini wrote: > > v2: condition enablement of new mapping to new machine types (Paolo) > > v3: fix changelog > > v4: rebase > > v5: ensure alignment of piecetwo on 2MB GPA (Igor) >

Re: [Qemu-devel] [RFC] create a single workqueue for each vm to update vm irq routing table

2013-11-26 Thread Paolo Bonzini
Il 26/11/2013 16:35, Avi Kivity ha scritto: If we want to ensure, we need to use a different mechanism for synchronization than the global RCU. QRCU would work; readers are not wait-free but only if there is a concurrent synchronize_qrcu, which should be rare. >>> An alternativ

  1   2   3   >