[Qemu-devel] [PATCH 1/1] virtio-rng: fix check for period_ms validity

2014-12-10 Thread Amit Shah
This was reported for this warning: hw/virtio/virtio-rng.c:150:31: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] Reported-by: dcb Suggested-by: dcb Bug: https://bugs.launchpad.net/qemu/+bug/1393486 Signed-off-by: Amit Shah --- hw/virtio/vir

Re: [Qemu-devel] New Bee : What is the canonical path.

2014-12-10 Thread boddu pavan
Thanks Poalo, This was helpful. Regards,Sai Pavan On Wednesday, December 10, 2014 6:27 PM, Paolo Bonzini wrote: On 09/12/2014 12:28, boddu pavan wrote: > Hi, > > I am new to qemu, And i need help in understanding a part of code,  Can > any one tell the use of Canonical paths of t

Re: [Qemu-devel] [PATCH] block/rbd: fix memory leak

2014-12-10 Thread Gonglei
On 2014/12/4 14:34, Gonglei (Arei) wrote: > From: Gonglei > > Variable local_err going out of scope > leaks the storage it points to. > > Cc: Markus Armbruster > Signed-off-by: Gonglei > --- > block/rbd.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Ping... > diff --g

[Qemu-devel] [PATCH RESEND v1 Part2 12/13] acpi: Add hardware implementation for memory hot unplug.

2014-12-10 Thread Tang Chen
This patch adds a new bit to memory hotplug IO port indicating that ej0 has been evaluated by guest OS. And call pc-dimm unplug cb to do the real removal. Signed-off-by: Hu Tao Signed-off-by: Tang Chen --- docs/specs/acpi_mem_hotplug.txt | 8 ++-- hw/acpi/memory_hotplug.c| 23

[Qemu-devel] [PATCH v2] rbd: print a clear error message when write beyond EOF

2014-12-10 Thread Jun Li
Currently, as rbd driver do not support dynamic growth when write beyond EOF, so just print a clear error message. Signed-off-by: Jun Li --- v2: Just use rbd_aio_write to realize error detection. --- block/rbd.c | 4 1 file changed, 4 insertions(+) diff --git a/block/rbd.c b/block/rbd.c in

[Qemu-devel] [PATCH RESEND v1 Part2 13/13] pc, acpi bios: Add memory hot unplug interface.

2014-12-10 Thread Tang Chen
From: Hu Tao This patch implements MEMORY_SLOT_EJECT_METHOD according to ACPI spec. Signed-off-by: Hu Tao Signed-off-by: Tang Chen --- hw/i386/acpi-dsdt-mem-hotplug.dsl | 11 ++- hw/i386/ssdt-mem.dsl | 5 + include/hw/acpi/pc-hotplug.h | 2 ++ 3 files changed,

[Qemu-devel] [PATCH RESEND v1 Part2 11/13] pc-dimm: Add memory hot unplug support for pc-dimm.

2014-12-10 Thread Tang Chen
Implement unplug cb for pc-dimm. It remove the corresponding memory region, and unregister vmstat. At last, it calls memory unplug cb to reset memory status and do unparenting. --- hw/i386/pc.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/hw/i386/p

[Qemu-devel] [PATCH RESEND v1 Part2 09/13] acpi, piix4: Add memory hot unplug support for piix4.

2014-12-10 Thread Tang Chen
Call memory unplug cb in piix4_device_unplug_cb(). --- hw/acpi/piix4.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index f809c3a..4ae4867 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/piix4.c @@ -377,8 +377,16 @@ static void piix

[Qemu-devel] [PATCH RESEND v1 Part2 07/13] pc-dimm: Add memory hot unplug request support for pc-dimm.

2014-12-10 Thread Tang Chen
Implement memory unplug request cb for pc-dimm, and call it in pc_machine_device_unplug_request_cb(). --- hw/i386/pc.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 27d82b1..fa8bed4 100644 --- a/hw/i386/pc.c +++

[Qemu-devel] [PATCH RESEND v1 Part2 08/13] acpi, mem-hotplug: Add unplug cb for memory device.

2014-12-10 Thread Tang Chen
Reset all memory status, and unparent the memory device. --- hw/acpi/memory_hotplug.c | 16 include/hw/acpi/memory_hotplug.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c index 3d8e398..2b0c8ca 100644 --- a/hw/

[Qemu-devel] [PATCH RESEND v1 Part2 04/13] acpi, mem-hotplug: Add unplug request cb for memory device.

2014-12-10 Thread Tang Chen
Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds unplug request cb for memory device. Add a new bool membe

[Qemu-devel] [PATCH RESEND v1 Part2 03/13] acpi, mem-hotplug: Add acpi_memory_hotplug_sci() to rise sci for memory hotplug.

2014-12-10 Thread Tang Chen
Add a new API named acpi_memory_hotplug_sci() to send memory hotplug SCI. Doing this is because this procedure will be used by other functions in the next coming patches. Signed-off-by: Tang Chen --- hw/acpi/memory_hotplug.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) dif

[Qemu-devel] [PATCH RESEND v1 Part2 06/13] acpi, ich9: Add memory hot unplug request support for ich9.

2014-12-10 Thread Tang Chen
Call memory unplug request cb in ich9_pm_device_unplug_request_cb(). --- hw/acpi/ich9.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index c48d176..841f57d 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -304,8 +304,14 @@ void i

[Qemu-devel] [PATCH RESEND v1 Part2 02/13] acpi, mem-hotplug: Add acpi_memory_get_slot_status_descriptor() to get MemStatus.

2014-12-10 Thread Tang Chen
Add a new API named acpi_memory_get_slot_status_descriptor() to obtain a single memory slot status. Doing this is because this procedure will be used by other functions in the next coming patches. Signed-off-by: Tang Chen --- hw/acpi/memory_hotplug.c | 27 +++ 1 file chan

[Qemu-devel] [PATCH RESEND v1 Part2 00/13] QEmu memory hot unplug support.

2014-12-10 Thread Tang Chen
Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch-set is based on QEmu 2.2 Hu Tao (2): acpi, piix4: Add memor

[Qemu-devel] [PATCH RESEND v1 Part2 10/13] acpi, ich9: Add memory hot unplug support for ich9.

2014-12-10 Thread Tang Chen
Call memory unplug cb in ich9_pm_device_unplug_cb(). --- hw/acpi/ich9.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 841f57d..0a8e757 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -317,8 +317,14 @@ void ich9_pm_device_un

[Qemu-devel] [PATCH RESEND v1 Part2 05/13] acpi, piix4: Add memory hot unplug request support for piix4.

2014-12-10 Thread Tang Chen
From: Hu Tao Call memory unplug request cb in piix4_device_unplug_request_cb(). Signed-off-by: Hu Tao Signed-off-by: Tang Chen --- hw/acpi/piix4.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index 4407388..f809c3a 100644 --- a/hw/

[Qemu-devel] [PATCH RESEND v1 Part1 5/5] acpi, piix4: Add unplug cb for piix4.

2014-12-10 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb for piix4, and memory and CPU hot un

[Qemu-devel] [PATCH RESEND v1 Part1 4/5] acpi, ich9: Add unplug cb for ich9.

2014-12-10 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb for ich9, and memory and CPU hot unp

[Qemu-devel] [PATCH RESEND v1 Part1 0/5] Common unplug and unplug request cb for memory and CPU hot-unplug.

2014-12-10 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. They both need pc-machine, piix4 and ich9 unplug and unplug reque

[Qemu-devel] [PATCH RESEND v1 Part2 01/13] acpi, mem-hotplug: Use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb().

2014-12-10 Thread Tang Chen
Replace string "slot" in acpi_memory_plug_cb() with MACRO PC_DIMM_SLOT_PROP. Signed-off-by: Tang Chen --- hw/acpi/memory_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c index ed39241..c6580da 100644 --- a/hw/acpi

[Qemu-devel] [PATCH RESEND v1 Part1 3/5] acpi, pc: Add unplug cb for pc machine.

2014-12-10 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb for pc machine, and memory and CPU h

[Qemu-devel] [PATCH RESEND v1 Part1 2/5] acpi, ich9: Add hotunplug request cb for ich9.

2014-12-10 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. They both need unplug request cb when the unplug operation happens. This patch adds hotunplug request cb for ich9, and memory and CPU hot unplug will base on it. --- hw/acpi/ich9.c | 7 +++ hw/isa/lpc_ich9.c | 5 +++-- i

[Qemu-devel] [PATCH RESEND v1 Part1 1/5] acpi, pc: Add hotunplug request cb for pc machine.

2014-12-10 Thread Tang Chen
Memory and CPU hot unplug are both asynchronous procedures. They both need unplug request callback to initiate unplug operation. Add unplug handler to pc machine that will be used by following CPU and memory unplug patches. --- hw/i386/pc.c | 8 1 file changed, 8 insertions(+) diff --gi

Re: [Qemu-devel] [PATCH] qmp: extend QMP to provide read/write access to physical memory

2014-12-10 Thread Bryan D. Payne
> > Look good. I believe QMP will be in between, and if it doesn't work as > well, > could you also try to use QEMU's char dev instead of limit this to unix > socket? > Sure, I'll look into that as well. -bryan

Re: [Qemu-devel] [PATCH 1/3] machine: remove qemu_machine_opts global list

2014-12-10 Thread Marcel Apfelbaum
On Wed, 2014-12-10 at 16:59 -0600, Greg Bellows wrote: > > > On 10 December 2014 at 07:19, Marcel Apfelbaum > wrote: > QEMU has support for options per machine, keeping > a global list of options is no longer necessary. > > Signed-off-by: Marcel Apfelbaum >

Re: [Qemu-devel] [PATCH] qmp: extend QMP to provide read/write access to physical memory

2014-12-10 Thread Fam Zheng
On Wed, 12/10 21:33, Bryan D. Payne wrote: > > By "evidence", I mean actual numbers for actual QEMU code. Nothing > >> sophisticated, just use your new interface in a way you consider > >> relevant for your own use case, then approximate this use with existing > >> interfaces. The approximation c

[Qemu-devel] [PATCH v2 1/2] e1000: Clear MDIC register when PHY addr is invalid

2014-12-10 Thread Richard Tollerton
Some drivers probe PHY addresses beyond the first one, and also (unfortunately) don't check for MDIC_ERROR on reads. It appears that the driver assumes that the data reads will return zero in this case (invalid PHY address). Anecdotally, hardware is believed to do this; but qemu wasn't, and instead

[Qemu-devel] [PATCH v2 2/2] e1000: decrement RDT if equal to RDH

2014-12-10 Thread Richard Tollerton
Some drivers set RDT=RDH. Oddly, this works on real hardware. To work around this, autodecrement RDT when this happens. Signed-off-by: Richard Tollerton Signed-off-by: Jeff Westfahl --- hw/net/e1000.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/net/e1000.c b/hw/net/e1000.c inde

[Qemu-devel] [PATCH v2 0/2] e1000: fixes for Phar Lap ETS

2014-12-10 Thread Richard Tollerton
The 8254x driver in certain versions of Phar Lap ETS hasn't been initializing the e1000 device properly in qemu. It looks like the driver is relying on two specific pieces of behavior which (anecdotally) exist in hardware, although I can't cite any datasheets on the matter; in any case, these two p

[Qemu-devel] vhost_user: How to send memory info

2014-12-10 Thread Linhaifeng
On 2014/12/11 11:10, Linhaifeng wrote: > Hi,all > > Yestoday i tested the set_mem_table message found that qemu not send all the > memory info(fd and size) when > VM memory size is 2G and have two numa nodes(two hugepage files).If VM memory > size is 4G and have two numa nodes > will send all

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Tony Breeds
Chris, I've read through 1292234 and I'll have a play with your reproducer locally and see if I can gain any insight. I'm sorry my fix didn't help 1292234, but glad you can't hit 1368815 with upstream, I was kinda having kittens here ;P -- You received this bug notification because you are a me

[Qemu-devel] [RFC PATCH 2/3] pseries: Add more parameter validation in RTAS time of day functions

2014-12-10 Thread David Gibson
Currently, the RTAS time of day functions only partially validate the number of parameters they receive and return. Because of how the parameters are used, this is unlikely to lead to a crash, but it's messy. This patch adds the missing checks. Signed-off-by: David Gibson --- hw/ppc/spapr_rtc.

[Qemu-devel] [RFC PATCH 0/3] pseries: Fix and extend PAPR RTC implementation

2014-12-10 Thread David Gibson
At the moment, the PAPR RTC implementation (actually a paravirt firmware interface, rather than a normal device) works directly off host time, and so doesn't respect the options such as clock=vm which can be specified in the -rtc command line option. This series is a first cut at addressing this.

[Qemu-devel] [RFC PATCH 3/3] pseries: Make RTAS time of day functions respect -rtc options

2014-12-10 Thread David Gibson
In the 'pseries' machine the real time clock is provided by a paravirtualized firmware interface rather than a device per se; the RTAS get-time-of-day and set-time-of-day calls. Out current implementations of those work directly off host time (with an offset), not respecting options such as clock=

[Qemu-devel] [RFC PATCH 1/3] pseries: Move sPAPR RTC code into its own file

2014-12-10 Thread David Gibson
At the moment the RTAS (firmware/hypervisor) time of day functions are implemented in spapr_rtas.c along with a bunch of other things. Since we're going to be expanding these a bit, move the RTAS RTC related code out into new file spapr_rtc.c. Also add its own initialization function, spapr_rtc_i

Re: [Qemu-devel] [PATCH 4/4] block: vhdx - set .bdrv_has_zero_init to bdrv_has_zero_init_1

2014-12-10 Thread Lokesha, Amulya
Hi, I raised a bug https://bugs.launchpad.net/qemu/+bug/1399191 in the qemu bugzilla and immediately started getting these patch mails. But, I am not seeing any update in the bugzilla site. Till now I have got 4 patch mails regarding the issue. Please let me know which patch I should apply. Als

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Chris J Arges
Just to clarify it's bug 1292234 in the previous comment. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368815 Title: qemu-img convert intermittently corrupts output images Status in OpenStack Co

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Chris J Arges
Tony, Yea, its a different bug. I tested with the above patched package and upstream qemu from git, and I can still hit bug 129224. I was hoping this also fixed my issue, but unfortunately it seems to be a different issue that occurs when using the same types of filesystems. I have a solid reprodu

Re: [Qemu-devel] [PATCH] qmp: extend QMP to provide read/write access to physical memory

2014-12-10 Thread Bryan D. Payne
> By "evidence", I mean actual numbers for actual QEMU code. Nothing >> sophisticated, just use your new interface in a way you consider >> relevant for your own use case, then approximate this use with existing >> interfaces. The approximation can be very rough. For instance, showing >> that do

Re: [Qemu-devel] [PATCH] rbd: print a clear error message when write beyond EOF

2014-12-10 Thread Jun Li
On Wed, 12/10 13:48, Josh Durgin wrote: > On 12/10/2014 07:47 AM, Jun Li wrote: > >Currently, as rbd driver do not support dynamic growth when write beyond EOF, > >so just print a clear error message. > > > >Signed-off-by: Jun Li > >--- > > block/rbd.c | 14 ++ > > 1 file changed, 14

[Qemu-devel] How to send memory info

2014-12-10 Thread Linhaifeng
Hi,all Yestoday i tested the set_mem_table message found that qemu not send all the memory info(fd and size) when VM memory size is 2G and have two numa nodes(two hugepage files).If VM memory size is 4G and have two numa nodes will send all the memory info. Here is my understand,is this right?

Re: [Qemu-devel] [PATCH v2 04/10] vnc: switch to QemuOpts, allow multiple servers

2014-12-10 Thread Gonglei
On 2014/12/10 17:37, Gerd Hoffmann wrote: > This patch switches vnc over to QemuOpts, and it (more or less > as side effect) allows multiple vnc server instances. > > Signed-off-by: Gerd Hoffmann > --- > include/ui/console.h | 4 +- > qmp.c| 15 ++- > ui/vnc.c | 2

[Qemu-devel] [PATCH v3 RESEND 6/6] pci: introduce PCI_DEVFN_AUTO

2014-12-10 Thread Hu Tao
Introduce PCI_DEVFN_AUTO rather than using -1 in code. Signed-off-by: Hu Tao --- hw/pci/pci.c | 5 ++--- include/hw/pci/pci.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 371699c..73c7dec 100644 --- a/hw/pci/pci.c +++ b/hw/pci/p

Re: [Qemu-devel] [PATCH v3 6/6] pci: introduce PCI_DEVFN_AUTO

2014-12-10 Thread Hu Tao
On Thu, Dec 11, 2014 at 10:20:28AM +0800, Hu Tao wrote: > Introduce PCI_DEVFN_AUTO rather than using -1 in code. > > Signed-off-by: Hu Tao > --- > hw/core/qdev-properties.c | 1 + > hw/pci/pci.c | 5 ++--- > include/hw/pci/pci.h | 2 ++ > 3 files changed, 5 insertions(+), 3 del

Re: [Qemu-devel] [PATCH RESEND for 2.3 5/6] migration: optimize xbzrle by reducing data copy

2014-12-10 Thread ChenLiang
On 2014/12/10 18:39, Dr. David Alan Gilbert wrote: > * Juan Quintela (quint...@redhat.com) wrote: >> wrote: >>> From: ChenLiang >>> >>> Signed-off-by: ChenLiang >>> Signed-off-by: Gonglei >>> Reviewed-by: Dr. David Alan Gilbert >>> --- >>> arch_init.c | 8 +++- >>> 1 file changed, 3 inse

[Qemu-devel] [PATCH v3 6/6] pci: introduce PCI_DEVFN_AUTO

2014-12-10 Thread Hu Tao
Introduce PCI_DEVFN_AUTO rather than using -1 in code. Signed-off-by: Hu Tao --- hw/core/qdev-properties.c | 1 + hw/pci/pci.c | 5 ++--- include/hw/pci/pci.h | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-propert

Re: [Qemu-devel] [PATCH RESEND for 2.3 0/6] xbzrle: optimize the xbzrle

2014-12-10 Thread ChenLiang
On 2014/12/10 18:09, Amit Shah wrote: > On (Wed) 10 Dec 2014 [08:03:33], Amit Shah wrote: >> On (Mon) 24 Nov 2014 [19:55:46], arei.gong...@huawei.com wrote: >>> From: ChenLiang >>> >>> Hi, >>> >>> This set of patches rebase on >>> https://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg04956.

[Qemu-devel] [PATCH v3 3/6] pci: define PCI_HOST_BRIDGE_CONFIG_ADDR and PCI_HOST_BRIDGE_CONFIG_DATA.

2014-12-10 Thread Hu Tao
PCI_HOST_BRIDGE_CONFIG_ADDR and PCI_HOST_BRIDGE_CONFIG_DATA are defined in PCI specification, so move them to common place. Signed-off-by: Hu Tao Reviewed-by: Marcel Apfelbaum --- hw/pci-host/piix.c| 8 hw/pci-host/prep.c| 6 -- hw/pci-host/q35.c | 8

[Qemu-devel] [PATCH v3 2/6] pci: introduce pci_host_config_enabled()

2014-12-10 Thread Hu Tao
This makes code more readable. Signed-off-by: Hu Tao Reviewed-by: Marcel Apfelbaum --- hw/mips/gt64xxx_pci.c | 4 ++-- hw/pci/pci_host.c | 5 +++-- include/hw/pci/pci_host.h | 5 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt

[Qemu-devel] [PATCH v3 4/6] pci: remove the limit parameter of pci_host_config_read_common

2014-12-10 Thread Hu Tao
Since the limit parameter is always set to the size of pci device's configuration space, and we can determine the size from the type of pci device. Signed-off-by: Hu Tao --- hw/pci/pci_host.c | 15 +++ hw/pci/pcie_host.c| 9 + hw/ppc/spapr_pci.c| 3 +

[Qemu-devel] [PATCH v3 0/6] Some PCI related cleanup patches

2014-12-10 Thread Hu Tao
Hi, This is v3 of PCI clenaup series. See each patch for the detail. Regards, Hu changes: v3: - rebase on top of 7fb8da2b886, all 5 patches applied cleanly. - new patch: pci: introduce PCI_DEVFN_AUTO v2: - remove patch 3 from v1 which is incorrect. - rename defined macros as per Marcel

[Qemu-devel] [PATCH v3 1/6] pci: reorganize QEMU_PCI_CAP_*

2014-12-10 Thread Hu Tao
This makes code more readable. Signed-off-by: Hu Tao Reviewed-by: Marcel Apfelbaum --- include/hw/pci/pci.h | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index c352c7b..b18759a 100644 ---

[Qemu-devel] [PATCH v3 5/6] pci: remove the limit parameter of pci_host_config_write_common

2014-12-10 Thread Hu Tao
Since the limit parameter is always set to the size of pci device's configuration space, and we can determine the size from the type of pci device. Signed-off-by: Hu Tao --- hw/pci/pci_host.c | 13 ++--- hw/pci/pcie_host.c| 9 + hw/ppc/spapr_pci.c| 3 +--

Re: [Qemu-devel] [PATCH v2 03/10] vnc: add display id to acl names

2014-12-10 Thread Gonglei
On 2014/12/10 17:37, Gerd Hoffmann wrote: > In case the display id is "default" (which is the one you get if you > don't explicitly assign one) we keep the old name scheme, without > display, for backward compatibility reasons. > > Signed-off-by: Gerd Hoffmann > --- > ui/vnc.c | 22

Re: [Qemu-devel] [PATCH v2 02/10] vnc: remove unused DisplayState parameter, add id instead.

2014-12-10 Thread Gonglei
On 2014/12/10 17:37, Gerd Hoffmann wrote: > DisplayState isn't used anywhere, drop it. Add the vnc server ID as > parameter instead, so it is possible to specify the server instance. > > Signed-off-by: Gerd Hoffmann > --- > include/ui/console.h | 16 > ui/vnc.c | 2

Re: [Qemu-devel] [PATCH v2 01/10] vnc: remove vnc_display global

2014-12-10 Thread Gonglei
On 2014/12/10 17:37, Gerd Hoffmann wrote: > Replace with a vnc_displays list, so we can have multiple vnc server > instances. Add vnc_server_find function to lookup a display by id. > With no id supplied return the first vnc server, for backward > compatibility reasons. > > It is not possible (y

[Qemu-devel] [PATCH] linuxboot: fix loading old kernels

2014-12-10 Thread Paolo Bonzini
Old kernels that used high memory only allowed the initrd to be in the first 896MB of memory. If you load the initrd above, they complain that "initrd extends beyond end of memory". In order to fix this, while not breaking machines with small amounts of memory fixed by cdebec5 (linuxboot: compute

[Qemu-devel] [PATCH v2 2/2] target-mips: Set GDB register widths correctly

2014-12-10 Thread Maciej W. Rozycki
Set register widths in the GDB stub as follows: - for the system emulation mode -- to the native register size of the processor selected, any MIPS I, MIPS II or MIPS32 (any revision) processor will have 32-bit general purpose registers and any MIPS III, MIPS IV or MIPS64 (again, any revis

[Qemu-devel] [PATCH v2 1/2] target-mips: Rework ABIs to allow all required configurations

2014-12-10 Thread Maciej W. Rozycki
Rework the MIPS ABIs and CPU emulations available according to the following target list: - mips|mipsel -- 32-bit CPUs only, system and user emulation mode, o32 user ABI, - mips64|mips64el -- 32-bit and 64-bit CPUs, system and user emulation

Re: [Qemu-devel] [PATCH for-2.3 0/2] block: Fix for trailing whitespace in qemu-img create and its tests

2014-12-10 Thread Fam Zheng
On Wed, 12/10 13:50, Markus Armbruster wrote: > Fam Zheng writes: > > > This will make it easier to keep checkpatch.pl happy. > > > > Fam Zheng (2): > > qemu-iotests: Remove traling whitespaces in *.out > > block: Don't add trailing space in "Formating..." message > > Sounds like PATCH 1 bre

Re: [Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Maciej W. Rozycki
On Wed, 10 Dec 2014, Peter Maydell wrote: > > Except that apart from coming to an agreement someone has to make it > > happen yet. ;) > > Ah, but I'm happy with the current state of the codebase... Ack. > > Fair enough, I want to move forward though. Would it make you happy if I > > dropped

Re: [Qemu-devel] [PATCH 2/2] target-arm: Add checks that cpreg raw accesses are handled

2014-12-10 Thread Greg Bellows
On 10 December 2014 at 16:50, Peter Maydell wrote: > On 10 December 2014 at 22:26, Greg Bellows > wrote: > > > > > > On 9 December 2014 at 13:46, Peter Maydell > wrote: > >> +static bool raw_accessors_valid(const ARMCPRegInfo *ri) > >> +{ > >> +/* Return true if a raw access on this registe

Re: [Qemu-devel] [PATCH 1/2] target-arm: Split NO_MIGRATE into ALIAS and NO_RAW

2014-12-10 Thread Greg Bellows
On 10 December 2014 at 16:46, Peter Maydell wrote: > On 10 December 2014 at 22:01, Greg Bellows > wrote: > > > > > > On 9 December 2014 at 13:46, Peter Maydell > wrote: > >> > >> /* TimerValue views: a 32 bit downcounting view of the underlying > >> state */ > >> { .name = "CNTP_TVAL"

Re: [Qemu-devel] [PATCH 1/3] machine: remove qemu_machine_opts global list

2014-12-10 Thread Greg Bellows
On 10 December 2014 at 07:19, Marcel Apfelbaum wrote: > QEMU has support for options per machine, keeping > a global list of options is no longer necessary. > > Signed-off-by: Marcel Apfelbaum > --- > hw/core/machine.c | 45 + > hw/i386/pc.c | 7 + > hw/ppc

Re: [Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Peter Maydell
On 10 December 2014 at 22:14, Maciej W. Rozycki wrote: > On Wed, 10 Dec 2014, Peter Maydell wrote: >> > As noted in 0/3 ideally we'd handle all ELF flavours with a single >> > binary. Then we could have two system configurations only, mips|mipsel (a >> > limited configuration for 32-bit host op

Re: [Qemu-devel] [PATCH 2/2] target-arm: Add checks that cpreg raw accesses are handled

2014-12-10 Thread Peter Maydell
On 10 December 2014 at 22:26, Greg Bellows wrote: > > > On 9 December 2014 at 13:46, Peter Maydell wrote: >> +static bool raw_accessors_valid(const ARMCPRegInfo *ri) >> +{ >> +/* Return true if a raw access on this register is OK (ie will not >> + * fall into the assert in raw_read() or r

Re: [Qemu-devel] [PATCH 1/2] target-arm: Split NO_MIGRATE into ALIAS and NO_RAW

2014-12-10 Thread Peter Maydell
On 10 December 2014 at 22:01, Greg Bellows wrote: > > > On 9 December 2014 at 13:46, Peter Maydell wrote: >> >> /* TimerValue views: a 32 bit downcounting view of the underlying >> state */ >> { .name = "CNTP_TVAL", .cp = 15, .crn = 14, .crm = 2, .opc1 = 0, >> .opc2 = 0, >> - .type

Re: [Qemu-devel] [PATCH 2/2] target-arm: Add checks that cpreg raw accesses are handled

2014-12-10 Thread Greg Bellows
On 9 December 2014 at 13:46, Peter Maydell wrote: > Add assertion checking when cpreg structures are registered that they > either forbid raw-access attempts or at least make an attempt at > handling them. Also add an assert in the raw-accessor-of-last-resort, > to avoid silently doing a read or

Re: [Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Maciej W. Rozycki
On Wed, 10 Dec 2014, Peter Maydell wrote: > > This is a tricky change, the system emulation mode configuration also has > > an ELF loader (invoked with the -kernel option) and as such is also > > affected. There are three MIPS ELF flavours corresponding to the three > > ABIs: ELF32 no-ABI2 for o

Re: [Qemu-devel] [PATCH 2/2] atapi migration: Throw recoverable error to avoid recovery

2014-12-10 Thread Paolo Bonzini
On 09/12/2014 19:15, Dr. David Alan Gilbert (git) wrote: > (With the previous atapi_dma flag recovery) > If migration happens between the ATAPI command being written and the > bmdma being started, the DMA is dropped. Eventually the guest times > out and recovers, but that can take many seconds.

Re: [Qemu-devel] [PATCH 1/2] target-arm: Split NO_MIGRATE into ALIAS and NO_RAW

2014-12-10 Thread Greg Bellows
On 9 December 2014 at 13:46, Peter Maydell wrote: > We currently mark ARM coprocessor/system register definitions with > the flag ARM_CP_NO_MIGRATE for two different reasons: > 1) register is an alias on to state that's also visible via >some other register, and that other register is the one

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Tony Breeds
Hi Chris, Markus' rework will not reintroduce this bug as it completely removes all fiemap code. bug 129224 is a different issue, I'll comment on that bug. You say: you encounter issues with upstream with ^extent and ext3 filesystems. Just to be clear: Are you saying that *this* bug is still a

Re: [Qemu-devel] [PATCH] rbd: print a clear error message when write beyond EOF

2014-12-10 Thread Josh Durgin
On 12/10/2014 07:47 AM, Jun Li wrote: Currently, as rbd driver do not support dynamic growth when write beyond EOF, so just print a clear error message. Signed-off-by: Jun Li --- block/rbd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/block/rbd.c b/block/rbd.c index 5

Re: [Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Peter Maydell
On 10 December 2014 at 20:29, Maciej W. Rozycki wrote: > On Wed, 10 Dec 2014, Peter Maydell wrote: > >> > Index: qemu-git-trunk/default-configs/mipsn32-softmmu.mak >> > Index: qemu-git-trunk/default-configs/mipsn32el-softmmu.mak >> > Index: qemu-git-trunk/default-configs/mipsn64el-linux-user.mak >

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Dmitry Mescheryakov
Filed a separate issue for MOS https://bugs.launchpad.net/mos/+bug/1401261 ** No longer affects: mos -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368815 Title: qemu-img convert intermittently co

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Chris J Arges
** Tags removed: verification-needed-utopic ** Tags added: verification-done-utopic -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368815 Title: qemu-img convert intermittently corrupts output imag

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Chris J Arges
Looking at the fixes, I also see the following commits remove the above changes, which could mean we might encounter this again: c4875e5 raw-posix: SEEK_HOLE suffices, get rid of FIEMAP d1f06fe raw-posix: The SEEK_HOLE code is flawed, rewrite it Note there is also a related issue: bug 1292234 So

Re: [Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Maciej W. Rozycki
On Wed, 10 Dec 2014, Peter Maydell wrote: > > Index: qemu-git-trunk/default-configs/mipsn32-softmmu.mak > > Index: qemu-git-trunk/default-configs/mipsn32el-softmmu.mak > > Index: qemu-git-trunk/default-configs/mipsn64el-linux-user.mak > > Index: qemu-git-trunk/default-configs/mipsn64el-softmmu.mak

Re: [Qemu-devel] [PATCH 2/2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-10 Thread Michael S. Tsirkin
On Wed, Dec 10, 2014 at 08:43:55PM +0100, Igor Mammedov wrote: > On Wed, 10 Dec 2014 20:28:01 +0200 > "Michael S. Tsirkin" wrote: > > > On Wed, Dec 10, 2014 at 06:39:49PM +0100, Igor Mammedov wrote: > > > On Wed, 10 Dec 2014 19:13:59 +0200 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Wed,

Re: [Qemu-devel] [PATCH 2/2] atapi migration: Throw recoverable error to avoid recovery

2014-12-10 Thread Dr. David Alan Gilbert
* John Snow (js...@redhat.com) wrote: > What makes me the most curious is how this plays out in Windows if this case > is triggered. Throw a trace around the fake error and see if you can't > observe it getting called during a pingpong test while Windows reads a CD. I've not managed to trigger it

Re: [Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to exec-all.h

2014-12-10 Thread Peter Maydell
On 10 December 2014 at 19:26, Eduardo Habkost wrote: > Signed-off-by: Eduardo Habkost > --- > exec.c | 1 - > hw/virtio/virtio.c | 1 - > include/exec/exec-all.h | 2 ++ > 3 files changed, 2 insertions(+), 2 deletions(-) I thought this prototype was deliberately not in a g

Re: [Qemu-devel] [PATCH 2/2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-10 Thread Igor Mammedov
On Wed, 10 Dec 2014 20:28:01 +0200 "Michael S. Tsirkin" wrote: > On Wed, Dec 10, 2014 at 06:39:49PM +0100, Igor Mammedov wrote: > > On Wed, 10 Dec 2014 19:13:59 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Dec 10, 2014 at 05:45:58PM +0100, Igor Mammedov wrote: > > > > On Wed, 10 Dec

Re: [Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Peter Maydell
On 10 December 2014 at 18:53, Maciej W. Rozycki wrote: > Mechanically add new n32/n64 configuration files copying the relevant > preexisting ones, fixing the system emulation configuration build, that > breaks due to the lack of the respective configuration files, for the > `mipsn32' and `mipsn32e

[Qemu-devel] [PATCH v3 6/7] tests: test-x86-cpu: Add TCG feature bit initialization test

2014-12-10 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- tests/test-x86-cpu.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tests/test-x86-cpu.c b/tests/test-x86-cpu.c index b6e4382..fb3de05 100644 --- a/tests/test-x86-cpu.c +++ b/tests/test-x86-cpu.c @@ -54,6 +54,30 @@ static void tes

[Qemu-devel] [PATCH v3 3/7] tests: Make test-x86-cpuid target-specific

2014-12-10 Thread Eduardo Habkost
Instead of using a test-specific hack to add -I$(SRC_PATH)/target-i386, add test-x86-cpuid to $(test-obj-x86_64-softmmu-y). Signed-off-by: Eduardo Habkost --- tests/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 85ac430..f

[Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to exec-all.h

2014-12-10 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- exec.c | 1 - hw/virtio/virtio.c | 1 - include/exec/exec-all.h | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 71ac104..ed5 100644 --- a/exec.c +++ b/exec.c @@ -2845,7 +2845,6 @@ int cpu_mem

[Qemu-devel] [PATCH v3 4/7] tests: Add unit test for X86CPU code

2014-12-10 Thread Eduardo Habkost
The unit test includes target-i386/cpu.c instead of simply linking against cpu.o because the test code will use static variables/functions from cpu.c. Reasoning for each object file included in the test binary: * qom/cpu.o - for TYPE_CPU. Dependencies: * qom/qom-qobject.o * qom/qdev.o - for T

[Qemu-devel] [PATCH v3 5/7] target-i386: Isolate enabled-by-default features to a separate array

2014-12-10 Thread Eduardo Habkost
This will make it easier to write unit tests for the feature initialization logic. Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index e9df33e..b6b3c4f 100644 --- a/targe

[Qemu-devel] [PATCH v3 7/7] tests: test-x86-cpu: Add KVM feature bit initialization test

2014-12-10 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- tests/test-x86-cpu.c | 90 1 file changed, 90 insertions(+) diff --git a/tests/test-x86-cpu.c b/tests/test-x86-cpu.c index fb3de05..20842c5 100644 --- a/tests/test-x86-cpu.c +++ b/tests/test-x86-cpu.c @@ -78,

[Qemu-devel] [PATCH v3 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code

2014-12-10 Thread Eduardo Habkost
Changes v2 -> v3: * Extra KVM "host" CPU model test cases * Move target_words_bigendian() prototype to exec-all.h Changes v1 -> v2: * Make dependency list of test binary much simpler, now that cpus.o was removed. Eduardo Habkost (7): Move target_words_bigendian() prototype to exec-all.h

[Qemu-devel] [PATCH v3 2/7] tests: Support target-specific unit tests

2014-12-10 Thread Eduardo Habkost
To make unit tests that depend on target-specific files, use check-unit--y and test-obj--y. Note that the qtest test cases were per-*arch* (e.g. i386, mips, ppc), not per-*target* (e.g. i386-softmmu, x86_64-linux-user), because they implicitly apply only to the -softmmu targets. Target-specific un

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Vladimir Kuklin
** Also affects: mos Importance: Undecided Status: New ** Changed in: mos Status: New => Triaged ** Changed in: mos Importance: Undecided => Critical ** Changed in: mos Assignee: (unassigned) => MOS Linux (mos-linux) ** Changed in: mos Milestone: None => 6.0 -- Yo

Re: [Qemu-devel] [QEMU patch 2/2] kvm: allow configuration of tsc deadline timer advancement

2014-12-10 Thread Paolo Bonzini
On 10/12/2014 19:39, Radim Krčmář wrote: > 2014-12-10 18:55+0100, Paolo Bonzini: >> Well, my preferred choice would be automatic adjustment with a module >> parameter. If we need manual tuning, per-CPU would be my choice, but >> automatic is nicer anyway. :) > > I agree with Paolo, and think it

[Qemu-devel] [PATCH 3/3] target-mips: Set GDB register widths correctly

2014-12-10 Thread Maciej W. Rozycki
Set register widths in the GDB stub as follows: - for the system emulation mode -- to the native register size of the processor selected, any MIPS I, MIPS II or MIPS32 (any revision) processor will have 32-bit general purpose registers and any MIPS III, MIPS IV or MIPS64 (again, any revis

[Qemu-devel] [PATCH 2/3] target-mips: Rework ABIs to allow all required configurations

2014-12-10 Thread Maciej W. Rozycki
Rework the MIPS ABIs and CPU emulations available according to the following target list: - mips|mipsel -- 32-bit CPUs only, o32 user and GDB ABI, - mips64|mips64el -- 32-bit and 64-bit CPUs, o32 user and GDB ABI, - mipsn32|mipsn32el -- 64-bit CPUs only, n32 user and GDB ABI, - mipsn64

[Qemu-devel] [PATCH 1/3] target-mips: Add n32/n64 configuration files

2014-12-10 Thread Maciej W. Rozycki
Mechanically add new n32/n64 configuration files copying the relevant preexisting ones, fixing the system emulation configuration build, that breaks due to the lack of the respective configuration files, for the `mipsn32' and `mipsn32el' targets on this occasion as well. Signed-off-by: Maciej W

[Qemu-devel] [PATCH 0/3] MIPS: GDB register width fix / ABI configuration rework

2014-12-10 Thread Maciej W. Rozycki
Hi, This mini patch series corrects some misguided assumptions in QEMU's MIPS processor selection while also adding another configuration to support a missing ABI-processor combination, and then corrects register widths used by the GDB stub so as to match the processor selected (for the system

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-10 Thread Serge Hallyn
I couldn't reproduce the bug on the old qemu myself, however Michael has verified the (same) fix on trusty, and the full qa-regression-test passed for me on utopic-proposed. So I would request that we call this verification-done. -- You received this bug notification because you are a member of

Re: [Qemu-devel] [QEMU patch 2/2] kvm: allow configuration of tsc deadline timer advancement

2014-12-10 Thread Radim Krčmář
2014-12-10 18:55+0100, Paolo Bonzini: > Well, my preferred choice would be automatic adjustment with a module > parameter. If we need manual tuning, per-CPU would be my choice, but > automatic is nicer anyway. :) I agree with Paolo, and think it would be better not to touch QEMU ... it makes litt

  1   2   3   4   >