Re: [PATCH] ARM/ARM64: KVM: remove 'config KVM_ARM_MAX_VCPUS'

2015-09-17 Thread Ming Lei
On Wed, Sep 2, 2015 at 7:42 PM, Ming Lei <ming@canonical.com> wrote: > On Wed, Sep 2, 2015 at 6:25 PM, Christoffer Dall > <christoffer.d...@linaro.org> wrote: >> On Wed, Sep 02, 2015 at 02:31:21PM +0800, Ming Lei wrote: >>> This patch removes config option o

[PATCH] ARM/ARM64: KVM: remove 'config KVM_ARM_MAX_VCPUS'

2015-09-02 Thread Ming Lei
lumbia.edu Cc: kvm@vger.kernel.org Signed-off-by: Ming Lei <ming@canonical.com> --- arch/arm/include/asm/kvm_host.h | 8 ++-- arch/arm/kvm/Kconfig | 11 --- arch/arm64/include/asm/kvm_host.h | 8 ++-- arch/arm64/kvm/Kconfig| 11 ---

Re: [PATCH] ARM/ARM64: KVM: remove 'config KVM_ARM_MAX_VCPUS'

2015-09-02 Thread Ming Lei
On Wed, Sep 2, 2015 at 6:25 PM, Christoffer Dall <christoffer.d...@linaro.org> wrote: > On Wed, Sep 02, 2015 at 02:31:21PM +0800, Ming Lei wrote: >> This patch removes config option of KVM_ARM_MAX_VCPUS, >> and like other ARCHs, just choose the maximum allowed >> value

Re: [PATCH v1] ARM/ARM64: support KVM_IOEVENTFD

2014-11-22 Thread Ming Lei
Hi Eric, Thanks for your FYI. On Fri, Nov 21, 2014 at 8:58 PM, Eric Auger eric.au...@linaro.org wrote: Hi Ming, for your information there is a series written by Antonios (added in CC) https://lists.cs.columbia.edu/pipermail/kvmarm/2014-March/008416.html exactly on the same topic. The

[PATCH] ARM/ARM64: support KVM_IOEVENTFD

2014-11-18 Thread Ming Lei
in QEMU. Signed-off-by: Ming Lei ming@canonical.com --- arch/arm/kvm/Kconfig |1 + arch/arm/kvm/Makefile |2 +- arch/arm/kvm/arm.c |1 + arch/arm/kvm/mmio.c| 19 +++ arch/arm64/kvm/Kconfig |1 + 5 files changed, 23 insertions(+), 1 deletion

Re: [PATCH] ARM/ARM64: support KVM_IOEVENTFD

2014-11-18 Thread Ming Lei
On Tue, Nov 18, 2014 at 11:24 PM, Ming Lei ming@canonical.com wrote: From Documentation/virtual/kvm/api.txt, all ARCHs should support ioeventfd. Also ARM VM has supported PCI bus already, and ARM64 will do too, ioeventfd is required for some popular devices, like virtio-blk and virtio

[PATCH v1] ARM/ARM64: support KVM_IOEVENTFD

2014-11-18 Thread Ming Lei
in QEMU. This patch has been tested on both ARM and ARM64. Signed-off-by: Ming Lei ming@canonical.com --- v1: - make eventfd.o built in ARM64 arch/arm/kvm/Kconfig|1 + arch/arm/kvm/Makefile |2 +- arch/arm/kvm/arm.c |1 + arch/arm/kvm/mmio.c | 19

Re: blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)

2014-09-17 Thread Ming Lei
On Wed, Sep 17, 2014 at 3:59 PM, Christian Borntraeger borntrae...@de.ibm.com wrote: On 09/12/2014 10:09 PM, Christian Borntraeger wrote: On 09/12/2014 01:54 PM, Ming Lei wrote: On Thu, Sep 11, 2014 at 6:26 PM, Christian Borntraeger borntrae...@de.ibm.com wrote: Folks, we have seen

Re: blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)

2014-09-17 Thread Ming Lei
ffd0824b7b686074c2d5d70bc4e6bba3ba56a30c Mon Sep 17 00:00:00 2001 From: Ming Lei ming@canonical.com Date: Wed, 17 Sep 2014 21:00:34 +0800 Subject: [PATCH] blk-mq: initialize request before the 1st allocation Otherwise the request can be accessed from timeout handler just after its 1st allocation from tag pool

Re: blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)

2014-09-17 Thread Ming Lei
and the calling method to do the wrong thing. Yes, clearing rq-cmd_flags should be enough. And looks better to move rq initialization to __blk_mq_free_request() too, otherwise timeout still may see old cmd_flags and rq-q before rq's new initialization. Thanks, -- Ming Lei -- To unsubscribe from this list

Re: blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)

2014-09-17 Thread Ming Lei
(). David Thanks, -- Ming Lei -- 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: blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)

2014-09-12 Thread Ming Lei
On Thu, Sep 11, 2014 at 6:26 PM, Christian Borntraeger borntrae...@de.ibm.com wrote: Folks, we have seen the following bug with 3.16 as a KVM guest. It suspect the blk-mq rework that happened between 3.15 and 3.16, but it can be something completely different. Care to share how you

[PATCH] arm, kvm: fix double lock on cpu_add_remove_lock

2014-04-06 Thread Ming Lei
srivatsa.b...@linux.vnet.ibm.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Ming Lei tom.leim...@gmail.com --- virt/kvm/arm/arch_timer.c |2 +- virt/kvm/arm/vgic.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/virt/kvm/arm/arch_timer.c b/virt

Re: [GIT PULL] KVM/ARM for 3.15

2014-03-05 Thread Ming Lei
On Wed, Mar 5, 2014 at 5:16 PM, Anup Patel a...@brainfault.org wrote: On Wed, Mar 5, 2014 at 10:55 AM, Ming Lei ming@canonical.com wrote: On Wed, Mar 5, 2014 at 1:23 PM, Ming Lei ming@canonical.com wrote: On Tue, Mar 4, 2014 at 10:27 AM, Marc Zyngier marc.zyng...@arm.com Marc Zyngier

Re: [GIT PULL] KVM/ARM for 3.15

2014-03-04 Thread Ming Lei
. Thanks, -- Ming Lei -- 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: [GIT PULL] KVM/ARM for 3.15

2014-03-04 Thread Ming Lei
On Wed, Mar 5, 2014 at 1:23 PM, Ming Lei ming@canonical.com wrote: On Tue, Mar 4, 2014 at 10:27 AM, Marc Zyngier marc.zyng...@arm.com Marc Zyngier (12): arm64: KVM: force cache clean on page fault when caches are off arm64: KVM: allows discrimination of AArch32 sysreg access arm64