KVM: introduce readonly memslot
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 03:02:51 +0000 (11:02 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:09:03 +0000 (15:09 +0300)
commit4d8b81abc47b83a1939e59df2fdb0e98dfe0eedd
tree47ea77cb4f77a2884a0478ecf84f62e32e5661ee
parent7068d0971524dd47a38f44f6020ba133432871ca
KVM: introduce readonly memslot

In current code, if we map a readonly memory space from host to guest
and the page is not currently mapped in the host, we will get a fault
pfn and async is not allowed, then the vm will crash

We introduce readonly memory region to map ROM/ROMD to the guest, read access
is happy for readonly memslot, write access on readonly memslot will cause
KVM_EXIT_MMIO exit

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/virtual/kvm/api.txt
arch/x86/include/asm/kvm.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
include/linux/kvm.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c
This page took 0.032093 seconds and 5 git commands to generate.