]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add HAP to virDomainFeature enum
authorJim Fehlig <jfehlig@novell.com>
Wed, 5 Jan 2011 21:56:48 +0000 (14:56 -0700)
committerJim Fehlig <jfehlig@novell.com>
Thu, 13 Jan 2011 16:30:26 +0000 (09:30 -0700)
Extend the virDomainFeature enumeration to include HAP (hardware
assisted paging) feature.

Hardware features such as Extended Page Table and Nested Page
Table augment hypervisor software techniques such as shadow
page table.  Adding HAP to the virDomainFeature enumeration
allows users to select between hardware and software memory
management mechanisms for their guests.

src/conf/domain_conf.c
src/conf/domain_conf.h

index b4df38c0b000b7bf08a88da240aeb7928429b247..2c5468362ad8ac4a57190e1162eb049596224470 100644 (file)
@@ -75,7 +75,8 @@ VIR_ENUM_IMPL(virDomainBoot, VIR_DOMAIN_BOOT_LAST,
 VIR_ENUM_IMPL(virDomainFeature, VIR_DOMAIN_FEATURE_LAST,
               "acpi",
               "apic",
-              "pae")
+              "pae",
+              "hap")
 
 VIR_ENUM_IMPL(virDomainLifecycle, VIR_DOMAIN_LIFECYCLE_LAST,
               "destroy",
index a459a22fa631b6b3309f1d20acb4401e5d6ac9c5..6a8ec640396d795f1c79607653612fc353f86ff6 100644 (file)
@@ -730,6 +730,7 @@ enum virDomainFeature {
     VIR_DOMAIN_FEATURE_ACPI,
     VIR_DOMAIN_FEATURE_APIC,
     VIR_DOMAIN_FEATURE_PAE,
+    VIR_DOMAIN_FEATURE_HAP,
 
     VIR_DOMAIN_FEATURE_LAST
 };