qemu-arm
[Top][All Lists]
Advanced

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

[PATCH v3 20/22] microvm/acpi: disable virtio-mmio cmdline hack


From: Gerd Hoffmann
Subject: [PATCH v3 20/22] microvm/acpi: disable virtio-mmio cmdline hack
Date: Wed, 20 May 2020 15:20:01 +0200

... in case we are using ACPI.

Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
---
 hw/i386/microvm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index ddb8570a2915..602c6a8f75f3 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -362,7 +362,8 @@ static void microvm_machine_reset(MachineState *machine)
     CPUState *cs;
     X86CPU *cpu;
 
-    if (machine->kernel_filename != NULL &&
+    if (!x86_machine_is_acpi_enabled(X86_MACHINE(machine)) &&
+        machine->kernel_filename != NULL &&
         mms->auto_kernel_cmdline && !mms->kernel_cmdline_fixed) {
         microvm_fix_kernel_cmdline(machine);
         mms->kernel_cmdline_fixed = true;
-- 
2.18.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]