Re: [Qemu-devel] [PATCH v3 11/14] ioport: Switch dispatching to memory core layer

2013-06-24 Thread Jan Kiszka
On 2013-06-23 22:50, Hervé Poussineau wrote: Jan Kiszka a écrit : From: Jan Kiszka jan.kis...@siemens.com The current ioport dispatcher is a complex beast, mostly due to the need to deal with old portio interface users. But we can overcome it without converting all portio users by embedding

Re: [Qemu-devel] [PATCH 01/26] ohci: use realize for ohci

2013-06-24 Thread Hu Tao
On Mon, Jun 24, 2013 at 03:54:31PM +1000, Peter Crosthwaite wrote: Hi Hu, On Sat, Jun 22, 2013 at 6:50 PM, Hu Tao hu...@cn.fujitsu.com wrote: Cc: Gerd Hoffmann kra...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/usb/hcd-ohci.c | 16 +++- 1 file changed, 7

Re: [Qemu-devel] [Qemu-trivial] [PATCH 01/13] qemu-socket: zero-initialize SocketAddress

2013-06-24 Thread Gerd Hoffmann
On 06/21/13 20:15, Michael Tokarev wrote: 21.06.2013 14:38, Gerd Hoffmann wrote: Signed-off-by: Gerd Hoffmann kra...@redhat.com --- util/qemu-sockets.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index fdd8dc4..364bd8c

Re: [Qemu-devel] [PATCH v2] e600 core for MPC86xx processors

2013-06-24 Thread Julio Guerra
2013/6/24 Alexey Kardashevskiy a...@ozlabs.ru: On 06/21/2013 10:03 PM, Alexander Graf wrote: On 21.06.2013, at 14:01, Julio Guerra wrote: 2013/6/21 Alexander Graf ag...@suse.de: On 26.05.2013, at 19:41, Julio Guerra wrote: MPC86xx processors are based on the e600 core, which is not the

Re: [Qemu-devel] [PATCH 01/26] ohci: use realize for ohci

2013-06-24 Thread Peter Crosthwaite
Hi Hu, On Mon, Jun 24, 2013 at 4:11 PM, Hu Tao hu...@cn.fujitsu.com wrote: On Mon, Jun 24, 2013 at 03:54:31PM +1000, Peter Crosthwaite wrote: Hi Hu, On Sat, Jun 22, 2013 at 6:50 PM, Hu Tao hu...@cn.fujitsu.com wrote: Cc: Gerd Hoffmann kra...@redhat.com Signed-off-by: Hu Tao

Re: [Qemu-devel] [PATCH v2] vmdk: refuse to open higher version than supported

2013-06-24 Thread Fam Zheng
On Thu, 06/13 10:38, Stefan Hajnoczi wrote: On Thu, Jun 13, 2013 at 11:21:29AM +0800, Fam Zheng wrote: Refuse to open higher version for safety. Although we try to be compatible with published VMDK spec, VMware has newer version from ESXi 5.1 exported OVF/OVA, which we have no knowledge

[Qemu-devel] [PATCH for mst/pci] output nc-name in NIC_RX_FILTER_CHANGED event

2013-06-24 Thread Amos Kong
netclient 'name' entry in event is useful for management to know which device is changed. n-netclient_name is not always set. This patch changes to use nc-name. If we don't assign 'id', qemu will set a generated name to nc-name. Signed-off-by: Amos Kong ak...@redhat.com --- hw/net/virtio-net.c |

[Qemu-devel] [PATCH v2 04/13] qemu-char: check optional fields using has_*

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 2c3cfe6..ee7c70e 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3500,7 +3500,7 @@ static CharDriverState

[Qemu-devel] [PATCH v2 01/13] qemu-socket: zero-initialize SocketAddress

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- util/qemu-sockets.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 96eca2a..86fb09c 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -848,9 +848,9 @@ int

[Qemu-devel] [PATCH v2 00/13] A bunch of little socket + chardev fixes

2013-06-24 Thread Gerd Hoffmann
Hi, Here is v2 of the series, addressing Michaels review comments. cheers, Gerd Gerd Hoffmann (13): qemu-socket: zero-initialize SocketAddress qemu-socket: drop pointless allocation qemu-socket: catch monitor_get_fd failures qemu-char: check optional fields using has_* qemu-char:

[Qemu-devel] [PATCH v2 07/13] qemu-char: fix documentation for telnet+wait socket flags

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index a80ee40..a29ce57 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3185,10 +3185,11 @@ # @addr:

[Qemu-devel] [PATCH v2 03/13] qemu-socket: catch monitor_get_fd failures

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- util/qemu-sockets.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 35023a8..126cbb6 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -903,7 +903,7 @@ int

[Qemu-devel] [PATCH v2 06/13] qemu-char: print notification to stderr

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index cfc68cd..3e0044b 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2666,8 +2666,8 @@ static CharDriverState

[Qemu-devel] [PATCH v2 05/13] qemu-char: use more specific error_setg_* variants

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index ee7c70e..cfc68cd 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2604,7 +2604,7 @@ static CharDriverState

[Qemu-devel] [PATCH v2 13/13] qemu-socket: don't leak opts on error

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- util/qemu-sockets.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 126cbb6..095716e 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -963,7 +963,7 @@ int

[Qemu-devel] [PATCH v2 11/13] qemu-char: add -chardev mux support

2013-06-24 Thread Gerd Hoffmann
Allow to explicitly create mux chardevs on the command line, like you can using QMP. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index e6c3157..7d072a8 100644 --- a/qemu-char.c

[Qemu-devel] [PATCH v2 09/13] qemu-char: use ChardevBackendKind in in CharDriver

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/sysemu/char.h |2 +- qemu-char.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 066c216..e65e4a4 100644 --- a/include/sysemu/char.h +++

Re: [Qemu-devel] [PULL 00/21] pci,net,misc enhancements

2013-06-24 Thread Amos Kong
On Sun, Jun 23, 2013 at 02:38:04PM +0300, Michael S. Tsirkin wrote: On Fri, Jun 21, 2013 at 08:10:15AM -0500, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: From: Michael S. Tsirkin m...@redhat.com The following changes since commit

[Qemu-devel] [PATCH v2 08/13] qemu-char: don't leak opts on error

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-char.c b/qemu-char.c index 3e0044b..5751391 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3185,7 +3185,7 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts

[Qemu-devel] [PATCH v2 12/13] qemu-char: report udb backend errors

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index 7d072a8..dcc91bb 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2255,6 +2255,8 @@ static CharDriverState *qemu_chr_open_udp(QemuOpts *opts)

[Qemu-devel] [PATCH v2 10/13] qemu-char: minor mux chardev fixes

2013-06-24 Thread Gerd Hoffmann
mux failure path has a memory leak. creating a mux chardev can't fail though, so just assert() that instead of fixing an error path which never ever runs anyway ... Also fix bid being leaked while being at it. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |7 +++ 1

[Qemu-devel] [PATCH v2 02/13] qemu-socket: drop pointless allocation

2013-06-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- util/qemu-sockets.c |1 - 1 file changed, 1 deletion(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 86fb09c..35023a8 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -871,7 +871,6 @@ SocketAddress

[Qemu-devel] [PULL 0/9] usb patch queue

2013-06-24 Thread Gerd Hoffmann
Hi, Here comes the usb patch queue, bringing QOM improvements for ehci-sysbus, tegra2 ehci support and the usual share of little bug fixes. please pull, Gerd The following changes since commit 576156ffed72ab4feb0b752979db86ff8759a2a1: Merge remote-tracking branch

Re: [Qemu-devel] [PATCH v2] e600 core for MPC86xx processors

2013-06-24 Thread Alexander Graf
Am 24.06.2013 um 08:13 schrieb Julio Guerra gu...@julio.in: 2013/6/24 Alexey Kardashevskiy a...@ozlabs.ru: On 06/21/2013 10:03 PM, Alexander Graf wrote: On 21.06.2013, at 14:01, Julio Guerra wrote: 2013/6/21 Alexander Graf ag...@suse.de: On 26.05.2013, at 19:41, Julio Guerra wrote:

[Qemu-devel] [PATCH 6/9] usb/host-libusb: Fix building with libusb git master code

2013-06-24 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com The next libusb release will deprecate libusb_get_port_path, and since we compile with -Werror, this breaks the build. Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/host-libusb.c |4 1

[Qemu-devel] [PATCH 3/9] usb/hcd-ehci: Add Tegra2 SysBus EHCI device

2013-06-24 Thread Gerd Hoffmann
From: Andreas Färber andreas.faer...@web.de This prepares an EHCI device for the Nvidia Tegra2 SoC family. Values based on patch by Vincent Palatin and verified against TRM v01p. Cc: Vincent Palatin vpala...@chromium.org Signed-off-by: Andreas Färber andreas.faer...@web.de Signed-off-by: Gerd

[Qemu-devel] [PATCH 1/9] usb/hcd-ehci-sysbus: Convert to QOM realize

2013-06-24 Thread Gerd Hoffmann
From: Andreas Färber afaer...@suse.de The SysBus qdev initfn merely calls SysBusDeviceClass::init, so we can replace it with a realizefn already. This avoids getting into any initfn ambiguity with the upcoming Faraday EHCI implementation. Rename internal usb_ehci_initfn() to usb_ehci_realize()

[Qemu-devel] [PATCH 7/9] usb-host-libusb: set USB_DEV_FLAG_IS_HOST

2013-06-24 Thread Gerd Hoffmann
... like host-{linux,bsd}.c do. Cc: qemu-sta...@nongnu.org Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/host-libusb.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 0c12b0f..e2f3cc8 100644 --- a/hw/usb/host-libusb.c +++

[Qemu-devel] [PATCH 8/9] usb: add serial bus property

2013-06-24 Thread Gerd Hoffmann
This patch adds a serial property for all usb devices, which can be used to set the serial number of a usb device (as listed by lsusb -v) to a specific value. Applies to emulated devices only. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/bus.c |1 + hw/usb/desc.c

[Qemu-devel] [PATCH 9/9] usb: fix serial number for hid devices

2013-06-24 Thread Gerd Hoffmann
commit 7b074a22dab4bdda9864b933f1bc811a3db42845 changed the serial number of hid devices. Add compat properties to keep the old serial number for qemu 0.12 and older. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/i386/pc_piix.c | 12 1 file changed, 12 insertions(+) diff

[Qemu-devel] [PATCH 5/9] usb/hcd-ehci: Add Faraday FUSBH200 support

2013-06-24 Thread Gerd Hoffmann
From: Kuo-Jung Su dant...@faraday-tech.com Add Faraday FUSBH200 support, which is slightly different from EHCI spec. (Or maybe simply a bad/wrong implementation...) Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Gerd Hoffmann

[Qemu-devel] [PATCH 2/9] usb/hcd-ehci: Split off instance_init from realize

2013-06-24 Thread Gerd Hoffmann
From: Andreas Färber afaer...@suse.de This makes the mem MemoryRegion available to derived instance_inits. Keep the bus in realize for now since naming breaks in instance_init. Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Gerd Hoffmann kra...@redhat.com ---

[Qemu-devel] [PATCH 4/9] usb/hcd-ehci: Replace PORTSC macros with variables

2013-06-24 Thread Gerd Hoffmann
From: Kuo-Jung Su dant...@faraday-tech.com Replace PORTSC macros with variables which could then be configured in ehci__class_init(...) Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Gerd Hoffmann kra...@redhat.com ---

[Qemu-devel] [PATCH v2 00/30] PCI: Cleanup legacy casts in device land

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com There are a number of different cast implementations from various stages of QEMU development out in device model land. This series cleans up the ones involving TYPE_PCI_DEVICE to consistently use proper QOM casts for both up and down casts.

[Qemu-devel] [PATCH v2 01/30] net/e1000: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/e1000.c | 18 -- 1 file changed, 12 insertions(+), 6

[Qemu-devel] [PATCH v2 02/30] net/rtl8139: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/rtl8139.c | 26 ++ 1 file changed, 18

[Qemu-devel] [PATCH v2 03/30] net/pcnet-pci: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/pcnet-pci.c | 14 +- 1 file changed, 9 insertions(+), 5

[Qemu-devel] [PATCH v2 04/30] usb/hcd-xhci: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/usb/hcd-xhci.c | 19 +-- 1 file changed, 13 insertions(+),

[Qemu-devel] [PATCH v2 05/30] scsi/lsi53c895a: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/scsi/lsi53c895a.c | 26 -- 1 file changed, 16

[Qemu-devel] [PATCH v2 06/30] scsi/megasas: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/scsi/megasas.c | 15 ++- 1 file changed, 10 insertions(+), 5

[Qemu-devel] [PATCH v2 07/30] scsi/esp-pci: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/scsi/esp-pci.c | 14 +- 1 file changed, 9 insertions(+), 5

[Qemu-devel] [PATCH v2 08/30] ide/ich: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/ide/ahci.h | 5 + hw/ide/ich.c | 10 +- 2 files changed, 10

[Qemu-devel] [PATCH v2 09/30] ide/piix: QOM casting sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Use standard QOM cast macro. Remove usage of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/ide/piix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH v2 10/30] acpi/piix4: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/acpi/piix4.c | 31 +-- 1 file changed, 17 insertions(+),

[Qemu-devel] [PATCH v2 11/30] misc/pci-testdev: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/misc/pci-testdev.c | 11 --- 1 file changed, 8 insertions(+), 3

[Qemu-devel] [PATCH v2 12/30] virtio/vmware_vga: QOM casting sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style casting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/display/vmware_vga.c | 13 - 1 file changed, 8 insertions(+), 5

[Qemu-devel] [PATCH v2 13/30] misc/ivshmem: QOM Upcast Sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/misc/ivshmem.c | 18 +++--- 1 file changed, 11 insertions(+), 7

[Qemu-devel] [PATCH v2 14/30] xen/xen_platform: QOM casting sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/xen/xen_platform.c | 28 1 file changed, 16

[Qemu-devel] [PATCH v2 15/30] isa/*: QOM casting sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Use standard QOM cast macros. Remove usage of DO_UPCAST and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/isa/i82378.c | 8 hw/isa/lpc_ich9.c | 6 +++--- 2 files changed, 7

[Qemu-devel] [PATCH v2 17/30] pci-bridge/pci_bridge_dev: Don't use DO_UPCAST

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Just use the defined PCI_DEVICE cast macro. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/pci-bridge/pci_bridge_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci-bridge/pci_bridge_dev.c

[Qemu-devel] [PATCH v2 16/30] pci/*: QOM casting sweep

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Use standard QOM cast macro. Remove usages of DO_UPCAST, container_of() and direct - style upcasting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/pci/pci-hotplug.c | 18 ++ hw/pci/pci.c | 17

[Qemu-devel] [PATCH v2 18/30] pci-bridge/*: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/pci-bridge/i82801b11.c | 2 +- hw/pci-bridge/ioh3420.c| 2 +- hw/pci-bridge/xio3130_downstream.c | 2 +- hw/pci-bridge/xio3130_upstream.c | 2 +- 4

[Qemu-devel] [PATCH v2 19/30] pci/pci_bridge: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/pci/pci_bridge.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c index 24be6c5..f6657e8 100644 ---

[Qemu-devel] [PATCH v2 20/30] misc/vfio: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/misc/vfio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 52fb036..8e3524f 100644 --- a/hw/misc/vfio.c +++

[Qemu-devel] [PATCH v2 21/30] net/eepro100: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/eepro100.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index dc99ea6..f34b5dc 100644 ---

[Qemu-devel] [PATCH v2 22/30] net/ne2000: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/ne2000.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c index 33ee03e..70a7991 100644 --- a/hw/net/ne2000.c

[Qemu-devel] [PATCH v2 23/30] usb/*: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/usb/hcd-ehci-pci.c | 13 - hw/usb/hcd-ohci.c | 2 +- hw/usb/hcd-uhci.c | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH v2 24/30] watchdog/wdt_i6300esb: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/watchdog/wdt_i6300esb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c index 05af0b1..93077bb

[Qemu-devel] [PATCH v2 25/30] scsi/vmw_pvscsi: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/scsi/vmw_pvscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index 7cf4044..35b971d 100644 ---

[Qemu-devel] [PATCH V3 02/10] NUMA: Add numa_info structure to contain numa nodes info

2013-06-24 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Signed-off-by: Andre Przywara andre.przyw...@amd.com Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cpus.c | 2 +- hw/i386/pc.c

[Qemu-devel] [PATCH V3 05/10] NUMA: handle Error in cpus, mpol and hostnode parser

2013-06-24 Thread Wanlong Gao
As Paolo pointed out that, handle Error in mpol and hostnode parser will make it easier to be used for example in mem-hotplug in the future. And this will be used later in set-mpol QMP command. Also handle Error in cpus parser to be consistent with others. Signed-off-by: Wanlong Gao

Re: [Qemu-devel] [PATCH] RFC kvm irqfd: add directly mapped MSI IRQ support

2013-06-24 Thread Gleb Natapov
On Sun, Jun 23, 2013 at 10:06:05AM -0500, Anthony Liguori wrote: On Thu, Jun 20, 2013 at 11:46 PM, Alex Williamson alex.william...@redhat.com wrote: On Fri, 2013-06-21 at 12:49 +1000, Alexey Kardashevskiy wrote: On 06/21/2013 12:34 PM, Alex Williamson wrote: Do not follow you, sorry.

[Qemu-devel] [PATCH V3 03/10] NUMA: Add Linux libnuma detection

2013-06-24 Thread Wanlong Gao
Add detection of libnuma (mostly contained in the numactl package) to the configure script. Can be enabled or disabled on the command line, default is use if available. Signed-off-by: Andre Przywara andre.przyw...@amd.com Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- configure | 32

[Qemu-devel] [PATCH V3 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-06-24 Thread Wanlong Gao
The QMP command let it be able to set node's memory policy through the QMP protocol. The qmp-shell command is like: set-mpol nodeid=0 mem-policy=membind mem-hostnode=0-1 Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cpus.c | 54

[Qemu-devel] [PATCH V3 10/10] NUMA: show host memory policy info in info numa command

2013-06-24 Thread Wanlong Gao
Show host memory policy of nodes in the info numa monitor command. After this patch, the monitor command info numa will show the information like following if the host numa support is enabled: (qemu) info numa 2 nodes node 0 cpus: 0 node 0 size: 1024 MB node 0 mempolicy:

[Qemu-devel] [PATCH V3 00/10] Add support for binding guest numa nodes to host numa nodes

2013-06-24 Thread Wanlong Gao
As you know, QEMU can't direct it's memory allocation now, this may cause guest cross node access performance regression. And, the worse thing is that if PCI-passthrough is used, direct-attached-device uses DMA transfer between device and qemu process. All pages of the guest will be pinned by

[Qemu-devel] [PATCH v2 26/30] i2c/smbus_ich9: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/i2c/smbus_ich9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c index ca22978..f87343f 100644 ---

[Qemu-devel] [PATCH V3 09/10] NUMA: add hmp command set-mpol

2013-06-24 Thread Wanlong Gao
Add hmp command set-mpol to set host memory policy for a guest NUMA node. Then we can also set node's memory policy using the monitor command like: (qemu) set-mpol 0 mem-policy=membind,mem-hostnode=0-1 Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- hmp-commands.hx | 16

[Qemu-devel] [PATCH V3 07/10] NUMA: set guest numa nodes memory policy

2013-06-24 Thread Wanlong Gao
Set the guest numa nodes memory policies using the mbind(2) system call node by node. After this patch, we are able to set guest nodes memory policies through the QEMU options, this arms to solve the guest cross nodes memory access performance issue. And as you all know, if PCI-passthrough is

[Qemu-devel] [PATCH v2 30/30] i386/*: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/i386/kvm/pci-assign.c | 21 - hw/i386/pc.c | 3 ++- hw/i386/pc_piix.c| 4 ++-- hw/i386/pc_q35.c | 4 ++-- 4 files changed,

[Qemu-devel] [PATCH V3 01/10] NUMA: Support multiple CPU ranges on -numa option

2013-06-24 Thread Wanlong Gao
From: Bandan Das b...@redhat.com This allows us to use the cpus property multiple times to specify multiple cpu (ranges) to the -numa option : -numa node,cpus=1,cpus=2,cpus=4 or -numa node,cpus=1-3,cpus=5 Note that after this patch, the defalut suffix of -numa node,mem=N will no longer be M. So

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 00/13] A bunch of little socket + chardev fixes

2013-06-24 Thread Michael Tokarev
24.06.2013 10:39, Gerd Hoffmann wrote: Hi, Here is v2 of the series, addressing Michaels review comments. Thank you Gerd, applied all series to the trivial-patches queue, with two edits: qemu-char: use ChardevBackendKind in in CharDriver qemu-char: report udb backend errors fxed

[Qemu-devel] [PATCH v2 27/30] ide/cmd646: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/ide/cmd646.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index a73eb9a..9544c1f 100644 ---

[Qemu-devel] [PATCH V3 06/10] NUMA: split out the common range parser

2013-06-24 Thread Wanlong Gao
Since cpus parser and hostnode parser have the common range parser part, split it out to the common range parser to avoid the duplicate code. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- vl.c | 89 1 file changed,

[Qemu-devel] [PATCH V3 04/10] NUMA: parse guest numa nodes memory policy

2013-06-24 Thread Wanlong Gao
The memory policy setting format is like: mem-policy={membind|interleave|preferred},mem-hostnode=[+|!]{all|N-N} And we are adding this setting as a suboption of -numa, the memory policy then can be set like following: -numa node,nodeid=0,mem=1024,cpus=0,mem-policy=membind,mem-hostnode=0-1 -numa

[Qemu-devel] [PATCH v2 29/30] pci-host/*: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/pci-bridge/dec.c | 2 +- hw/pci-host/apb.c | 4 ++-- hw/pci-host/q35.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/pci-bridge/dec.c

[Qemu-devel] [target-mips] How to use smp?

2013-06-24 Thread Dongxue Zhang
Hello everybody, i want to use mips target with smp support. When use command without smp, then the log stopped at kernel panic, when -smp 2 added, it stoppted at NR_IRQS:256. I use the git qemu at 576156ffed72ab4feb0b752979db86ff8759a2a1 qemu configed with ./configure

[Qemu-devel] [PATCH 1/2] qxl: fix Coverity scan SIGN_EXTENSION error

2013-06-24 Thread Gerd Hoffmann
Cc: Markus Armbruster arm...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/display/qxl-render.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c index f511a62..269b1a7 100644 --- a/hw/display/qxl-render.c

[Qemu-devel] [PULL 0/2] spice patch queue

2013-06-24 Thread Gerd Hoffmann
Hi, Tiny spice patch queue with only two patches, one adding a spice cmd line option and one bugfix. please pull, Gerd The following changes since commit 576156ffed72ab4feb0b752979db86ff8759a2a1: Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging (2013-06-20 16:53:39

[Qemu-devel] [PATCH 2/2] spice: Add -spice disable-agent-file-transfer cmdline option (rhbz#961850)

2013-06-24 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-options.hx |7 +-- ui/spice-core.c | 13 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/qemu-options.hx

Re: [Qemu-devel] [PATCH v4] QEMUBH: make AioContext's bh re-entrant

2013-06-24 Thread Stefan Hajnoczi
On Mon, Jun 24, 2013 at 05:54:26PM +0800, Liu Ping Fan wrote: BH will be used outside big lock, so introduce lock to protect between the writers, ie, bh's adders and deleter. The lock only affects the writers and bh's callback does not take this extra lock. Note that for the same AioContext,

Re: [Qemu-devel] [PATCH 0/3] multiboot: Fix memory information

2013-06-24 Thread Kevin Wolf
Am 23.06.2013 um 23:39 hat Anthony Liguori geschrieben: Kevin Wolf m...@kevin-wolf.de writes: Kevin Wolf (3): multiboot: Don't forget last mmap entry multiboot: Calculate upper_mem in the ROM multiboot: Updated ROM binary Reviewed-by: Anthony Liguori aligu...@us.ibm.com Do

Re: [Qemu-devel] [PATCH v2 07/13] qemu-char: fix documentation for telnet+wait socket flags

2013-06-24 Thread Markus Armbruster
Gerd Hoffmann kra...@redhat.com writes: Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qapi-schema.json |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index a80ee40..a29ce57 100644 --- a/qapi-schema.json +++

[Qemu-devel] [PATCH v2 28/30] ide/via: substitute -qdev casts with DEVICE()

2013-06-24 Thread peter . crosthwaite
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/ide/via.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ide/via.c b/hw/ide/via.c index 5fe053c..b81e1fe 100644 --- a/hw/ide/via.c +++

Re: [Qemu-devel] [PATCH 1/2] iscsi: add support for bdrv_co_is_allocated()

2013-06-24 Thread Stefan Hajnoczi
On Fri, Jun 21, 2013 at 11:18:42AM +0200, Kevin Wolf wrote: Am 20.06.2013 um 20:20 hat Peter Lieven geschrieben: @@ -800,6 +801,60 @@ iscsi_getlength(BlockDriverState *bs) return len; } +static int coroutine_fn iscsi_co_is_allocated(BlockDriverState *bs, +

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 00/13] A bunch of little socket + chardev fixes

2013-06-24 Thread Markus Armbruster
Michael Tokarev m...@tls.msk.ru writes: 24.06.2013 10:39, Gerd Hoffmann wrote: Hi, Here is v2 of the series, addressing Michaels review comments. Thank you Gerd, applied all series to the trivial-patches queue, with two edits: qemu-char: use ChardevBackendKind in in CharDriver

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 00/13] A bunch of little socket + chardev fixes

2013-06-24 Thread Michael Tokarev
24.06.2013 12:14, Markus Armbruster wrote: Michael Tokarev m...@tls.msk.ru writes: [] Thank you Gerd, applied all series to the trivial-patches queue, with two edits: qemu-char: use ChardevBackendKind in in CharDriver qemu-char: report udb backend errors fxed these :) My commit

Re: [Qemu-devel] [PATCH 2/2] PPC: Fix GDB read on code area for PPC6xx

2013-06-24 Thread Fabien Chouteau
On 06/22/2013 02:26 AM, Alexander Graf wrote: Thanks, applied to ppc-next. Teaching gdb a new protocol is way out of scope for these rare cases :). Thanks guys, -- Fabien Chouteau

[Qemu-devel] [PATCH v4 11/14] ioport: Switch dispatching to memory core layer

2013-06-24 Thread Jan Kiszka
The current ioport dispatcher is a complex beast, mostly due to the need to deal with old portio interface users. But we can overcome it without converting all portio users by embedding the required base address of a MemoryRegionPortio access into that data structure. That removes the need to have

Re: [Qemu-devel] [PATCH v2 02/13] qemu-socket: drop pointless allocation

2013-06-24 Thread Markus Armbruster
Gerd Hoffmann kra...@redhat.com writes: Signed-off-by: Gerd Hoffmann kra...@redhat.com --- util/qemu-sockets.c |1 - 1 file changed, 1 deletion(-) diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 86fb09c..35023a8 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c

Re: [Qemu-devel] [PATCH v2 00/13] A bunch of little socket + chardev fixes

2013-06-24 Thread Laszlo Ersek
On 06/24/13 08:39, Gerd Hoffmann wrote: Hi, Here is v2 of the series, addressing Michaels review comments. cheers, Gerd Gerd Hoffmann (13): qemu-socket: zero-initialize SocketAddress qemu-socket: drop pointless allocation qemu-socket: catch monitor_get_fd failures

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 00/13] A bunch of little socket + chardev fixes

2013-06-24 Thread Markus Armbruster
Michael Tokarev m...@tls.msk.ru writes: 24.06.2013 12:14, Markus Armbruster wrote: Michael Tokarev m...@tls.msk.ru writes: [] Thank you Gerd, applied all series to the trivial-patches queue, with two edits: qemu-char: use ChardevBackendKind in in CharDriver qemu-char: report udb

Re: [Qemu-devel] [PATCH v2 12/13] qemu-char: report udb backend errors

2013-06-24 Thread Markus Armbruster
Typo in subject: s/udb/UDP/ Gerd Hoffmann kra...@redhat.com writes: Signed-off-by: Gerd Hoffmann kra...@redhat.com --- qemu-char.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index 7d072a8..dcc91bb 100644 --- a/qemu-char.c +++ b/qemu-char.c @@

[Qemu-devel] [PATCH 05/23] ide: Convert verify commands to ide_cmd_table handler

2013-06-24 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/ide/core.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 057662d..bf2007a

[Qemu-devel] [PATCH 02/23] ide: Convert WIN_DSM to ide_cmd_table handler

2013-06-24 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/ide/core.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index

[Qemu-devel] [PULL 00/23] Block patches

2013-06-24 Thread Stefan Hajnoczi
The following changes since commit 576156ffed72ab4feb0b752979db86ff8759a2a1: Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging (2013-06-20 16:53:39 -0500) are available in the git repository at: git://github.com/stefanha/qemu.git block for you to fetch changes up to

[Qemu-devel] [PATCH 11/23] ide: Convert SET FEATURES to ide_cmd_table handler

2013-06-24 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/ide/core.c | 147 ++ 1 file changed, 75 insertions(+), 72 deletions(-) diff --git a/hw/ide/core.c

[Qemu-devel] [PATCH 03/23] ide: Convert WIN_IDENTIFY to ide_cmd_table handler

2013-06-24 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/ide/core.c | 40 +++- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index

[Qemu-devel] [PATCH 01/23] ide: Add handler to ide_cmd_table

2013-06-24 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com As a preparation for moving all IDE commands into their own function like in the ATAPI code, introduce a 'handler' callback to ide_cmd_table. Commands using this new infrastructure get some things handled automatically: * The BSY flag is set before calling the

[Qemu-devel] [PATCH 23/23] vmdk: refuse to open higher version than supported

2013-06-24 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com Refuse to open higher version for safety. Although we try to be compatible with published VMDK spec, VMware has newer version from ESXi 5.1 exported OVF/OVA, which we have no knowledge what's changed in it. And it is very likely to have more new versions in the

  1   2   3   4   >