[Qemu-devel] [PATCH 3/3] support readonly memory feature in qemu

2012-09-07 Thread Liu Sheng
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

[Qemu-devel] [PATCH 0/3] support kvm readonly memory slot in qemu

2012-09-07 Thread Liu Sheng
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

[Qemu-devel] [PATCH 2/3] update kvm related the head file from kernel

2012-09-07 Thread Liu Sheng
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

[Qemu-devel] [PATCH 1/3] set the readonly property of rom memory region in pc

2012-09-07 Thread Liu Sheng
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

Re: [Qemu-devel] Mapping Hugepage to Guest

2012-07-19 Thread Liu Sheng
yes, try '-mem-path ' On Wed, Jul 18, 2012 at 10:41:43PM +, Haines, Brent R wrote: