[pve-devel] [PATCH] qemu :disable smm support
Alexandre Derumier
aderumier at odiso.com
Wed Sep 30 09:24:01 CEST 2015
kernel 4.2 and qemu 2.4 machine introduce support for SMM
(system management support).
this is needed to manage uefi inside guest.
But it seem to hang on a lot of servers.
So for now, disable the feature in qemu side.
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
debian/patches/0001-smm_available-false.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 3 ++-
2 files changed, 28 insertions(+), 1 deletion(-)
create mode 100644 debian/patches/0001-smm_available-false.patch
diff --git a/debian/patches/0001-smm_available-false.patch b/debian/patches/0001-smm_available-false.patch
new file mode 100644
index 0000000..8e4d6de
--- /dev/null
+++ b/debian/patches/0001-smm_available-false.patch
@@ -0,0 +1,26 @@
+From 4a1e7790e45da3b0dae61bd483b37556bae338ee Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier at odiso.com>
+Date: Tue, 29 Sep 2015 15:37:44 +0200
+Subject: [PATCH] smm_available = false
+
+Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
+---
+ hw/i386/pc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hw/i386/pc.c b/hw/i386/pc.c
+index 7661ea9..5529dc8 100644
+--- a/hw/i386/pc.c
++++ b/hw/i386/pc.c
+@@ -1842,7 +1842,7 @@ bool pc_machine_is_smm_enabled(PCMachineState *pcms)
+ if (tcg_enabled() || qtest_enabled()) {
+ smm_available = true;
+ } else if (kvm_enabled()) {
+- smm_available = kvm_has_smm();
++ smm_available = false;
+ }
+
+ if (smm_available) {
+--
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 882caf3..85f7a46 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -31,4 +31,5 @@ glusterfs-daemonize.patch
gluster-backupserver.patch
add-qmp-get-link-status.patch
jemalloc.patch
-mirror-fix-coroutine-reentrance.patch
\ No newline at end of file
+mirror-fix-coroutine-reentrance.patch
+0001-smm_available-false.patch
--
2.1.4
More information about the pve-devel
mailing list