KVM: use __copy_to_user/__clear_user to write guest page
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Sun, 15 May 2011 15:22:04 +0000 (23:22 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:03 +0000 (11:45 +0300)
commit8b0cedff040b652f3d36b1368778667581b0c140
treed1a8d8c7368d96830a0b4d6af7aa652ab5a015d6
parent332b207d65c1d7982489dbb83e5071c95e19eb75
KVM: use __copy_to_user/__clear_user to write guest page

Simply use __copy_to_user/__clear_user to write guest page since we have
already verified the user address when the memslot is set

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c