Re: [RFC v5 0/8] QEMU: Support KVM on ARM

2013-01-25 Thread Paolo Bonzini
Il 24/01/2013 16:43, Peter Maydell ha scritto: Round 5 of the QEMU patches to support KVM for ARM on Cortex-A15 hardware. It's intended for use with the kernel tree at git://github.com/virtualopensystems/linux-kvm-arm.git kvm-arm-v17-vgic-timers Still RFC pending the kernel patches

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Raghavendra K T
* Ingo Molnar mi...@kernel.org [2013-01-24 11:32:13]: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From: Peter Zijlstra pet...@infradead.org In case of undercomitted scenarios, especially in large guests yield_to overhead is significantly high. when run queue length of

[PATCH V2 00/20] Multiqueue virtio-net

2013-01-25 Thread Jason Wang
Hello all: This seires is an update of last version of multiqueue virtio-net support. This series tries to brings multiqueue support to virtio-net through a multiqueue support tap backend and multiple vhost threads. To support this, multiqueue nic support were added to qemu. This is done by

[PATCH V2 01/20] net: introduce qemu_get_queue()

2013-01-25 Thread Jason Wang
To support multiqueue, the patch introduce a helper qemu_get_queue() which is used to get the NetClientState of a device. The following patches would refactor this helper to support multiqueue. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/cadence_gem.c|9 +++-- hw/dp8393x.c

[PATCH V2 02/20] net: introduce qemu_get_nic()

2013-01-25 Thread Jason Wang
To support multiqueue, this patch introduces a helper qemu_get_nic() to get NICState from a NetClientState. The following patches would refactor this helper to support multiqueue. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/cadence_gem.c|8 hw/dp8393x.c|

[PATCH V2 03/20] net: intorduce qemu_del_nic()

2013-01-25 Thread Jason Wang
To support multiqueue nic, this patch separate the nic destructor from qemu_del_net_client() to a new helper qemu_del_nic() since the mapping bettween NiCState and NetClientState were not 1:1 in multiqueue. The following patches would refactor this function to support multiqueue nic.

[PATCH V2 04/20] net: introduce qemu_find_net_clients_except()

2013-01-25 Thread Jason Wang
In multiqueue, all NetClientState that belongs to the same netdev or nic has the same id. So this patches introduces an helper qemu_find_net_clients_except() which finds all NetClientState with the same id. This will be used by multiqueue networking. Signed-off-by: Jason Wang jasow...@redhat.com

[PATCH V2 05/20] net: introduce qemu_net_client_setup()

2013-01-25 Thread Jason Wang
This patch separates the setup of NetClientState from its allocation, this will allow allocating an arrays of NetClientState and does the initialization one by one which is what multiqueue needs. Signed-off-by: Jason Wang jasow...@redhat.com --- net/net.c | 29 +++-- 1

[PATCH V2 06/20] net: introduce NetClientState destructor

2013-01-25 Thread Jason Wang
To allow allocating an array of NetClientState and free it once, this patch introduces destructor of NetClientState. Which could do type specific free, which could be used by multiqueue to free the array once. Signed-off-by: Jason Wang jasow...@redhat.com --- include/net/net.h |2 ++

[PATCH V2 09/20] tap: factor out common tap initialization

2013-01-25 Thread Jason Wang
This patch factors out the common initialization of tap into a new helper net_init_tap_one(). This will be used by multiqueue tap patches. Signed-off-by: Jason Wang jasow...@redhat.com --- net/tap.c | 130 ++--- 1 files changed, 73

[PATCH V2 08/20] tap: import linux multiqueue constants

2013-01-25 Thread Jason Wang
Import multiqueue constants from if_tun.h from 3.8-rc3. A new ifr flag IFF_MULTI_QUEUE were introduced to create a multiqueue backend by calling TUNSETIFF with the this flag and with the same interface name many times. A new ioctl TUNSETQUEUE were introduced. When doing this ioctl with

[PATCH V2 10/20] tap: add Linux multiqueue support

2013-01-25 Thread Jason Wang
This patch add basic multiqueue support for Linux. When multiqueue is needed, we will first check whether kernel support multiqueue tap before creating more queues. Two new functions tap_fd_enable() and tap_fd_disable() were introduced to enable and disable a specific queue. Since the multiqueue

[PATCH V2 11/20] tap: support enabling or disabling a queue

2013-01-25 Thread Jason Wang
This patch introduce a new bit - enabled in TAPState which tracks whether a specific queue/fd is enabled. The tap/fd is enabled during initialization and could be enabled/disabled by tap_enalbe() and tap_disable() which calls platform specific helpers to do the real work. Polling of a tap fd can

[PATCH V2 12/20] tap: introduce a helper to get the name of an interface

2013-01-25 Thread Jason Wang
This patch introduces a helper tap_get_ifname() to get the device name of tap device. This is needed when ifname is unspecified in the command line and qemu were asked to create tap device by itself. In this situation, the name were allocated by kernel, so if multiqueue is asked, we need to fetch

[PATCH V2 14/20] vhost: multiqueue support

2013-01-25 Thread Jason Wang
This patch lets vhost support multiqueue. The idea is simple, just launching multiple threads of vhost and let each of vhost thread processing a subset of the virtqueues of the device. After this change each emulated device can have multiple vhost threads as its backend. To do this, a virtqueue

[PATCH V2 15/20] virtio: introduce virtio_del_queue()

2013-01-25 Thread Jason Wang
Some device (such as virtio-net) needs the ability to destroy or re-order the virtqueues, this patch adds a helper to do this. Signed-off-by: Jason Wang jasowang --- hw/virtio.c |9 + hw/virtio.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c

[PATCH V2 16/20] virtio: add a queue_index to VirtQueue

2013-01-25 Thread Jason Wang
Add a queue_index to VirtQueue and a helper to fetch it, this could be used by multiqueue supported device. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/virtio.c |8 hw/virtio.h |1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c

[PATCH V2 17/20] virtio-net: separate virtqueue from VirtIONet

2013-01-25 Thread Jason Wang
To support multiqueue virtio-net, the first step is to separate the virtqueue related fields from VirtIONet to a new structure VirtIONetQueue. The following patches will add an array of VirtIONetQueue to VirtIONet based on this patch. Signed-off-by: Jason Wang jasow...@redhat.com ---

[PATCH V2 18/20] virtio-net: multiqueue support

2013-01-25 Thread Jason Wang
This patch implements both userspace and vhost support for multiple queue virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of VirtIONetQueue to VirtIONet. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/virtio-net.c | 317

[PATCH V2 19/20] virtio-net: migration support for multiqueue

2013-01-25 Thread Jason Wang
This patch add migration support for multiqueue virtio-net. Instead of bumping the version, we conditionally send the info of multiqueue only when the device support more than one queue to maintain the backward compatibility. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/virtio-net.c |

[PATCH V2 20/20] virtio-net: compat multiqueue support

2013-01-25 Thread Jason Wang
Disable multiqueue support for pre 1.4. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/pc_piix.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 0a6923d..7bc3563 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -297,6 +297,10 @@

[PATCH V2 07/20] net: multiqueue support

2013-01-25 Thread Jason Wang
This patch adds basic multiqueue support for qemu. The idea is simple, an array of NetClientStates were introduced in NICState, parse_netdev() were extended to find and match all NetClientStates belongs to the backend and place their pointers in NICConf. Then qemu_new_nic can setup a N:N mapping

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Ingo Molnar
* Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: * Ingo Molnar mi...@kernel.org [2013-01-24 11:32:13]: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From: Peter Zijlstra pet...@infradead.org In case of undercomitted scenarios, especially in large

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Andrew Jones
On Fri, Jan 25, 2013 at 04:10:25PM +0530, Raghavendra K T wrote: * Ingo Molnar mi...@kernel.org [2013-01-24 11:32:13]: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From: Peter Zijlstra pet...@infradead.org In case of undercomitted scenarios, especially in large

[PATCH] kvm tools: Fix SDL and VNC by setting vidmode correctly

2013-01-25 Thread Asias He
In commit dfefbe9d4894efc44c39b2041bd667d0dea43eca kvm tools: allow arch's to provide their own command-line options, vidmode is not setup correctly. Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/x86/kvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 3/8] KVM: PPC: booke: Added debug handler

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: From: Bharat Bhushan bharat.bhus...@freescale.com Installed debug handler will be used for guest debug support and debug facility emulation features (patches for these features will follow this patch). Signed-off-by: Liu Yu

Re: [PATCH 4/8] Added ONE_REG interface for debug instruction

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: This patch adds the one_reg interface to get the special instruction to be used for setting software breakpoint from userspace. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- Documentation/virtual/kvm/api.txt |1 +

Re: [PATCH 5/8] KVM: PPC: debug stub interface parameter defined

2013-01-25 Thread Alexander Graf
On 17.01.2013, at 12:11, Bhushan Bharat-R65777 wrote: -Original Message- From: Paul Mackerras [mailto:pau...@samba.org] Sent: Thursday, January 17, 2013 12:53 PM To: Bhushan Bharat-R65777 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; ag...@suse.de; Bhushan Bharat- R65777

Re: [PATCH 7/8] KVM: PPC: booke/bookehv: Add debug stub support

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: This patch adds the debug stub support on booke/bookehv. Now QEMU debug stub can use hw breakpoint, watchpoint and software breakpoint to debug guest. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

Re: [PATCH 8/8] KVM:PPC:booke: Allow debug interrupt injection to guest

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: Allow userspace to inject debug interrupt to guest. QEMU can s/QEMU/user space. inject the debug interrupt to guest if it is not able to handle the debug interrupt. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

Re: [PATCH v8 0/2] s390: virtio-ccw transport.

2013-01-25 Thread Cornelia Huck
On Thu, 24 Jan 2013 17:17:46 +0100 Alexander Graf ag...@suse.de wrote: On 24.01.2013, at 17:08, Cornelia Huck wrote: Hi, patches against s390-next again, with coding style fixes. Thanks, applied to s390-next. Hm, did you forget to apply 2/2? Alex -- To unsubscribe from

Re: [PATCH 0/8] KVM: BOOKE/BOOKEHV : Added debug stub support

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:20, Bharat Bhushan wrote: This patchset adds the QEMU debug stub support for powerpc (booke/bookehv). [1/8] KVM: PPC: booke: use vcpu reference from thread_struct - This is a cleanup patch to use vcpu reference from thread struct [2/8] KVM: PPC: booke: Allow

Re: [PATCH v8 0/2] s390: virtio-ccw transport.

2013-01-25 Thread Alexander Graf
On 25.01.2013, at 13:37, Cornelia Huck wrote: On Thu, 24 Jan 2013 17:17:46 +0100 Alexander Graf ag...@suse.de wrote: On 24.01.2013, at 17:08, Cornelia Huck wrote: Hi, patches against s390-next again, with coding style fixes. Thanks, applied to s390-next. Hm, did you forget to

[PATCH] kvm tools: Beautify debug output

2013-01-25 Thread Asias He
1. print mem debug info into debugfd instead guest console 2. always print page table info Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/include/kvm/kvm.h | 2 +- tools/kvm/kvm.c | 11 ++- tools/kvm/x86/kvm-cpu.c | 12 +--- 3 files changed, 16

Re: [PATCH v6 00/11] s390: channel I/O support in qemu.

2013-01-25 Thread Anthony Liguori
Hi, Thank you for submitting your patch series. checkpatch.pl has detected that one or more of the patches in this series violate the QEMU coding style. If you believe this message was sent in error, please ignore it or respond here with an explanation. Otherwise, please correct the coding

[PATCH 2/3] s390/virtio-ccw: Fix setup_vq error handling.

2013-01-25 Thread Christian Borntraeger
virtio_ccw_setup_vq() failed to unwind correctly on errors. In particular, it failed to delete the virtqueue on errors, leading to list corruption when virtio_ccw_del_vqs() iterated over a virtqueue that had not been added to the vcdev's list. Fix this with redoing the error unwinding in

[PATCH 0/3] s390/kvm fixes

2013-01-25 Thread Christian Borntraeger
Gleb, Marcelo, here are 3 kvm fixes for kvm-next. Christian Borntraeger (3): s390/kvm: Fix store status for ACRS/FPRS s390/virtio-ccw: Fix setup_vq error handling. s390/kvm: Fix instruction decoding arch/s390/kvm/kvm-s390.c | 8 arch/s390/kvm/kvm-s390.h | 25

[PATCH 1/3] s390/kvm: Fix store status for ACRS/FPRS

2013-01-25 Thread Christian Borntraeger
On store status we need to copy the current state of registers into a save area. Currently we might save stale versions: The sie state descriptor doesnt have fields for guest ACRS,FPRS, those registers are simply stored in the host registers. The host program must copy these away if needed. We do

[PATCH 3/3] s390/kvm: Fix instruction decoding

2013-01-25 Thread Christian Borntraeger
Instructions with long displacement have a signed displacement. Currently the sign bit is interpreted as 2^20: Lets fix it by doing the sign extension from 20bit to 32bit and then use it as a signed variable in the addition (see kvm_s390_get_base_disp_rsy). Furthermore, there are lots of int in

Re: [PATCH 2/3] s390/virtio-ccw: Fix setup_vq error handling.

2013-01-25 Thread Christian Borntraeger
On 25/01/13 15:34, Christian Borntraeger wrote: Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com Sorry, I messed up the From. Should I resend or can you change the author to Cornelia Huck cornelia.h...@de.ibm.com Christian -- To unsubscribe from this list: send the line unsubscribe kvm

[PATCH qom-cpu for-1.4?] kvm: Pass CPUState to kvm_on_sigbus_vcpu()

2013-01-25 Thread Andreas Färber
Since commit 20d695a9254c1b086a456d3b79a3c311236643ba (kvm: Pass CPUState to kvm_arch_*) CPUArchState is no longer needed. Allows to change qemu_kvm_eat_signals() argument as well. Signed-off-by: Andreas Färber afaer...@suse.de --- Extracted from my qom-cpu-8 queue. cpus.c |

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Raghavendra K T
On 01/25/2013 04:17 PM, Ingo Molnar wrote: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: * Ingo Molnar mi...@kernel.org [2013-01-24 11:32:13]: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From: Peter Zijlstra pet...@infradead.org In case of undercomitted

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Raghavendra K T
On 01/25/2013 04:35 PM, Andrew Jones wrote: On Fri, Jan 25, 2013 at 04:10:25PM +0530, Raghavendra K T wrote: * Ingo Molnar mi...@kernel.org [2013-01-24 11:32:13]: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From: Peter Zijlstra pet...@infradead.org In case of undercomitted

Re: linux-next: Tree for Jan 25 (kvm)

2013-01-25 Thread Randy Dunlap
On 01/24/13 21:26, Stephen Rothwell wrote: Hi all, Changes since 20130124: Seeing lots of this error on i386: arch/x86/kvm/emulate.c:1016: Error: unsupported for `push' -- ~Randy -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Ingo Molnar
* Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: On 01/25/2013 04:17 PM, Ingo Molnar wrote: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: * Ingo Molnar mi...@kernel.org [2013-01-24 11:32:13]: * Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From:

Re: [Qemu-devel] [PATCH V2 11/20] tap: support enabling or disabling a queue

2013-01-25 Thread Blue Swirl
On Fri, Jan 25, 2013 at 10:35 AM, Jason Wang jasow...@redhat.com wrote: This patch introduce a new bit - enabled in TAPState which tracks whether a specific queue/fd is enabled. The tap/fd is enabled during initialization and could be enabled/disabled by tap_enalbe() and tap_disable() which

Re: windows 2008 guest causing rcu_shed to emit NMI

2013-01-25 Thread Marcelo Tosatti
On Fri, Jan 25, 2013 at 10:45:02AM +0300, Andrey Korolyov wrote: On Thu, Jan 24, 2013 at 4:20 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Jan 24, 2013 at 01:54:03PM +0300, Andrey Korolyov wrote: Thank you Marcelo, Host node locking up sometimes later than yesterday, bur problem

Re: linux-next: Tree for Jan 25 (kvm)

2013-01-25 Thread Stephen Rothwell
On Fri, 25 Jan 2013 08:53:58 -0800 Randy Dunlap rdun...@infradead.org wrote: Seeing lots of this error on i386: arch/x86/kvm/emulate.c:1016: Error: unsupported for `push' Caused by commit 9ae9febae950 (KVM: x86 emulator: covert SETCC to fastop) from the kvm tree. cc's added. -- Cheers,

Re: [PATCH 3/8] KVM: PPC: booke: Added debug handler

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: From: Bharat Bhushan bharat.bhus...@freescale.com Installed debug handler will be used for guest debug support and debug facility emulation features (patches for these features will follow this patch). Signed-off-by: Liu Yu

Re: [PATCH 4/8] Added ONE_REG interface for debug instruction

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: This patch adds the one_reg interface to get the special instruction to be used for setting software breakpoint from userspace. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- Documentation/virtual/kvm/api.txt |1 +

Re: [PATCH 5/8] KVM: PPC: debug stub interface parameter defined

2013-01-25 Thread Alexander Graf
On 17.01.2013, at 12:11, Bhushan Bharat-R65777 wrote: -Original Message- From: Paul Mackerras [mailto:pau...@samba.org] Sent: Thursday, January 17, 2013 12:53 PM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; ag...@suse.de; Bhushan Bharat- R65777

Re: [PATCH 7/8] KVM: PPC: booke/bookehv: Add debug stub support

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: This patch adds the debug stub support on booke/bookehv. Now QEMU debug stub can use hw breakpoint, watchpoint and software breakpoint to debug guest. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

Re: [PATCH 8/8] KVM:PPC:booke: Allow debug interrupt injection to guest

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:24, Bharat Bhushan wrote: Allow userspace to inject debug interrupt to guest. QEMU can s/QEMU/user space. inject the debug interrupt to guest if it is not able to handle the debug interrupt. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

Re: [PATCH 0/8] KVM: BOOKE/BOOKEHV : Added debug stub support

2013-01-25 Thread Alexander Graf
On 16.01.2013, at 09:20, Bharat Bhushan wrote: This patchset adds the QEMU debug stub support for powerpc (booke/bookehv). [1/8] KVM: PPC: booke: use vcpu reference from thread_struct - This is a cleanup patch to use vcpu reference from thread struct [2/8] KVM: PPC: booke: Allow