2021-11-08 12:59:16 +00:00
|
|
|
From 0414b6f6f28b4ff1db04c6eed18b118294cac49a Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <0414b6f6f28b4ff1db04c6eed18b118294cac49a@dist-git>
|
2020-08-27 18:56:47 +00:00
|
|
|
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
|
Date: Mon, 22 Feb 2016 12:51:51 +0100
|
|
|
|
Subject: [PATCH] RHEL: Add rhel machine types to qemuDomainMachineNeedsFDC
|
|
|
|
|
|
|
|
RHEL-only.
|
|
|
|
|
|
|
|
pc-q35-rhel7.0.0 and pc-q35-rhel7.1.0 do not need an explicit
|
|
|
|
isa-fdc controller.
|
|
|
|
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1227880
|
|
|
|
|
|
|
|
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
|
---
|
2021-10-27 22:32:57 +00:00
|
|
|
src/qemu/qemu_domain.c | 8 +++++++-
|
|
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
2020-08-27 18:56:47 +00:00
|
|
|
|
|
|
|
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
|
2021-11-08 12:59:16 +00:00
|
|
|
index 209337404a..7735d134eb 100644
|
2020-08-27 18:56:47 +00:00
|
|
|
--- a/src/qemu/qemu_domain.c
|
|
|
|
+++ b/src/qemu/qemu_domain.c
|
2021-11-08 12:59:16 +00:00
|
|
|
@@ -8696,10 +8696,16 @@ static bool
|
2021-10-27 22:32:57 +00:00
|
|
|
qemuDomainMachineNeedsFDC(const char *machine,
|
|
|
|
const virArch arch)
|
|
|
|
{
|
|
|
|
+ const char *p = STRSKIP(machine, "pc-q35-");
|
|
|
|
+
|
|
|
|
if (!ARCH_IS_X86(arch))
|
2020-08-27 18:56:47 +00:00
|
|
|
return false;
|
|
|
|
|
2021-10-27 22:32:57 +00:00
|
|
|
- if (!STRPREFIX(machine, "pc-q35-"))
|
|
|
|
+ if (!p)
|
2020-08-27 18:56:47 +00:00
|
|
|
+ return false;
|
|
|
|
+
|
2021-10-27 22:32:57 +00:00
|
|
|
+ if (STRPREFIX(p, "rhel7.0.0") ||
|
|
|
|
+ STRPREFIX(p, "rhel7.1.0"))
|
|
|
|
return false;
|
2020-08-27 18:56:47 +00:00
|
|
|
|
2021-10-27 22:32:57 +00:00
|
|
|
return true;
|
2020-08-27 18:56:47 +00:00
|
|
|
--
|
2021-11-08 12:59:16 +00:00
|
|
|
2.33.1
|
2020-08-27 18:56:47 +00:00
|
|
|
|