[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Set feature flags for shadow translate mode guests.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 75af08f657be524ee7aac2b2e87c2040f758ada8
# Parent  de0408f095f88a0121956a1c290da17d1d529564
Set feature flags for shadow translate mode guests.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r de0408f095f8 -r 75af08f657be xen/common/kernel.c
--- a/xen/common/kernel.c       Wed Feb 15 09:43:14 2006
+++ b/xen/common/kernel.c       Wed Feb 15 09:44:11 2006
@@ -11,6 +11,7 @@
 #include <xen/compile.h>
 #include <xen/sched.h>
 #include <asm/current.h>
+#include <asm/shadow.h>
 #include <public/nmi.h>
 #include <public/version.h>
 
@@ -189,6 +190,10 @@
         {
         case 0:
             fi.submap = 0;
+            if (shadow_mode_translate(current->domain))
+                fi.submap |= 1 << XENFEAT_writable_page_tables |
+                    1 << XENFEAT_writable_descriptor_tables |
+                    1 << XENFEAT_auto_translated_physmap;
             break;
         default:
             return -EINVAL;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.