WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] missed (ortypo) in save/restore

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] missed (ortypo) in save/restore
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Tue, 5 Jun 2007 15:23:56 +0800
Delivery-date: Tue, 05 Jun 2007 00:22:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D309264CD3651841AA75658A61044758AC48B2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcenPBJOfIiAS62STBSYP2CUSDqZLgABf70w
Thread-topic: missed (ortypo) in save/restore
 
When save/restore happens at VM_Exit with IDT_vectoring valid, pending_valid should be set so that resume path can take correct action.
 
 
     Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@xxxxxxxxx>
 
 
 diff -r bd3d6b4c52ec xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c Fri Jun 01 14:50:52 2007 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c Mon Jun 04 23:15:09 2007 +0800
@@ -532,6 +532,7 @@ int vmx_vmcs_save(struct vcpu *v, struct
      * never inject when IDT_VECTORING_INFO_FIELD is valid.*/
     if ( (ev = __vmread(IDT_VECTORING_INFO_FIELD)) & INTR_INFO_VALID_MASK )
     {
+        c->pending_valid = 1;
         c->pending_event = ev;
         c->error_code = __vmread(IDT_VECTORING_ERROR_CODE);
     }
 
 

Attachment: pending_valid.patch
Description: pending_valid.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>