From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZaub-0003hE-O0 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 04:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZauX-0000Ne-5B for qemu-devel@nongnu.org; Wed, 09 Sep 2015 04:39:25 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZauX-0000NX-0j for qemu-devel@nongnu.org; Wed, 09 Sep 2015 04:39:21 -0400 Received: by pacex6 with SMTP id ex6so3926375pac.0 for ; Wed, 09 Sep 2015 01:39:20 -0700 (PDT) From: Tushar Jagad Date: Wed, 9 Sep 2015 14:08:34 +0530 Message-Id: <1441787914-3191-5-git-send-email-tushar.jagad@linaro.org> In-Reply-To: <1441787914-3191-1-git-send-email-tushar.jagad@linaro.org> References: <1441787914-3191-1-git-send-email-tushar.jagad@linaro.org> Subject: [Qemu-devel] [PATCH RFC 4/4] arm/arm64: kvm: Disable comparision of cpu and vcpu target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: peter.maydell@linaro.org, marc.zyngier@arm.com, patches@apm.com, qemu-devel@nongnu.org, tushar.jagad@linaro.org, christoffer.dall@linaro.org This patch disables comparison of physical cpu and vcpu for supporting cross cpu guests. Signed-off-by: Tushar Jagad --- arch/arm/kvm/arm.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 8907d37..b3214b2 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -698,11 +698,6 @@ static int kvm_vcpu_set_target(struct kvm_vcpu *vcpu, unsigned int i; u64 aa64dfr; - int phys_target = kvm_target_cpu(); - - if (init->target != phys_target) - return -EINVAL; - /* * Secondary and subsequent calls to KVM_ARM_VCPU_INIT must * use the same target. -- 1.7.9.5