KVM: propagate fault r/w information to gup(), allow read-only memory
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 22 Oct 2010 16:18:18 +0000 (14:18 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:28:40 +0000 (11:28 +0200)
commit612819c3c6e67bac8fceaa7cc402f13b1b63f7e4
tree3739b8420660fc4de8d37d26004d9992e92acbe3
parent7905d9a5ad7a83f1c1c00559839857ab90afbdfc
KVM: propagate fault r/w information to gup(), allow read-only memory

As suggested by Andrea, pass r/w error code to gup(), upgrading read fault
to writable if host pte allows it.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c
This page took 0.025796 seconds and 5 git commands to generate.