ia64/xen-unstable

changeset 9052:0416b6ba8c37

Check feature flag supervisor_mode_kernel in dom0 builder.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Feb 27 17:55:22 2006 +0100 (2006-02-27)
parents 5adaa6908727
children 3b74edc512b4
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Mon Feb 27 17:18:58 2006 +0100
     1.2 +++ b/xen/arch/x86/domain_build.c	Mon Feb 27 17:55:22 2006 +0100
     1.3 @@ -802,6 +802,14 @@ int construct_dom0(struct domain *d,
     1.4          v->arch.guest_context.user_regs.fs &= ~3;
     1.5          v->arch.guest_context.user_regs.gs &= ~3;
     1.6          printk("Dom0 runs in ring 0 (supervisor mode)\n");
     1.7 +        if ( !test_bit(XENFEAT_supervisor_mode_kernel,
     1.8 +                       dom0_features_supported) )
     1.9 +            panic("Dom0 does not support supervisor-mode execution\n");
    1.10 +    }
    1.11 +    else
    1.12 +    {
    1.13 +        if ( test_bit(XENFEAT_supervisor_mode_kernel, dom0_features_required) )
    1.14 +            panic("Dom0 requires supervisor-mode execution\n");
    1.15      }
    1.16  
    1.17      rc = 0;