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] Check feature flag supervisor_mode_kernel in dom0 builde

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Check feature flag supervisor_mode_kernel in dom0 builder.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Feb 2006 23:10:11 +0000
Delivery-date: Mon, 27 Feb 2006 23:11:14 +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 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 <=