From: Xiao Guangrong Date: Tue, 21 Aug 2012 03:02:51 +0000 (+0800) Subject: KVM: introduce readonly memslot X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~15^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d8b81abc47b83a1939e59df2fdb0e98dfe0eedd;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed