qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 5/6] pc_sysfw: allow flash memory to be used with KV


From: Jordan Justen
Subject: [Qemu-devel] [PATCH 5/6] pc_sysfw: allow flash memory to be used with KVM
Date: Sun, 28 Apr 2013 01:32:20 -0700

This requires the KVM READONLY memory capability.

Signed-off-by: Jordan Justen <address@hidden>
---
 hw/block/pc_sysfw.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/block/pc_sysfw.c b/hw/block/pc_sysfw.c
index aad8614..e88d67e 100644
--- a/hw/block/pc_sysfw.c
+++ b/hw/block/pc_sysfw.c
@@ -237,6 +237,9 @@ void pc_system_firmware_init(MemoryRegion *rom_memory)
             old_pc_system_rom_init(rom_memory);
             return;
         }
+    } else if (kvm_enabled() && !kvm_readonly_mem_enabled()) {
+        fprintf(stderr, "qemu: pflash with kvm requires KVM readonly memory 
support\n");
+        exit(1);
     }
 
     /* If a pflash drive is not found, then create one using
-- 
1.7.10.4




reply via email to

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