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] Fix xen0 kernel to run in unprivileged domains by disabl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix xen0 kernel to run in unprivileged domains by disabling ACPI.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 11 May 2005 22:39:52 +0000
Delivery-date: Thu, 12 May 2005 10:03:35 +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 Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1423.11.1, 2005/05/11 23:39:52+01:00, mwilli2@xxxxxxxxxxxxxxxxxxxx

        Fix xen0 kernel to run in unprivileged domains by disabling ACPI.
        
        Signed-off-by: mark.williamson@xxxxxxxxxxxx



 setup.c |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c      2005-05-12 
06:04:03 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c      2005-05-12 
06:04:03 -04:00
@@ -1566,12 +1566,19 @@
        if (efi_enabled)
                efi_map_memmap();
 
-       /*
-        * Parse the ACPI tables for possible boot-time SMP configuration.
-        */
-       acpi_boot_table_init();
-       acpi_boot_init();
+       if ( !(xen_start_info.flags & SIF_INITDOMAIN) )
+       {
+            printk(KERN_INFO "Not running in dom0: Disabling ACPI\n");
+            acpi_disabled = 1;
+             acpi_ht = 0;
+       }
 
+       /*
+        * Parse the ACPI tables for possible boot-time SMP configuration.
+        */          
+        acpi_boot_table_init();
+        acpi_boot_init();
+            
 #ifdef CONFIG_X86_LOCAL_APIC
        if (smp_found_config)
                get_smp_config();

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix xen0 kernel to run in unprivileged domains by disabling ACPI., BitKeeper Bot <=