Re: [PATCH V3 2/2] tcm_vhost: Initialize vq-last_used_idx when set endpoint

2013-04-08 Thread Nicholas A. Bellinger
On Mon, 2013-04-08 at 10:10 +0300, Michael S. Tsirkin wrote: On Wed, Apr 03, 2013 at 02:17:38PM +0800, Asias He wrote: This patch fixes guest hang when booting seabios and guest. [0.576238] scsi0 : Virtio SCSI HBA [0.616754] virtio_scsi virtio1: request:id 0 is not a head!

Re: [PATCH V4 0/2] tcm_vhost hotplug

2013-04-08 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 13:39 +0800, Asias He wrote: Asias He (2): tcm_vhost: Introduce tcm_vhost_check_feature() tcm_vhost: Add hotplug/hotunplug support drivers/vhost/tcm_vhost.c | 224 -- drivers/vhost/tcm_vhost.h | 10 +++ 2 files

Re: [PATCH V2 0/3] tcm_vhost pending requests flush

2013-04-08 Thread Nicholas A. Bellinger
On Fri, 2013-03-22 at 14:55 +0800, Asias He wrote: Changes in v2: - Increase/Decrease inflight requests in vhost_scsi_{allocate,free}_cmd and tcm_vhost_{allocate,free}_evt Asias He (3): tcm_vhost: Wait for pending requests in vhost_scsi_flush() tcm_vhost: Wait for pending requests in

Re: [PATCH V4 0/2] tcm_vhost hotplug

