[libvirt] [PATCH 1/2] Add a new <nesting/> option in the domain config features list.

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

 



---
 docs/formatdomain.html.in |    4 ++++
 docs/schemas/domain.rng   |    5 +++++
 src/conf/domain_conf.c    |    3 ++-
 src/conf/domain_conf.h    |    1 +
 4 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 72bd7b9..c4eed79 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -263,6 +263,7 @@
           &lt;pae/&gt;
           &lt;acpi/&gt;
           &lt;apic/&gt;
+          &lt;nesting/&gt;
         &lt;/features&gt;
         ...</pre>
 
@@ -282,6 +283,9 @@
       <dd>ACPI is useful for power management, for example, with
         KVM guests it is required for graceful shutdown to work.
       </dd>
+      <dt><code>nesting</code></dt>
+      <dd>Some hypervisors support nested hardware-supported
+        virtualization, allowing you to run VMs inside of VMs.</dd>
     </dl>
 
     <h3><a name="elementsTime">Time keeping</a></h3>
diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index b75f17e..78a4504 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -1213,6 +1213,11 @@
               <empty/>
             </element>
           </optional>
+          <optional>
+            <element name="nesting">
+              <empty/>
+            </element>
+          </optional>
         </interleave>
       </element>
     </optional>
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 918a5d7..653cba0 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -70,7 +70,8 @@ VIR_ENUM_IMPL(virDomainBoot, VIR_DOMAIN_BOOT_LAST,
 VIR_ENUM_IMPL(virDomainFeature, VIR_DOMAIN_FEATURE_LAST,
               "acpi",
               "apic",
-              "pae")
+              "pae",
+              "nesting")
 
 VIR_ENUM_IMPL(virDomainLifecycle, VIR_DOMAIN_LIFECYCLE_LAST,
               "destroy",
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index fadf43f..7306b0b 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -517,6 +517,7 @@ enum virDomainFeature {
     VIR_DOMAIN_FEATURE_ACPI,
     VIR_DOMAIN_FEATURE_APIC,
     VIR_DOMAIN_FEATURE_PAE,
+    VIR_DOMAIN_FEATURE_NESTING,
 
     VIR_DOMAIN_FEATURE_LAST
 };
-- 
1.6.2.1

--
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]