Re: [PATCH V7 4/5] virtio-scsi: introduce multiqueue support

2013-03-25 Thread Bart Van Assche
On 03/23/13 12:28, Wanlong Gao wrote: +static struct virtio_scsi_vq *virtscsi_pick_vq(struct virtio_scsi *vscsi, + struct virtio_scsi_target_state *tgt) +{ + struct virtio_scsi_vq *vq; + unsigned long flags; + u32 queue_num; + +

Re: [PATCH V2 1/3] tcm_vhost: Wait for pending requests in vhost_scsi_flush()

2013-03-25 Thread Asias He
On Sun, Mar 24, 2013 at 05:11:37PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 02:55:27PM +0800, Asias He wrote: This patch makes vhost_scsi_flush() wait for all the pending requests issued before the flush operation to be finished. Signed-off-by: Asias He as...@redhat.com

Re: [PATCH V4 2/2] tcm_vhost: Add hotplug/hotunplug support

2013-03-25 Thread Asias He
On Sun, Mar 24, 2013 at 05:20:09PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 01:39:05PM +0800, Asias He wrote: In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for virtio-scsi), hotplug support is added to virtio-scsi. This patch adds hotplug and hotunplug

Re: [kvmarm] [PATCH 09/29] arm64: KVM: system register handling

2013-03-25 Thread Marc Zyngier
Hi Alex, On Thu, 7 Mar 2013 11:30:20 +0100, Alexander Graf ag...@suse.de wrote: On 05.03.2013, at 04:47, Marc Zyngier wrote: Provide 64bit system register handling, modeled after the cp15 handling for ARM. Signed-off-by: Marc Zyngier marc.zyng...@arm.com --- [...] +static int

Re: [PATCH V4 0/2] tcm_vhost hotplug

2013-03-25 Thread Asias He
On Sun, Mar 24, 2013 at 05:20:54PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 01:39:03PM +0800, Asias He wrote: Asias He (2): tcm_vhost: Introduce tcm_vhost_check_feature() tcm_vhost: Add hotplug/hotunplug support So this work should stay out of tree until we have 2

Re: [PATCH V4 2/2] tcm_vhost: Add hotplug/hotunplug support

2013-03-25 Thread Michael S. Tsirkin
On Mon, Mar 25, 2013 at 03:48:06PM +0800, Asias He wrote: On Sun, Mar 24, 2013 at 05:20:09PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 01:39:05PM +0800, Asias He wrote: In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for virtio-scsi), hotplug support is added to

Re: [PATCH V2 1/3] tcm_vhost: Wait for pending requests in vhost_scsi_flush()

2013-03-25 Thread Michael S. Tsirkin
On Mon, Mar 25, 2013 at 03:39:42PM +0800, Asias He wrote: On Sun, Mar 24, 2013 at 05:11:37PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 02:55:27PM +0800, Asias He wrote: This patch makes vhost_scsi_flush() wait for all the pending requests issued before the flush operation

Re: [PATCH 1/2] tcm_vhost: Use vq-private_data to indicate if the endpoint is setup

2013-03-25 Thread Michael S. Tsirkin
On Fri, Mar 22, 2013 at 10:52:27AM +0800, Asias He wrote: Currently, vs-vs_endpoint is used indicate if the endpoint is setup or not. It is set or cleared in vhost_scsi_set_endpoint() or vhost_scsi_clear_endpoint() under the vs-dev.mutex lock. However, when we check it in

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

2013-03-25 Thread Michael S. Tsirkin
On Fri, Mar 22, 2013 at 10:52:28AM +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! vq-last_used_idx is initialized only when /dev/vhost-scsi is

[Bug 53191] hardware error 0x80000021 on a KVM virtual machine with kernel 3.7

2013-03-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=53191 George kern...@fenachrone.com changed: What|Removed |Added CC||kern...@fenachrone.com

KVM call agenda for 2013-03-26

2013-03-25 Thread Juan Quintela
Hi Please send in any agenda topics you are interested in. Later, Juan. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH V7 4/5] virtio-scsi: introduce multiqueue support

