Blame SOURCES/virt-manager-cli-fix-cpu-secure-option-to-actually-work.patch

3d61c0
From c32c8f3cfd9d02abd2034ed0035165faf8386c9d Mon Sep 17 00:00:00 2001
3d61c0
Message-Id: <c32c8f3cfd9d02abd2034ed0035165faf8386c9d@dist-git>
3d61c0
From: Pavel Hrdina <phrdina@redhat.com>
3d61c0
Date: Wed, 22 May 2019 14:10:36 +0200
3d61c0
Subject: [PATCH] cli: fix cpu secure option to actually work
3d61c0
3d61c0
The 'secure' option is processed after the model is already set.
3d61c0
CPU security options are resolved while setting CPU model so we need
3d61c0
to know the 'secure' option value before we set the CPU model.
3d61c0
3d61c0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
3d61c0
(cherry picked from commit 06c2f873972fd4c60a57c8b8f07fe3cec4ddfcf4)
3d61c0
3d61c0
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1582667
3d61c0
3d61c0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
3d61c0
Reviewed-by: Cole Robinson <crobinso@redhat.com>
3d61c0
---
3d61c0
 virtinst/cli.py | 2 +-
3d61c0
 1 file changed, 1 insertion(+), 1 deletion(-)
3d61c0
3d61c0
diff --git a/virtinst/cli.py b/virtinst/cli.py
3d61c0
index 4adfd3af..2cd86ca6 100644
3d61c0
--- a/virtinst/cli.py
3d61c0
+++ b/virtinst/cli.py
3d61c0
@@ -1528,11 +1528,11 @@ class ParserCPU(VirtCLIParser):
3d61c0
 
3d61c0
 
3d61c0
 _register_virt_parser(ParserCPU)
3d61c0
+ParserCPU.add_arg("secure", "secure", is_onoff=True)
3d61c0
 ParserCPU.add_arg(None, "model", cb=ParserCPU.set_model_cb)
3d61c0
 ParserCPU.add_arg("mode", "mode")
3d61c0
 ParserCPU.add_arg("match", "match")
3d61c0
 ParserCPU.add_arg("vendor", "vendor")
3d61c0
-ParserCPU.add_arg("secure", "secure", is_onoff=True)
3d61c0
 
3d61c0
 ParserCPU.add_arg(None, "force", is_list=True, cb=ParserCPU.set_feature_cb)
3d61c0
 ParserCPU.add_arg(None, "require", is_list=True, cb=ParserCPU.set_feature_cb)
3d61c0
-- 
3d61c0
2.21.0
3d61c0