All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nestedsvm: fix host crash with pv-on-hvm Linux KVM guest
@ 2011-05-09 11:47 Christoph Egger
  0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2011-05-09 11:47 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]


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).

Signed-off-by: Uwe Dannowski <Uwe.Dannowski@amd.com>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---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

[-- Attachment #2: xen_nh_vector.diff --]
[-- Type: text/plain, Size: 455 bytes --]

diff -r 6367a61197b2 xen/arch/x86/hvm/svm/nestedsvm.c
--- a/xen/arch/x86/hvm/svm/nestedsvm.c	Fri May 06 11:31:32 2011 +0200
+++ b/xen/arch/x86/hvm/svm/nestedsvm.c	Mon May 09 12:35:27 2011 +0200
@@ -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;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-09 11:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 11:47 [PATCH] nestedsvm: fix host crash with pv-on-hvm Linux KVM guest Christoph Egger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.