2013-04-08 Thread Nicholas A. Bellinger
(Re-send, as target-devel CC' managed to get dropped) On Fri, 2013-03-22 at 13:39 +0800, Asias He wrote: Asias He (2): tcm_vhost: Introduce tcm_vhost_check_feature() tcm_vhost: Add hotplug/hotunplug support drivers/vhost/tcm_vhost.c | 224

Re: [PATCH V4 0/2] tcm_vhost hotplug

2013-04-08 Thread Michael S. Tsirkin
On Mon, Apr 08, 2013 at 02:31:27PM -0700, Nicholas A. Bellinger wrote: On Fri, 2013-03-22 at 13:39 +0800, Asias He wrote: Asias He (2): tcm_vhost: Introduce tcm_vhost_check_feature() tcm_vhost: Add hotplug/hotunplug support drivers/vhost/tcm_vhost.c | 224

Re: [PATCH-v2 1/2] virtio-scsi: create VirtIOSCSICommon

2013-04-08 Thread Anthony Liguori
Nicholas A. Bellinger n...@linux-iscsi.org writes: From: Paolo Bonzini pbonz...@redhat.com This patch refactors existing virtio-scsi code into VirtIOSCSICommon in order to allow virtio_scsi_init_common() to be used by both internal virtio_scsi_init() and external vhost-scsi-pci code.

[PATCH 1/3] kvm tools: Increase amount of possible interrupts per PCI device

2013-04-08 Thread Sasha Levin
We've limited the amount of interrupts per PCI device to be the maximum amount of VQs. Now that the maximum amount of VQs has increased, time to increase this as well. Signed-off-by: Sasha Levin sasha.le...@oracle.com --- tools/kvm/include/kvm/virtio-pci.h | 2 +- 1 file changed, 1

[PATCH 2/3] kvm-tools: support virtio-net ctrl queue

2013-04-08 Thread Sasha Levin
We don't need much out of it at this point, but we will need it for virtio-net mq patch. Signed-off-by: Sasha Levin sasha.le...@oracle.com --- tools/kvm/virtio/net.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/tools/kvm/virtio/net.c

[PATCH 3/3] kvm tools: virtio-net multiqueue support

2013-04-08 Thread Sasha Levin
This patch adds support for multiple virtio-net queues. Each queue gets assigned to it's own corresponding rx/tx thread. The max amount of queue pairs is 8 right now, it's up to the guest to decide the actual amount of queues it wants using ethtool. For example, if I want 2 queue pairs on eth0:

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-08 Thread Scott Wood
On 04/08/2013 01:30:42 AM, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:57:52PM -0500, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. [snip] @@ -2164,6 +2164,15 @@ static int kvm_ioctl_create_device(struct kvm *kvm, bool test = cd-flags

Re: [RFC PATCH v3 1/6] kvm: add device control API

2013-04-08 Thread Scott Wood
On 04/08/2013 12:33:13 AM, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:57:48PM -0500, Scott Wood wrote: [snip] +static int kvm_ioctl_create_device(struct kvm *kvm, + struct kvm_create_device *cd) +{ + bool test = cd-flags KVM_CREATE_DEVICE_TEST; + +

Re: [PATCH V4 0/2] tcm_vhost hotplug

2013-04-08 Thread Asias He
On Mon, Apr 08, 2013 at 02:31:27PM -0700, Nicholas A. Bellinger wrote: On Fri, 2013-03-22 at 13:39 +0800, Asias He wrote: Asias He (2): tcm_vhost: Introduce tcm_vhost_check_feature() tcm_vhost: Add hotplug/hotunplug support drivers/vhost/tcm_vhost.c | 224

RE: RFC: vfio API changes needed for powerpc (v3)

2013-04-08 Thread Yoder Stuart-B08248
-Original Message- From: Wood Scott-B07421 Sent: Friday, April 05, 2013 5:17 PM To: Yoder Stuart-B08248 Cc: Alex Williamson; Wood Scott-B07421; ag...@suse.de; Bhushan Bharat-R65777; Sethi Varun-B16395; kvm@vger.kernel.org; qemu-de...@nongnu.org; io...@lists.linux-foundation.org

Re: [PATCH-v2 1/2] virtio-scsi: create VirtIOSCSICommon

2013-04-08 Thread Nicholas A. Bellinger
On Mon, 2013-04-08 at 16:59 -0500, Anthony Liguori wrote: Nicholas A. Bellinger n...@linux-iscsi.org writes: From: Paolo Bonzini pbonz...@redhat.com This patch refactors existing virtio-scsi code into VirtIOSCSICommon in order to allow virtio_scsi_init_common() to be used by both

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-08 Thread Paul Mackerras
On Tue, Apr 02, 2013 at 08:57:52PM -0500, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. [snip] @@ -2164,6 +2164,15 @@ static int kvm_ioctl_create_device(struct kvm *kvm, bool test = cd-flags KVM_CREATE_DEVICE_TEST; switch (cd-type) {

[PATCH 0/7 v3] KVM :PPC: Userspace Debug support

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com This patchset adds the userspace debug support for booke/bookehv. this is tested on powerpc e500v2/e500mc devices. We are now assuming that debug resource will not be used by kernel for its own debugging. It will be used for only kernel user

[PATCH 1/7 v3] KVM: PPC: debug stub interface parameter defined

2013-04-08 Thread Bharat Bhushan
This patch defines the interface parameter for KVM_SET_GUEST_DEBUG ioctl support. Follow up patches will use this for setting up hardware breakpoints, watchpoints and software breakpoints. Also kvm_arch_vcpu_ioctl_set_guest_debug() is brought one level below. This is because I am not sure what is

[PATCH 2/7 v3] Rename EMULATE_DO_PAPR to EMULATE_EXIT_USER

2013-04-08 Thread Bharat Bhushan
Instruction emulation return EMULATE_DO_PAPR when it requires exit to userspace on book3s. Similar return is required for booke. EMULATE_DO_PAPR reads out to be confusing so it is renamed to EMULATE_EXIT_USER. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

[PATCH 3/7 v3] KVM: extend EMULATE_EXIT_USER to support different exit reasons

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com Currently the instruction emulator code returns EMULATE_EXIT_USER and common code initializes the run-exit_reason = .. and vcpu-arch.hcall_needed = .. with one fixed reason. But there can be different reasons when emulator need to exit to user

[PATCH 4/7 v3] booke: exit to user space if emulator request

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com This allows the exit to user space if emulator request by returning EMULATE_EXIT_USER. This will be used in subsequent patches in list Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c |3 +++ 1 files

[PATCH 5/7 v3] KVM: PPC: exit to user space on ehpriv instruction

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com ehpriv instruction is used for setting software breakpoints by user space. This patch adds support to exit to user space with run-debug have relevant information. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com ---

[PATCH 6/7 v3] powerpc: export debug register save function for KVM

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com KVM need this function when switching from vcpu to user-space thread. My subsequent patch will use this function. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/switch_to.h |4

[PATCH 7/7 v3] KVM: PPC: Add userspace debug stub support

2013-04-08 Thread Bharat Bhushan
From: Bharat Bhushan bharat.bhus...@freescale.com 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. Debug registers are saved/restored on vcpu_put()/vcpu_get(). Also the debug registers are saved

Re: [RFC PATCH v3 1/6] kvm: add device control API

2013-04-08 Thread Gleb Natapov
On Thu, Apr 04, 2013 at 06:47:45PM -0500, Scott Wood wrote: On 04/04/2013 05:41:35 AM, Gleb Natapov wrote: On Tue, Apr 02, 2013 at 08:57:48PM -0500, Scott Wood wrote: +struct kvm_device_attr { + __u32 flags; /* no flags currently defined */ + __u32 group; /*

Re: [RFC PATCH v3 1/6] kvm: add device control API

2013-04-08 Thread Gleb Natapov
On Fri, Apr 05, 2013 at 12:02:06PM +1100, Paul Mackerras wrote: On Thu, Apr 04, 2013 at 01:41:35PM +0300, Gleb Natapov wrote: Since now each device has its own fd is it an advantage to enforce common interface between different devices? If we do so though why not handle file creation,

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-08 Thread Gleb Natapov
On Thu, Apr 04, 2013 at 06:33:38PM -0500, Scott Wood wrote: On 04/04/2013 12:59:02 AM, Gleb Natapov wrote: On Wed, Apr 03, 2013 at 03:58:04PM -0500, Scott Wood wrote: KVM_DEV_MPIC_* could go elsewhere if you want to avoid cluttering the main kvm.h. The arch header would be OK, since the

Re: [PULL 0/7] ppc patch queue 2013-03-22

2013-04-08 Thread Scott Wood
On 03/31/2013 06:05:40 AM, Alexander Graf wrote: On 31.03.2013, at 12:49, Gleb Natapov wrote: On Tue, Mar 26, 2013 at 11:37:42AM -0500, Scott Wood wrote: On 03/25/2013 08:33:12 PM, Gleb Natapov wrote: On Tue, Mar 26, 2013 at 12:35:09AM +0100, Alexander Graf wrote: On 26.03.2013, at 00:16,

Re: [RFC PATCH v3 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-08 Thread Scott Wood
On 04/08/2013 01:30:42 AM, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:57:52PM -0500, Scott Wood wrote: Hook the MPIC code up to the KVM interfaces, add locking, etc. [snip] @@ -2164,6 +2164,15 @@ static int kvm_ioctl_create_device(struct kvm *kvm, bool test = cd-flags

Re: [RFC PATCH v3 1/6] kvm: add device control API

2013-04-08 Thread Scott Wood
On 04/08/2013 12:33:13 AM, Paul Mackerras wrote: On Tue, Apr 02, 2013 at 08:57:48PM -0500, Scott Wood wrote: [snip] +static int kvm_ioctl_create_device(struct kvm *kvm, + struct kvm_create_device *cd) +{ + bool test = cd-flags KVM_CREATE_DEVICE_TEST; + +

<    1   2