[PATCH 1/4] domain: introduce os.bootStrict

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

 



This field will allow the user to disable strict booting under qemu.

Signed-off-by: Laszlo Ersek <lersek@xxxxxxxxxx>
---
 src/conf/domain_conf.h   | 11 +++++++++++
 src/conf/domain_conf.c   |  5 +++++
 src/libvirt_private.syms |  2 ++
 3 files changed, 18 insertions(+)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index d8f2e49..3b1bf7d 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -1633,6 +1633,14 @@ enum virDomainBootMenu {
     VIR_DOMAIN_BOOT_MENU_LAST
 };
 
+enum virDomainBootStrict {
+    VIR_DOMAIN_BOOT_STRICT_DEFAULT = 0,
+    VIR_DOMAIN_BOOT_STRICT_ENABLED,
+    VIR_DOMAIN_BOOT_STRICT_DISABLED,
+
+    VIR_DOMAIN_BOOT_STRICT_LAST
+};
+
 enum virDomainFeature {
     VIR_DOMAIN_FEATURE_ACPI,
     VIR_DOMAIN_FEATURE_APIC,
@@ -1728,6 +1736,8 @@ struct _virDomainOSDef {
     int bootDevs[VIR_DOMAIN_BOOT_LAST];
     /* enum virDomainBootMenu */
     int bootmenu;
+    /* enum virDomainBootStrict */
+    int bootStrict;
     char *init;
     char **initargv;
     char *kernel;
@@ -2643,6 +2653,7 @@ VIR_ENUM_DECL(virDomainTaint)
 VIR_ENUM_DECL(virDomainVirt)
 VIR_ENUM_DECL(virDomainBoot)
 VIR_ENUM_DECL(virDomainBootMenu)
+VIR_ENUM_DECL(virDomainBootStrict)
 VIR_ENUM_DECL(virDomainFeature)
 VIR_ENUM_DECL(virDomainFeatureState)
 VIR_ENUM_DECL(virDomainLifecycle)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 28e24f9..f0f165f 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -135,6 +135,11 @@ VIR_ENUM_IMPL(virDomainBootMenu, VIR_DOMAIN_BOOT_MENU_LAST,
               "yes",
               "no")
 
+VIR_ENUM_IMPL(virDomainBootStrict, VIR_DOMAIN_BOOT_STRICT_LAST,
+              "default",
+              "yes",
+              "no")
+
 VIR_ENUM_IMPL(virDomainFeature, VIR_DOMAIN_FEATURE_LAST,
               "acpi",
               "apic",
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index d1a58f9..4949f08 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -112,6 +112,8 @@ virDomainBlockedReasonTypeFromString;
 virDomainBlockedReasonTypeToString;
 virDomainBootMenuTypeFromString;
 virDomainBootMenuTypeToString;
+virDomainBootStrictTypeFromString;
+virDomainBootStrictTypeToString;
 virDomainChrConsoleTargetTypeFromString;
 virDomainChrConsoleTargetTypeToString;
 virDomainChrDefForeach;
-- 
1.8.3.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]