Thread (8 messages) flat view 8 messages, 3 authors, 2015-09-15
STALE4029d

[PATCH RFC 4/4] arm/arm64: kvm: Disable comparision of cpu and vcpu target

From: Tushar Jagad <hidden>
Date: 2015-09-09 08:38:34
Also in: kvmarm, qemu-devel
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

This patch disables comparison of physical cpu and vcpu for supporting
cross cpu guests.

Signed-off-by: Tushar Jagad <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help