[PATCH 33/33] KVM: PPC: Enable critical section emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now that we have all the bits in place to properly emulate all code that
we should ever encounter in (Linux based guests') critical sections, let's
arm the code to put us into emulation mode when we see it.

Signed-off-by: Alexander Graf <agraf@xxxxxxx>
---
 arch/powerpc/kvm/powerpc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 6757c47..380ed70 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -85,10 +85,6 @@ bool kvmppc_critical_section(struct kvm_vcpu *vcpu)
 
 static bool kvmppc_needs_emulation(struct kvm_vcpu *vcpu)
 {
-	/* XXX disable emulation for now, until we implemented everything */
-	if (true)
-		return false;
-
 	/* We're in a critical section, but an interrupt is pending */
 	if (kvmppc_critical_section(vcpu) &&
 	    kvmppc_crit_inhibited_irq_pending(vcpu))
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux