Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey

2012-05-25 Thread Amos Kong
On 25/05/12 11:51, Eric Blake wrote: On 05/24/2012 09:32 PM, Amos Kong wrote: Convert 'sendkey' to use. do_sendkey() depends on some variables in monitor.c, so reserve qmp_sendkey() to monitor.c Rename 'string' to 'keys', rename 'hold_time' to 'hold-time' Signed-off-by: Amos

[Qemu-devel] [Bug 1004050] [NEW] qemu-system-ppc64 by default has non-working keyboard

2012-05-25 Thread Richard W.M. Jones
Public bug reported: Compile qemu from git and do: ./ppc64-softmmu/qemu-system-ppc64 (ie. no parameters). It boots to an OpenBIOS prompt. However the keyboard doesn't work. After ~10 keypresses, qemu just says: usb-kbd: warning: key event queue full usb-kbd: warning: key event queue full

Re: [Qemu-devel] [PATCH v2 12/13] pci: Misc pci_reg additions

2012-05-25 Thread Don Dutile
On 05/22/2012 01:05 AM, Alex Williamson wrote: Fill in many missing definitions and add sizeof fields for many sections allowing for more extensive config parsing. Signed-off-by: Alex Williamsonalex.william...@redhat.com --- overall, i'm very glad to see defines instead of hardcoded numbers

Re: [Qemu-devel] [PATCH v2 12/13] pci: Misc pci_reg additions

2012-05-25 Thread Alex Williamson
On Thu, 2012-05-24 at 17:49 -0400, Don Dutile wrote: On 05/22/2012 01:05 AM, Alex Williamson wrote: Fill in many missing definitions and add sizeof fields for many sections allowing for more extensive config parsing. Signed-off-by: Alex Williamsonalex.william...@redhat.com ---

Re: [Qemu-devel] Weird iscsi/fd-event issue since recent merge of event system changes

2012-05-25 Thread ronnie sahlberg
On Wed, May 23, 2012 at 2:31 AM, Michael Tokarev m...@tls.msk.ru wrote: On 22.05.2012 14:03, ronnie sahlberg wrote: [] Doh, now I remember.  Whenever you change the aio handlers you need to call qemu_notify_event() afterwards, if the handler may fire right away. Thanks.  I just confirmed

Re: [Qemu-devel] [PATCH v2 05/13] pci: Add ACS validation utility

2012-05-25 Thread Don Dutile
On 05/22/2012 01:05 AM, Alex Williamson wrote: In a PCI environment, transactions aren't always required to reach the root bus before being re-routed. Intermediate switches between an endpoint and the root bus can redirect DMA back downstream before things like IOMMUs have a chance to

Re: [Qemu-devel] [PATCH v2 03/13] iommu: IOMMU groups for VT-d and AMD-Vi

2012-05-25 Thread Don Dutile
On 05/22/2012 01:04 AM, Alex Williamson wrote: Add back group support for AMD Intel. amd_iommu already tracks devices and has init and uninit routines to manage groups. intel-iommu does this on the fly, so we make use of the notifier support built into iommu groups to create and remove groups.

Re: [Qemu-devel] [PATCH v2 09/13] vfio: x86 IOMMU implementation

2012-05-25 Thread Alex Williamson
On Thu, 2012-05-24 at 17:38 -0400, Don Dutile wrote: On 05/22/2012 01:05 AM, Alex Williamson wrote: x86 is probably the wrong name for this VFIO IOMMU driver, but x86 is the primary target for it. This driver support a very simple usage model using the existing IOMMU API. The IOMMU is

Re: [Qemu-devel] [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Paolo Bonzini
Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- net/hub.c | 35 --- net/hub.h |2 ++ net/queue.c |5 + 3 files changed, 39

Re: [Qemu-devel] [PATCH 02/10] qdev: remove qdev_prop_exists

2012-05-25 Thread Paolo Bonzini
Il 24/05/2012 23:34, Andreas Färber ha scritto: -static ObjectProperty *object_property_find(Object *obj, const char *name) +ObjectProperty *object_property_find(Object *obj, const char *name) { ObjectProperty *prop; Any reason not to expose a bool object_property_exists()

Re: [Qemu-devel] [PATCH v2 03/13] iommu: IOMMU groups for VT-d and AMD-Vi

2012-05-25 Thread Alex Williamson
On Thu, 2012-05-24 at 17:01 -0400, Don Dutile wrote: On 05/22/2012 01:04 AM, Alex Williamson wrote: Add back group support for AMD Intel. amd_iommu already tracks devices and has init and uninit routines to manage groups. intel-iommu does this on the fly, so we make use of the notifier

Re: [Qemu-devel] [PATCH v2 00/13] IOMMU Groups + VFIO

2012-05-25 Thread Don Dutile
On 05/22/2012 01:04 AM, Alex Williamson wrote: Version 2 incorporating acks and feedback from v1. The PCI DMA quirk and ACS check are reworked, sysfs iommu groups ABI Documentation added as well as numerous other fixes, including patches from Alexey Kardashevskiy towards supporting POWER usage

Re: [Qemu-devel] How to compile the source code to get the images and executable to run the QEMU?

2012-05-25 Thread Daniel P. Berrange
On Thu, May 24, 2012 at 04:08:30PM -0600, Arturo CV wrote: Hello, Am new around here and am working with the QEMU in a project. I would like to ask if there is anyone that can let me know how to compile or build the images to be used to run the QEMU from the source code. I already got the

[Qemu-devel] How to compile the source code to get the images and executable to run the QEMU?

2012-05-25 Thread Arturo CV
Hello, Am new around here and am working with the QEMU in a project. I would like to ask if there is anyone that can let me know how to compile or build the images to be used to run the QEMU from the source code. I already got the source code from the wiki.qemu.org and I have the version 1.0.1.

Re: [Qemu-devel] [PATCH v2 09/13] vfio: x86 IOMMU implementation

2012-05-25 Thread Don Dutile
On 05/22/2012 01:05 AM, Alex Williamson wrote: x86 is probably the wrong name for this VFIO IOMMU driver, but x86 is the primary target for it. This driver support a very simple usage model using the existing IOMMU API. The IOMMU is expected to support the full host address space with no

Re: [Qemu-devel] [PATCH v2 05/13] pci: Add ACS validation utility

2012-05-25 Thread Alex Williamson
On Thu, 2012-05-24 at 17:30 -0400, Don Dutile wrote: On 05/22/2012 01:05 AM, Alex Williamson wrote: In a PCI environment, transactions aren't always required to reach the root bus before being re-routed. Intermediate switches between an endpoint and the root bus can redirect DMA back

Re: [Qemu-devel] [PATCH 3/3] qapi: convert sendkey

2012-05-25 Thread Daniel P. Berrange
On Fri, May 25, 2012 at 02:20:33PM +0800, Amos Kong wrote: On 25/05/12 11:51, Eric Blake wrote: On 05/24/2012 09:32 PM, Amos Kong wrote: Convert 'sendkey' to use. do_sendkey() depends on some variables in monitor.c, so reserve qmp_sendkey() to monitor.c Rename 'string' to 'keys', rename

[Qemu-devel] [RFC PATCH] vfio: add fixup for broken PCI devices

2012-05-25 Thread Alexey Kardashevskiy
Some adapters (like NEC PCI USB controller) do not flush their config on a sioftware reset and remember DMA config, etc. If we use such an adapter with QEMU, then crash QEMU (stop it with ctrl-A ctrl-X), and try to use it in QEMU again, it may start working immediately with previous config when

Re: [Qemu-devel] [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 3:04 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  net/hub.c   |   35 ---  

[Qemu-devel] [PATCH 0/2] Add support for iscsi passthrough and better eventsystem support

2012-05-25 Thread Ronnie Sahlberg
Paolo, list Please find two patches. Both are big so maybe best to only add to the post 1.1 branches. The first patch tries to be more intelligent when setting up the fd events and only call these functions if something has changed. The second patch adds support for passthrough of SCSI

[Qemu-devel] [PATCH 1/2] ISCSI: redo how we set up the events to only call qemu_aio_set_fd_handler() and qemu_notify_event() if something has changed.

2012-05-25 Thread Ronnie Sahlberg
Also first call out to the socket write functions director, and only set up the write event if the socket is full. This means that we will only need to invoke these two functions very rarely which will improve performance. Signed-off-by: Ronnie Sahlberg ronniesahlb...@gmail.com ---

[Qemu-devel] [PATCH 2/2] SCSI: Add SCSI passthrough via scsi-generic to libiscsi

2012-05-25 Thread Ronnie Sahlberg
Update scsi-generic to allow passthrough of SG_IO scsi commands to iscsi devices too in addition to the real scsi-generic devices. Implement both bdrv_ioctl() and bdrv_aio_ioctl() in the iscsi backend, emulate the SG_IO ioctl and pass the SCSI commands across to the iscsi target. This allows

Re: [Qemu-devel] [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 3:04 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  net/hub.c   |   35 ---  

Re: [Qemu-devel] Tracing message for mu

2012-05-25 Thread Stefan Hajnoczi
On Fri, May 25, 2012 at 3:42 AM, Charles.Tsai-蔡清海-研究發展部 charles.t...@cloudena.com wrote: I had a problem to launch the VM using the script that contains the Qemu options. My script used to work before updating the latest Qemu code suggested by Hans. I also tried to latest code from

Re: [Qemu-devel] [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 3:04 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 24/05/2012 19:59, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  net/hub.c   |   35 ---  

Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication]

2012-05-25 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 03:41:29PM +0200, Paolo Bonzini wrote: changes from v1: - added per-job iostatus - added description of persistent dirty bitmap The same content is also at http://wiki.qemu.org/Features/LiveBlockMigration/1.2 QMP changes for error handling

Re: [Qemu-devel] [RFC PATCH] vfio: add fixup for broken PCI devices

2012-05-25 Thread Benjamin Herrenschmidt
On Fri, 2012-05-25 at 17:35 +1000, Alexey Kardashevskiy wrote: Some adapters (like NEC PCI USB controller) do not flush their config on a sioftware reset and remember DMA config, etc. If we use such an adapter with QEMU, then crash QEMU (stop it with ctrl-A ctrl-X), and try to use it in QEMU

Re: [Qemu-devel] [PATCH v2] spapr: Add memop hypercall

2012-05-25 Thread Alexander Graf
On 25.05.2012, at 05:53, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: This adds a qemu-specific hypervisor call to the pseries machine which allows to do what amounts to memmove, memcpy and xor over regions of physical memory such as the framebuffer. This is the simplest way to

Re: [Qemu-devel] [PATCH v2] spapr: Add memop hypercall

2012-05-25 Thread Benjamin Herrenschmidt
On Fri, 2012-05-25 at 10:30 +0200, Alexander Graf wrote: +while (count--) { +switch (esize) { +case 0: tmp = ldub_phys(src); I'm surprised checkpatch didn't complain here. Please do case x: foo(); break(); break; +case 1: tmp =

Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication]

2012-05-25 Thread Kevin Wolf
Am 25.05.2012 10:28, schrieb Stefan Hajnoczi: On Thu, May 24, 2012 at 03:41:29PM +0200, Paolo Bonzini wrote: changes from v1: - added per-job iostatus - added description of persistent dirty bitmap The same content is also at http://wiki.qemu.org/Features/LiveBlockMigration/1.2 QMP

Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication]

2012-05-25 Thread Paolo Bonzini
Il 24/05/2012 18:57, Eric Blake ha scritto: On 05/24/2012 07:41 AM, Paolo Bonzini wrote: changes from v1: - added per-job iostatus - added description of persistent dirty bitmap The same content is also at http://wiki.qemu.org/Features/LiveBlockMigration/1.2 * query-block-jobs:

Re: [Qemu-devel] [PATCH v2] spapr: Add memop hypercall

2012-05-25 Thread Alexander Graf
On 25.05.2012, at 10:36, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2012-05-25 at 10:30 +0200, Alexander Graf wrote: +while (count--) { +switch (esize) { +case 0: tmp = ldub_phys(src); I'm surprised checkpatch didn't complain here. Please do

Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication]

2012-05-25 Thread Paolo Bonzini
Il 24/05/2012 17:32, Dor Laor ha scritto: I didn't understand whether the persistent dirty bitmap needs to be flushed. This bitmap actually control the persistent known state of the destination image. Since w/ mirroring we always have the source in full state condition, we can choose to lazy

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Charles . Tsai-蔡清海-研究發展部
Stefan, I made two test cases here. 1) case one: A 32-bit Windows 7 VM with 8G virtual disk size. In this test, the virtual disk is almost full. Like what you said, the instance VM size only increased 2% initially and only a little

Re: [Qemu-devel] [PATCH v2] spapr: Add memop hypercall

2012-05-25 Thread Benjamin Herrenschmidt
On Fri, 2012-05-25 at 10:54 +0200, Alexander Graf wrote: case x: foo(); break(); break; +case 1: tmp = lduw_phys(src); break; +case 2: tmp = ldl_phys(src); break; +case 3: tmp = ldq_phys(src); break; +default: +return

Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication]

2012-05-25 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 03:41:29PM +0200, Paolo Bonzini wrote: Persistent dirty bitmap === A persistent dirty bitmap can be used by management for two reasons. When mirroring is used for continuous replication of storage, to record I/O operations that happened while the

[Qemu-devel] [PATCH 7/8] xhci: trace: transfers

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 18 ++ trace-events |6 ++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index c50e407..7e823da 100644 --- a/hw/usb/hcd-xhci.c +++

[Qemu-devel] [PATCH 6/8] xhci: trace: endpoints

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 22 +- trace-events |5 + 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 08fdf94..c50e407 100644 --- a/hw/usb/hcd-xhci.c +++

Re: [Qemu-devel] [PATCH 06/10] scsi: prepare migration code for usb-storage support

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 11:44, Gerd Hoffmann ha scritto: usb-storage can't handle requests in one go as the data transfer can be splitted into lots of usb packets. Because of that there can be normal in-flight requests at savevm time and we need to handle that. With other scsi hba's this happens only

[Qemu-devel] [PATCH 09/10] usb-storage: add scsi_off, remove scsi_buf

2012-05-25 Thread Gerd Hoffmann
Repace the running buffer pointer (scsi_buf) with a buffer offset field (scsi_off). The later is alot easier to live-migrate. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-storage.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 1/2] ISCSI: redo how we set up the events to only call qemu_aio_set_fd_handler() and qemu_notify_event() if something has changed.

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 09:43, Ronnie Sahlberg ha scritto: Also first call out to the socket write functions director, and only set up the write event if the socket is full. This means that we will only need to invoke these two functions very rarely which will improve performance. Signed-off-by:

[Qemu-devel] [PATCH 03/10] uhci: make bandwidth tunable

2012-05-25 Thread Gerd Hoffmann
Add a property for the uhci bandwidth. Can be used to make uhci emulation run faster than real hardware. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-uhci.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index

Re: [Qemu-devel] [PATCH 1/2] ISCSI: redo how we set up the events to only call qemu_aio_set_fd_handler() and qemu_notify_event() if something has changed.

2012-05-25 Thread ronnie sahlberg
On Fri, May 25, 2012 at 7:59 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 25/05/2012 09:43, Ronnie Sahlberg ha scritto: Also first call out to the socket write functions director, and only set up the write event if the socket is full. This means that we will only need to invoke these two

Re: [Qemu-devel] [PATCH v3 00/16] net: hub-based networking

2012-05-25 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 05:53:21PM -0300, Luiz Capitulino wrote: On Fri, 25 May 2012 01:59:06 +0800 zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patchset implements network hub stead of vlan. The main work was done by stefan, and i rebased it to latest

Re: [Qemu-devel] [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 09:48, Zhi Yong Wu ha scritto: static ssize_t net_hub_receive(NetHub *hub, NetHubPort *source_port, const uint8_t *buf, size_t len) { NetHubPort *port; +ssize_t ret = 0; QLIST_FOREACH(port, hub-ports, next) { if (port

Re: [Qemu-devel] [PATCH 09/10] usb-storage: add scsi_off, remove scsi_buf

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 11:44, Gerd Hoffmann ha scritto: Repace the running buffer pointer (scsi_buf) with a buffer offset field (scsi_off). The later is alot easier to live-migrate. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-storage.c |8 1 files changed, 4

Re: [Qemu-devel] [PATCH 2/2] SCSI: Add SCSI passthrough via scsi-generic to libiscsi

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 09:43, Ronnie Sahlberg ha scritto: Update scsi-generic to allow passthrough of SG_IO scsi commands to iscsi devices too in addition to the real scsi-generic devices. Implement both bdrv_ioctl() and bdrv_aio_ioctl() in the iscsi backend, emulate the SG_IO ioctl and pass the SCSI

Re: [Qemu-devel] [PATCH v2] spapr: Add memop hypercall

2012-05-25 Thread Alexander Graf
On 25.05.2012, at 11:24, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2012-05-25 at 10:54 +0200, Alexander Graf wrote: case x: foo(); break(); break; +case 1: tmp = lduw_phys(src); break; +case 2: tmp = ldl_phys(src); break; +case 3:

[Qemu-devel] [PATCH 00/10] usb: uhci usb-storage updates

2012-05-25 Thread Gerd Hoffmann
Hi, This patch series brings some bandwidth management tweaks for uhci, and also a little uhci migration fix. It also brings live migration support for usb-storage, including an update for scsi-disk live migration support. Paolo, feel free to cherry-pick the scsi patch, I'll go drop it for

Re: [Qemu-devel] [PATCH 10/10] usb-storage: migration support

2012-05-25 Thread Gerd Hoffmann
Hi, Can usb-storage have multiple requests in flight (in principle, i.e. according to the USB protocol)? No. Well, not with the protocol emulated here. There is a new one for usb storage devices, designed with USB 3.0 in mind and using streams (usb 3.0 feature) to handle multiple requests

[Qemu-devel] [PATCH 05/10] uhci: zap uhci_pre_save

2012-05-25 Thread Gerd Hoffmann
Cancel transactions before saving vmstate is pretty pointless and just causes disruptions. We need to cancel them before *loading* vmstate, but in that case uhci_reset() handles it already and no special action is needed. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-uhci.c |

[Qemu-devel] [PATCH 0/1] ISCSI: Optimize how we set up the events

2012-05-25 Thread Ronnie Sahlberg
Paolo, Please find an updated patch that implements your suggestion. This patch updates how iscsi sets up the read and write events so that we only call qemu_aio_set_fd_handler() and qemu_notify_event() when we actually need to. regards ronnie sahlberg

[Qemu-devel] [PATCH] ISCSI: redo how we set up the events to only call qemu_aio_set_fd_handler() and qemu_notify_event() if something has changed.

2012-05-25 Thread Ronnie Sahlberg
Also first call out to the socket write functions director, and only set up the write event if the socket is full. This means that we will only need to invoke these two functions very rarely which will improve performance. Signed-off-by: Ronnie Sahlberg ronniesahlb...@gmail.com ---

Re: [Qemu-devel] [RFC PATCH] PCI: Introduce INTx check mask API

2012-05-25 Thread Jan Kiszka
On 2012-05-24 23:47, Alexey Kardashevskiy wrote: On 25/05/12 12:29, Jan Kiszka wrote: On 2012-05-24 22:18, Alexey Kardashevskiy wrote: On 24/05/12 22:02, Jan Kiszka wrote: On 2012-05-24 04:44, Alexey Kardashevskiy wrote: [Found while debugging VFIO on POWER but it is platform independent]

[Qemu-devel] [PATCH 10/10] usb-storage: migration support

2012-05-25 Thread Gerd Hoffmann
With all scsi migration support bits in place the final step is pretty simple ;) Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-storage.c | 23 +-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c

[Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- net/hub.c | 27 --- 1 files changed, 24 insertions(+), 3

Re: [Qemu-devel] [PATCH v3 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 6:08 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 25/05/2012 09:48, Zhi Yong Wu ha scritto:  static ssize_t net_hub_receive(NetHub *hub, NetHubPort *source_port,                                 const uint8_t *buf, size_t len)  {      NetHubPort *port; +    ssize_t

[Qemu-devel] [PATCH 0/8] xhci updates

2012-05-25 Thread Gerd Hoffmann
Hi, A bunch of xhci updates. Nothing earth-shaking: A little reset fix from Jan and support for tracepoints. Scheduled for post-freeze merging. cheers, Gerd Gerd Hoffmann (7): xhci: trace: mmio reads+writes xhci: trace: run+stop xhci: trace: irq + events xhci: trace: ring fetch

[Qemu-devel] [PATCH 3/8] xhci: trace: run+stop

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c |5 ++--- trace-events |2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 84d714a..43875aa 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@

[Qemu-devel] [PATCH 4/8] xhci: trace: irq + events

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 12 trace-events |3 +++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 43875aa..6890888 100644 --- a/hw/usb/hcd-xhci.c +++

[Qemu-devel] [PATCH 04/10] uhci: fix trace format strings

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- trace-events |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trace-events b/trace-events index f848bee..73583f3 100644 --- a/trace-events +++ b/trace-events @@ -266,10 +266,10 @@ usb_uhci_frame_start(uint32_t num)

[Qemu-devel] [PATCH 5/8] xhci: trace: ring fetch

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 10 ++ trace-events |1 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 6890888..08fdf94 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@

Re: [Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 12:52, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- net/hub.c | 27

[Qemu-devel] [PATCH 02/10] uhci: use bottom half

2012-05-25 Thread Gerd Hoffmann
Schedule bottom half on completion of async packets instead of calling uhci_process_frame directly. This way we run uhci_process_frame only once in case multiple packets finish in a row. Also check whenever there is bandwidth left before scheduling uhci_process_frame. Signed-off-by: Gerd

[Qemu-devel] [PATCH 06/10] scsi: prepare migration code for usb-storage support

2012-05-25 Thread Gerd Hoffmann
usb-storage can't handle requests in one go as the data transfer can be splitted into lots of usb packets. Because of that there can be normal in-flight requests at savevm time and we need to handle that. With other scsi hba's this happens only in case i/o is stopped due to errors and there are

[Qemu-devel] [PATCH 01/10] uhci: fix bandwidth management

2012-05-25 Thread Gerd Hoffmann
uhci_process_frame() can be invoked multiple times per frame, so accounting usb bandwith in a local variable doesn't fly, use a variable in UHCIState instead. Also check the limit more frequently. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-uhci.c | 22 --

Re: [Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-05-25 Thread Zhi Yong Wu
On Fri, May 25, 2012 at 7:05 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 25/05/2012 12:52, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1.

[Qemu-devel] [PATCH 8/8] xhci: trace: slots

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 12 ++-- trace-events |6 ++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 7e823da..6c2ff02 100644 --- a/hw/usb/hcd-xhci.c +++

Re: [Qemu-devel] [PULL 1.1 0/2] SCSI patches for 1.1.0-rc3

2012-05-25 Thread Paolo Bonzini
Il 22/05/2012 14:25, Paolo Bonzini ha scritto: The following changes since commit 76ee152a86d5f2533443ce4d2be6fe253cfb3c45: Update version to 1.1.0-rc2 (2012-05-14 17:56:50 -0500) are available in the git repository at: git://github.com/bonzini/qemu.git scsi-next for you to fetch

Re: [Qemu-devel] [PATCH 0/1] ISCSI: Optimize how we set up the events

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 12:25, Ronnie Sahlberg ha scritto: This patch updates how iscsi sets up the read and write events so that we only call qemu_aio_set_fd_handler() and qemu_notify_event() when we actually need to. Applied, thanks. Paolo

[Qemu-devel] [PATCH 08/10] usb-storage: add usb_msd_packet_complete()

2012-05-25 Thread Gerd Hoffmann
Factor out packet completion to a separate function which cares to get the MSDState-packet update right. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-storage.c | 28 1 files changed, 16 insertions(+), 12 deletions(-) diff --git

[Qemu-devel] [PATCH 2/8] xhci: trace: mmio reads+writes

2012-05-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 163 ++--- trace-events | 12 2 files changed, 117 insertions(+), 58 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 4bc1e0e..84d714a 100644

Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication]

2012-05-25 Thread Paolo Bonzini
Il 25/05/2012 11:43, Stefan Hajnoczi ha scritto: On Thu, May 24, 2012 at 03:41:29PM +0200, Paolo Bonzini wrote: Persistent dirty bitmap === A persistent dirty bitmap can be used by management for two reasons. When mirroring is used for continuous replication of storage,

Re: [Qemu-devel] [PATCH v3 00/16] net: hub-based networking

2012-05-25 Thread Markus Armbruster
Stefan Hajnoczi stefa...@linux.vnet.ibm.com writes: On Thu, May 24, 2012 at 05:53:21PM -0300, Luiz Capitulino wrote: On Fri, 25 May 2012 01:59:06 +0800 zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patchset implements network hub stead of vlan. The main

[Qemu-devel] [PATCH 1/8] xhci: Clean up reset function

2012-05-25 Thread Gerd Hoffmann
From: Jan Kiszka jan.kis...@siemens.com Properly register reset function via the device class. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH 07/10] usb-storage: remove MSDState-residue

2012-05-25 Thread Gerd Hoffmann
We have the field twice, once in MSDState directly and one in the status word struct. Drop one. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-storage.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c

[Qemu-devel] [PATCH 4/9] unicore32-softmmu: make sure that kernel can access user space

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 33 - 1 files changed, 24 insertions(+), 9 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index d76fff0..1f0ba4f 100644 ---

[Qemu-devel] [PATCH 1/9] unicore32-softmmu: make exceptions generated in unicore32 architecture

2012-05-25 Thread Guan Xuetao
We need to specify the exception type in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- cpu-exec.c |1 + linux-user/main.c |3 ++- target-unicore32/cpu.h |6 -- 3 files changed,

[Qemu-devel] [PATCH 3/9] unicore32-softmmu: add coprocessor 0 and ocd instruction support

2012-05-25 Thread Guan Xuetao
Coprocessor 0 is system control coprocessor, and we need get/set its contents. Also, all cache/tlb ops shoule be implemented here, but just ignored with no harm. OCD (on-chip-debugger) is used for faked console, so we could output chars to this console without graphic card. Signed-off-by: Guan

[Qemu-devel] [PATCH 9/9] unicore32-softmmu: add maintainer information

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index b45f075..5b6b031 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -394,6 +394,13 @@ M: Alexander Graf ag...@suse.de S:

[Qemu-devel] [PATCH 8/9] unicore32-softmmu: add config and makefile support

2012-05-25 Thread Guan Xuetao
This patch adds configure and makefile support for unicore32-softmmu. All puv3-soc devices are put into hw/pkunity directory, so this dir will be added when unicore32-softmmu is selected. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- Makefile.target |5 +

[Qemu-devel] [PATCH 0/9] *** SUBJECT HERE ***

2012-05-25 Thread Guan Xuetao
These patches implement softmmu support on unicore32 architecture. UniCore32 CPU is embedded in PKUnity-3 SoC, so we add hw/pkunity dir to contain all puv3 devices simulation codes together. Only minimal system control modules are simulated, to make linux kernel boot and busybox run in initramfs.

[Qemu-devel] [PATCH 2/9] unicore32-softmmu: implement some softmmu specific functions

2012-05-25 Thread Guan Xuetao
This patch seperates softmmu functions from the old user-only ones. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/helper.c | 25 ++-- target-unicore32/uc32_softmmu.c | 267

[Qemu-devel] [PATCH 7/9] unicore32-softmmu: add puv3 soc support

2012-05-25 Thread Guan Xuetao
This patch only add minimal necessary system-control modules simulation for successfully kernel booting and busybox running. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/pkunity/puv3.c | 130 + hw/pkunity/puv3.h | 49

Re: [Qemu-devel] [RFC PATCH] PCI: Introduce INTx check mask API

2012-05-25 Thread Alexey Kardashevskiy
25.05.2012 20:43, Jan Kiszka написал: On 2012-05-24 23:47, Alexey Kardashevskiy wrote: On 25/05/12 12:29, Jan Kiszka wrote: On 2012-05-24 22:18, Alexey Kardashevskiy wrote: On 24/05/12 22:02, Jan Kiszka wrote: On 2012-05-24 04:44, Alexey Kardashevskiy wrote: [Found while debugging VFIO on

[Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/cpu.c | 17 + target-unicore32/cpu.h |2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c index de63f58..62c0a22 100644 ---

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Stefan Hajnoczi
On Wed, May 23, 2012 at 2:11 PM, Michael Tokarev m...@tls.msk.ru wrote: On 23.05.2012 16:57, Stefan Hajnoczi wrote: [] However, the qcow2 file should not grow much beyond its virtual disk size.  So if you find the qcow2 is 3G but the virtual disk size is 1G, then there is a bug.  But from

[Qemu-devel] [PATCH 6/9] unicore32-softmmu: add generic cpu state save/load functions

2012-05-25 Thread Guan Xuetao
This patch adds generic cpu state save/load functions for UniCore32 ISA. All architecture related registers are saved or loaded, and no optimization. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/machine.c | 99 1 files

Re: [Qemu-devel] [PATCH 0/9] *** SUBJECT HERE ***

2012-05-25 Thread Guan Xuetao
On Fri, 2012-05-25 at 19:28 +0800, Guan Xuetao wrote: These patches implement softmmu support on unicore32 architecture. I'm really sorry for the subject. The subject is: softmmu implementation on UniCore32 ISA Thanks. Guan Xuetao

Re: [Qemu-devel] [RFC PATCH] PCI: Introduce INTx check mask API

2012-05-25 Thread Jan Kiszka
On 2012-05-25 08:26, Alexey Kardashevskiy wrote: 25.05.2012 20:43, Jan Kiszka написал: On 2012-05-24 23:47, Alexey Kardashevskiy wrote: On 25/05/12 12:29, Jan Kiszka wrote: On 2012-05-24 22:18, Alexey Kardashevskiy wrote: On 24/05/12 22:02, Jan Kiszka wrote: On 2012-05-24 04:44, Alexey

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 11:40 AM, Charles.Tsai-蔡清海-研究發展部 charles.t...@cloudena.com wrote: Stefan, Can you explain why a 64KB could be allocated for each sector write? The default cluster size in qcow2 is 64 KB. qcow2 manages space in 64 KB pieces. Therefore, when you write to a region

Re: [Qemu-devel] [Bug 1004050] [NEW] qemu-system-ppc64 by default has non-working keyboard

2012-05-25 Thread Andreas Färber
Am 24.05.2012 18:51, schrieb Richard W.M. Jones: Compile qemu from git and do: ./ppc64-softmmu/qemu-system-ppc64 (ie. no parameters). It boots to an OpenBIOS prompt. However the keyboard doesn't work. After ~10 keypresses, qemu just says: usb-kbd: warning: key event queue full

Re: [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu

2012-05-25 Thread Andreas Färber
Am 25.05.2012 13:29, schrieb Guan Xuetao: Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/cpu.c | 17 + target-unicore32/cpu.h |2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c

Re: [Qemu-devel] [PATCH 6/9] unicore32-softmmu: add generic cpu state save/load functions

2012-05-25 Thread Andreas Färber
Am 25.05.2012 13:29, schrieb Guan Xuetao: This patch adds generic cpu state save/load functions for UniCore32 ISA. All architecture related registers are saved or loaded, and no optimization. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/machine.c | 99

Re: [Qemu-devel] [PATCH 6/9] unicore32-softmmu: add generic cpu state save/load functions

2012-05-25 Thread 陳韋任
Hi Guan, +void cpu_save(QEMUFile *f, void *opaque) +{ +int i; +CPUUniCore32State *env = (CPUUniCore32State *)opaque; + +for (i = 0; i 32; i++) { +qemu_put_be32(f, env-regs[i]); +} +qemu_put_be32(f, cpu_asr_read(env)); +qemu_put_be32(f, env-bsr); +

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Stefan Hajnoczi
On Fri, May 25, 2012 at 10:20 AM, Charles.Tsai-蔡清海-研究發展部 charles.t...@cloudena.com wrote: Stefan, I made two test cases here. 1) case one: A 32-bit Windows 7 VM with 8G virtual disk size. In this test, the virtual disk is almost full.

Re: [Qemu-devel] [PATCH 7/9] unicore32-softmmu: add puv3 soc support

2012-05-25 Thread Andreas Färber
Am 25.05.2012 13:29, schrieb Guan Xuetao: This patch only add minimal necessary system-control modules simulation for successfully kernel booting and busybox running. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/pkunity/puv3.c | 130 +

Re: [Qemu-devel] [PATCH 8/9] unicore32-softmmu: add config and makefile support

2012-05-25 Thread Andreas Färber
Am 25.05.2012 13:29, schrieb Guan Xuetao: This patch adds configure and makefile support for unicore32-softmmu. All puv3-soc devices are put into hw/pkunity directory, so this dir will be added when unicore32-softmmu is selected. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn ---

[Qemu-devel] [PATCH] uhci: fix irq routing

2012-05-25 Thread Gerd Hoffmann
The multifunction ich9 ehci controller with uhci companions uses a different interrupt pin for each function. The three uhci devices get pins A, B and C, whereas ehci uses pin D. This way the guest can assign different IRQ lines to each controller. Signed-off-by: Gerd Hoffmann kra...@redhat.com

[Qemu-devel] [PATCH for-1.1?] target-unicore32: Drop UC32_CPUID macros

2012-05-25 Thread Andreas Färber
Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber afaer...@suse.de --- target-unicore32/cpu.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-unicore32/cpu.h

  1   2   3   >