ia64/xen-unstable

changeset 8855:75af08f657be

Set feature flags for shadow translate mode guests.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Feb 15 09:44:11 2006 +0000 (2006-02-15)
parents de0408f095f8
children 138e145f83f6
files xen/common/kernel.c
line diff
     1.1 --- a/xen/common/kernel.c	Wed Feb 15 09:43:14 2006 +0000
     1.2 +++ b/xen/common/kernel.c	Wed Feb 15 09:44:11 2006 +0000
     1.3 @@ -11,6 +11,7 @@
     1.4  #include <xen/compile.h>
     1.5  #include <xen/sched.h>
     1.6  #include <asm/current.h>
     1.7 +#include <asm/shadow.h>
     1.8  #include <public/nmi.h>
     1.9  #include <public/version.h>
    1.10  
    1.11 @@ -189,6 +190,10 @@ long do_xen_version(int cmd, void *arg)
    1.12          {
    1.13          case 0:
    1.14              fi.submap = 0;
    1.15 +            if (shadow_mode_translate(current->domain))
    1.16 +                fi.submap |= 1 << XENFEAT_writable_page_tables |
    1.17 +                    1 << XENFEAT_writable_descriptor_tables |
    1.18 +                    1 << XENFEAT_auto_translated_physmap;
    1.19              break;
    1.20          default:
    1.21              return -EINVAL;