2013-03-25 Thread Paolo Bonzini
Il 25/03/2013 08:25, Bart Van Assche ha scritto: +queue_num = smp_processor_id(); +while (unlikely(queue_num = vscsi-num_queues)) +queue_num -= vscsi-num_queues; + +tgt-req_vq = vq = vscsi-req_vqs[queue_num]; +} + +

[PATCH 07/11] KVM: s390: fix stsi exception handling

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com In case of an exception the guest psw condition code should be left alone. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Acked-By: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com ---

[PATCH 09/11] KVM: s390: Change the virtual memory mapping location for virtio devices

2013-03-25 Thread Cornelia Huck
From: Nick Wang jfw...@us.ibm.com The current location for mapping virtio devices does not take into consideration the standby memory. This causes the failure of mapping standby memory since the location for the mapping is already taken by the virtio devices. To fix the problem, we move the

[PATCH 08/11] KVM: s390: fix compile with !CONFIG_COMPAT

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com arch/s390/kvm/priv.c should include both linux/compat.h and asm/compat.h. Fixes this one: In file included from arch/s390/kvm/priv.c:23:0: arch/s390/include/asm/compat.h: In function ‘arch_compat_alloc_user_space’:

[PATCH 10/11] KVM: s390: Remove the sanity checks for kvm memory slot

2013-03-25 Thread Cornelia Huck
From: Nick Wang jfw...@us.ibm.com To model the standby memory with memory_region_add_subregion and friends, the guest would have one or more regions of ram. Remove the check allowing only one memory slot and the check requiring the real address of memory slot starts at zero. Signed-off-by: Nick

[PATCH 11/11] KVM: s390: Enable KVM_CAP_NR_MEMSLOTS on s390

2013-03-25 Thread Cornelia Huck
From: Nick Wang jfw...@us.ibm.com Return KVM_USER_MEM_SLOTS in kvm_dev_ioctl_check_extension(). Signed-off-by: Nick Wang jfw...@us.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/kvm/kvm-s390.c | 3 +++ 1 file

[PATCH 01/11] KVM: s390: Dont do a gmap update on minor memslot changes

2013-03-25 Thread Cornelia Huck
From: Christian Borntraeger borntrae...@de.ibm.com Some memslot updates dont affect the gmap implementation, e.g. setting/unsetting dirty tracking. Since a gmap update will cause tlb flushes and segment table invalidations we want to avoid that. Signed-off-by: Christian Borntraeger

[PATCH 00/11] KVM: s390: More patches for kvm-next.

2013-03-25 Thread Cornelia Huck
Hi, here are some kvm/s390 patches that have accumulated in our queue. Changes include fixes in the lpsw(e) and stsi handlers, proper handling of interrupt injection failures and a gmap optimization. Also included are patches allowing support for standby memory on kvm guests. Standby memory is

[PATCH 04/11] KVM: s390: fix return code handling in lpsw/lpswe handlers

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com kvm_s390_inject_program_int() may return with a non-zero return value, in case of an error (out of memory). Report that to the calling functions instead of ignoring the error case. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com Acked-by:

[PATCH 06/11] KVM: s390: fix and enforce return code handling for irq injections

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com kvm_s390_inject_program_int() and friends may fail if no memory is available. This must be reported to the calling functions, so that this gets passed down to user space which should fix the situation. Alternatively we end up with guest state

[PATCH 02/11] KVM: s390: fix 24 bit psw handling in lpsw/lpswe handler

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com When checking for validity the lpsw/lpswe handler check that only the lower 20 bits instead of 24 bits have a non-zero value. There handling valid psws as invalid ones. Fix the 24 bit psw mask. Signed-off-by: Heiko Carstens heiko.carst...@de.ibm.com

[PATCH 05/11] KVM: s390: make if statements in lpsw/lpswe handlers readable

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com Being unable to parse the 5- and 8-line if statements I had to split them to be able to make any sense of them and verify that they match the architecture. So change the code since I guess that other people will also have a hard time parsing such

[PATCH 03/11] KVM: s390: fix psw conversion in lpsw handler

2013-03-25 Thread Cornelia Huck
From: Heiko Carstens heiko.carst...@de.ibm.com When converting a 64 bit psw to a 128 bit psw the addressing mode bit of the addr part of the 64 bit psw must be moved to the basic addressing mode bit of the mask part of the 128 bit psw. In addition the addressing mode bit must be cleared when

Re: [PATCH] vfio: make local function vfio_pci_intx_unmask_handler() static

2013-03-25 Thread Alex Williamson
On Thu, 2013-03-21 at 15:45 +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn vfio_pci_intx_unmask_handler() was not declared. It should be static. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/vfio/pci/vfio_pci_intrs.c | 3 ++- 1 file

Re: [PATCH kvm-unit-tests 2/5] x86/README: Drop it

2013-03-25 Thread Cole Robinson
On 03/20/2013 02:54 PM, Marcelo Tosatti wrote: On Fri, Mar 15, 2013 at 08:09:06PM -0400, Cole Robinson wrote: Was out of date, and not particularly useful to begin with. --- x86/README | 16 1 file changed, 16 deletions(-) delete mode 100644 x86/README diff --git

Re: [PATCH kvm-unit-tests 5/5] x86-run: Pull extra arguments from unittests.cfg

2013-03-25 Thread Cole Robinson
On 03/20/2013 03:06 PM, Marcelo Tosatti wrote: On Sun, Mar 17, 2013 at 07:58:56PM -0400, Cole Robinson wrote: On 03/17/2013 11:25 AM, Gleb Natapov wrote: On Fri, Mar 15, 2013 at 08:09:09PM -0400, Cole Robinson wrote: Some tests want extra arguments as enumerated in unittests.cfg, use them.

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-25 Thread Kevin Hilman
Gleb Natapov g...@redhat.com writes: On Sun, Mar 24, 2013 at 02:44:26PM +0100, Frederic Weisbecker wrote: 2013/3/21 Gleb Natapov g...@redhat.com: Isn't is simpler for kernel/context_tracking.c to define empty __guest_enter()/__guest_exit() if !CONFIG_KVM. That doesn't look right.

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

2013-03-25 Thread Scott Wood
On 03/22/2013 09:25:56 AM, Alexander Graf wrote: Hi Marcelo / Gleb, This is my current patch queue for ppc. Please pull. Changes include: - race-free in-kernel watchdog handling api - e500 mmu fixes Alex The following changes since commit 2ae33b389601b86a3d0cfe2d09f5e3189d5322fd:

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

2013-03-25 Thread Alexander Graf
On 25.03.2013, at 23:21, Scott Wood wrote: On 03/22/2013 09:25:56 AM, Alexander Graf wrote: Hi Marcelo / Gleb, This is my current patch queue for ppc. Please pull. Changes include: - race-free in-kernel watchdog handling api - e500 mmu fixes Alex The following changes since commit

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

2013-03-25 Thread Scott Wood
On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for regressions from 3.8 (that I pointed out before the bugs were merged!), that should go into master. Also, what about:

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

2013-03-25 Thread Scott Wood
On 03/25/2013 05:59:39 PM, Alexander Graf wrote: On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for regressions from 3.8 (that I pointed out before the

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

2013-03-25 Thread Alexander Graf
On 26.03.2013, at 00:16, Scott Wood wrote: On 03/25/2013 05:59:39 PM, Alexander Graf wrote: On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for

Re: [Qemu-devel] KVM call agenda for 2013-03-26

2013-03-25 Thread Rob Landley
On 03/25/2013 08:17:44 AM, Juan Quintela wrote: Hi Please send in any agenda topics you are interested in. Later, Juan. If Google summer of code is still open: http://qemu-project.org/Google_Summer_of_Code_2013 Last I checked, the older targets haven't had a lot of love. QEMU still

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

2013-03-25 Thread Gleb Natapov
On Tue, Mar 26, 2013 at 12:35:09AM +0100, Alexander Graf wrote: On 26.03.2013, at 00:16, Scott Wood wrote: On 03/25/2013 05:59:39 PM, Alexander Graf wrote: On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood

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

2013-03-25 Thread Paul Mackerras
On Tue, Mar 26, 2013 at 03:33:12AM +0200, Gleb Natapov wrote: On Tue, Mar 26, 2013 at 12:35:09AM +0100, Alexander Graf wrote: I agree. So if it doesn't hurt to have the same commits in kvm/next and kvm/master, I'd be more than happy to send another pull request with the important fixes

Re: [PATCH V2 1/3] tcm_vhost: Wait for pending requests in vhost_scsi_flush()

2013-03-25 Thread Asias He
On Mon, Mar 25, 2013 at 01:13:39PM +0200, Michael S. Tsirkin wrote: On Mon, Mar 25, 2013 at 03:39:42PM +0800, Asias He wrote: On Sun, Mar 24, 2013 at 05:11:37PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 02:55:27PM +0800, Asias He wrote: This patch makes vhost_scsi_flush()

Re: [PATCH V4 2/2] tcm_vhost: Add hotplug/hotunplug support

2013-03-25 Thread Asias He
On Mon, Mar 25, 2013 at 01:10:33PM +0200, Michael S. Tsirkin wrote: On Mon, Mar 25, 2013 at 03:48:06PM +0800, Asias He wrote: On Sun, Mar 24, 2013 at 05:20:09PM +0200, Michael S. Tsirkin wrote: On Fri, Mar 22, 2013 at 01:39:05PM +0800, Asias He wrote: In commit 365a7150094 ([SCSI]

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

2013-03-25 Thread Scott Wood
On 03/22/2013 09:25:56 AM, Alexander Graf wrote: Hi Marcelo / Gleb, This is my current patch queue for ppc. Please pull. Changes include: - race-free in-kernel watchdog handling api - e500 mmu fixes Alex The following changes since commit 2ae33b389601b86a3d0cfe2d09f5e3189d5322fd:

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

2013-03-25 Thread Alexander Graf
On 25.03.2013, at 23:21, Scott Wood wrote: On 03/22/2013 09:25:56 AM, Alexander Graf wrote: Hi Marcelo / Gleb, This is my current patch queue for ppc. Please pull. Changes include: - race-free in-kernel watchdog handling api - e500 mmu fixes Alex The following changes since commit

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

2013-03-25 Thread Scott Wood
On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for regressions from 3.8 (that I pointed out before the bugs were merged!), that should go into master. Also, what about:

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

2013-03-25 Thread Alexander Graf
On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for regressions from 3.8 (that I pointed out before the bugs were merged!), that should go into master.

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

2013-03-25 Thread Scott Wood
On 03/25/2013 05:59:39 PM, Alexander Graf wrote: On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for regressions from 3.8 (that I pointed out before the

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

2013-03-25 Thread Alexander Graf
On 26.03.2013, at 00:16, Scott Wood wrote: On 03/25/2013 05:59:39 PM, Alexander Graf wrote: On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood wrote: -next? These are bugfixes, at least partially for

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

2013-03-25 Thread Gleb Natapov
On Tue, Mar 26, 2013 at 12:35:09AM +0100, Alexander Graf wrote: On 26.03.2013, at 00:16, Scott Wood wrote: On 03/25/2013 05:59:39 PM, Alexander Graf wrote: On 25.03.2013, at 23:54, Scott Wood wrote: On 03/25/2013 05:32:11 PM, Alexander Graf wrote: On 25.03.2013, at 23:21, Scott Wood

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

2013-03-25 Thread Paul Mackerras
On Tue, Mar 26, 2013 at 03:33:12AM +0200, Gleb Natapov wrote: On Tue, Mar 26, 2013 at 12:35:09AM +0100, Alexander Graf wrote: I agree. So if it doesn't hurt to have the same commits in kvm/next and kvm/master, I'd be more than happy to send another pull request with the important fixes