 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xen: update_runstate_area for 32 bit PV on HVM guests
 Hi all,
the current implementation of update_runstate_area is unable to handle
32 bit PV on HVM guests because the check is_pv_32on64_domain doesn't
cover that case. This patch fixes it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
diff -r 26c2922da53c xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Thu May 27 09:39:47 2010 +0100
+++ b/xen/arch/x86/domain.c     Fri May 28 15:42:28 2010 +0100
@@ -1315,7 +1315,9 @@
         return;
 
 #ifdef CONFIG_COMPAT
-    if ( is_pv_32on64_domain(v->domain) )
+    if ( is_pv_32on64_domain(v->domain) ||
+         (is_hvm_pv_evtchn_domain(v->domain) &&
+          has_32bit_shinfo(v->domain)) )
     {
         struct compat_vcpu_runstate_info info;
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |