KVM: MMU: handle 'map_writable' in set_spte() function
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 23 Dec 2010 08:09:29 +0000 (16:09 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:19 +0000 (11:31 +0200)
commitf8e453b00cf1d90a047eb0ef8eefe6200e0f4512
tree7347af552a9a0ca0ba2bf8e19e3c33721a7637e5
parentb034cf0105235e65ee1b0161dbe8fef0338d06e7
KVM: MMU: handle 'map_writable' in set_spte() function

Move the operation of 'writable' to set_spte() to clean up code

[avi: remove unneeded booleanification]

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h