This requires the KVM READONLY memory capability. Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> --- 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