Re: PATCH 2/2: Reporting of ACPI/APIC features for HVM Xen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For HVM Xen, state that ACPI and APIC can be turned on and off.

David


Index: libvirt/src/xen_internal.c
===================================================================
--- libvirt.orig/src/xen_internal.c	2007-07-24 09:42:16.000000000 -0700
+++ libvirt/src/xen_internal.c	2007-07-24 09:43:25.000000000 -0700
@@ -2247,6 +2247,13 @@
       <ia64_be/>\n", -1);
             if (r == -1) goto vir_buffer_failed;
         }
+        if (guest_archs[i].hvm) {
+            r = virBufferAdd (xml,
+                              "\
+      <acpi default=\"on\" toggle=\"yes\"/>\n\
+      <apic default=\"on\" toggle=\"yes\"/>\n", -1);
+            if (r == -1) goto vir_buffer_failed;
+        }
         r = virBufferAdd (xml,
                           "\
     </features>\n\
Index: libvirt/tests/xencapsdata/xen-i686-pae-hvm.xml
===================================================================
--- libvirt.orig/tests/xencapsdata/xen-i686-pae-hvm.xml	2007-07-24 09:42:16.000000000 -0700
+++ libvirt/tests/xencapsdata/xen-i686-pae-hvm.xml	2007-07-24 09:43:25.000000000 -0700
@@ -32,6 +32,8 @@
     <features>
       <pae/>
       <nonpae/>
+      <acpi default="on" toggle="yes"/>
+      <apic default="on" toggle="yes"/>
     </features>
   </guest>
 </capabilities>
Index: libvirt/tests/xencapsdata/xen-x86_64-hvm.xml
===================================================================
--- libvirt.orig/tests/xencapsdata/xen-x86_64-hvm.xml	2007-07-24 09:42:16.000000000 -0700
+++ libvirt/tests/xencapsdata/xen-x86_64-hvm.xml	2007-07-24 09:43:25.000000000 -0700
@@ -31,6 +31,8 @@
     <features>
       <pae/>
       <nonpae/>
+      <acpi default="on" toggle="yes"/>
+      <apic default="on" toggle="yes"/>
     </features>
   </guest>
 
@@ -45,6 +47,8 @@
       <loader>/usr/lib/xen/boot/hvmloader</loader>
     </arch>
     <features>
+      <acpi default="on" toggle="yes"/>
+      <apic default="on" toggle="yes"/>
     </features>
   </guest>
 </capabilities>
Index: libvirt/tests/xencapsdata/xen-ia64-hvm.xml
===================================================================
--- libvirt.orig/tests/xencapsdata/xen-ia64-hvm.xml	2007-07-24 09:42:16.000000000 -0700
+++ libvirt/tests/xencapsdata/xen-ia64-hvm.xml	2007-07-24 09:43:25.000000000 -0700
@@ -28,6 +28,8 @@
       <loader>/usr/lib/xen/boot/hvmloader</loader>
     </arch>
     <features>
+      <acpi default="on" toggle="yes"/>
+      <apic default="on" toggle="yes"/>
     </features>
   </guest>
 </capabilities>
Index: libvirt/tests/xencapsdata/xen-ia64-be-hvm.xml
===================================================================
--- libvirt.orig/tests/xencapsdata/xen-ia64-be-hvm.xml	2007-07-24 09:43:21.000000000 -0700
+++ libvirt/tests/xencapsdata/xen-ia64-be-hvm.xml	2007-07-23 16:32:28.000000000 -0700
@@ -30,6 +30,8 @@
     </arch>
     <features>
       <ia64_be/>
+      <acpi default="on" toggle="yes"/>
+      <apic default="on" toggle="yes"/>
     </features>
   </guest>
 </capabilities>
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]