Skip to contentSkip to conversation

nestedsvm: fix host crash with pv-on-hvm Linux KVM guest

PATCH New Christoph Egger 1 participant 1 message May 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nestedsvm: fix host crash with pv-on-hvm Linux KVM guest

Nested SVM was unaware of the HVM direct vector eventchn mechanism. Attached patch fixes a host crash when starting a KVM L2 guest on a pv-on-hvm L1 Linux guest (e.g., HVM Debian Squeeze domU).

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
xen/arch/x86/hvm/svm/nestedsvm.c +1 -0
diff -r 6367a61197b2 xen/arch/x86/hvm/svm/nestedsvm.c
@@ -1417,6 +1417,7 @@ nestedsvm_vcpu_interrupt(struct vcpu *v,
     switch (intack.source) {
     case hvm_intsrc_pic:
     case hvm_intsrc_lapic:
+    case hvm_intsrc_vector:
         exitcode = VMEXIT_INTR;
         exitinfo2 = intack.vector;
         break;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel