]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - virt/kvm/kvm_main.c
KVM: use 'writable' as a hint to map writable pfn
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 03:00:49 +0000 (11:00 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:08:55 +0000 (15:08 +0300)
commit12ce13fea925ab629f2281be2b9b01cf647a86cd
tree5e67a57d09c890017524017acc22c78bf8cf0548
parent2fc843117d64b31c20d36c6b625c0626c9a41a41
KVM: use 'writable' as a hint to map writable pfn

In current code, we always map writable pfn for the read fault, in order
to support readonly memslot, we map writable pfn only if 'writable'
is not NULL

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c