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

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Set feature flags for shadow translate mode guests.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Feb 2006 13:14:13 +0000
Delivery-date: Wed, 15 Feb 2006 13:27:50 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Set feature flags for shadow translate mode guests., Xen patchbot -unstable <=