[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
- [Qemu-devel] [PATCH 0/6] KVM flash memory support, Jordan Justen, 2013/04/28
- [Qemu-devel] [PATCH 1/6] kvm: add kvm_readonly_mem_enabled, Jordan Justen, 2013/04/28
- [Qemu-devel] [PATCH 3/6] kvm: workaround a possible KVM bug when using KVM_MEM_READONLY, Jordan Justen, 2013/04/28
- [Qemu-devel] [PATCH 4/6] pflash_cfi01: memory region should be set to enable readonly mode, Jordan Justen, 2013/04/28
- [Qemu-devel] [PATCH 6/6] pc_sysfw: change rom_only default to 0, Jordan Justen, 2013/04/28
- [Qemu-devel] [PATCH 5/6] pc_sysfw: allow flash memory to be used with KVM,
Jordan Justen <=
- [Qemu-devel] [PATCH 2/6] kvm: support using KVM_MEM_READONLY flag for readonly regions, Jordan Justen, 2013/04/28