|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Check feature flag supervisor_mode_kernel in dom0 builde
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 0416b6ba8c37d6dc3c854d0230f827f2c674fbe7
# Parent 5adaa690872746d66f8f4c0fdacc81a9117723cb
Check feature flag supervisor_mode_kernel in dom0 builder.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 5adaa6908727 -r 0416b6ba8c37 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c Mon Feb 27 16:18:58 2006
+++ b/xen/arch/x86/domain_build.c Mon Feb 27 16:55:22 2006
@@ -802,6 +802,14 @@
v->arch.guest_context.user_regs.fs &= ~3;
v->arch.guest_context.user_regs.gs &= ~3;
printk("Dom0 runs in ring 0 (supervisor mode)\n");
+ if ( !test_bit(XENFEAT_supervisor_mode_kernel,
+ dom0_features_supported) )
+ panic("Dom0 does not support supervisor-mode execution\n");
+ }
+ else
+ {
+ if ( test_bit(XENFEAT_supervisor_mode_kernel, dom0_features_required) )
+ panic("Dom0 requires supervisor-mode execution\n");
}
rc = 0;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Check feature flag supervisor_mode_kernel in dom0 builder.,
Xen patchbot -unstable <=
|
|
|
|
|