te not safe for the guest and host.
when I use kvm with readonly memory slot, in step 2 it reports:
Rom Test: Okay.
and the error message prints out in host console:
Guest is writing readonly memory, phys_addr: febc0000, len:4, data[0]:K,
ski
m
in mmio-exit-info to indicate this exit is caused by write access on
readonly memslot" http://marc.info/?l=linux-kernel&m=134563967500539&w=2
of readonly memory slots in kvm", which has not been accepted yet.
Liu Sheng (3):
set the readonly property of rom memory region in
updated the head file from kernel for readonly memory
feature.
Signed-off-by: Liu Sheng
---
linux-headers/asm-x86/kvm.h |1 +
linux-headers/linux/kvm.h | 16 +---
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm
make sure the memory regions of rom in pc have readonly property,
prepare for plug these memory to kvm as readonly memory slots.
Signed-off-by: Liu Sheng
---
hw/pc.c |1 +
hw/pci.c |1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index c32ee8e
yes, try '-mem-path '
On Wed, Jul 18, 2012 at 10:41:43PM +, Haines, Brent R wrote: