From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] nestedsvm: fix host crash with pv-on-hvm Linux KVM guest Date: Mon, 9 May 2011 13:47:30 +0200 Message-ID: <4DC7D452.10809@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090205060502070801000102" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --------------090205060502070801000102 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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 Signed-off-by: Christoph Egger -- ---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 --------------090205060502070801000102 Content-Type: text/plain; name="xen_nh_vector.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_nh_vector.diff" Content-Description: xen_nh_vector.diff 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; --------------090205060502070801000102 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090205060502070801000102--