KVM: MMU: don't check PT_WRITABLE_MASK directly
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Thu, 27 May 2010 08:09:48 +0000 (16:09 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:39:22 +0000 (10:39 +0300)
commit01c168ac3d6568fed0373d82bd2db2b9339aab16
tree62f6f7374b2952bb00d845affeff7aafa727510d
parent3af1817a0d65e8c1317e8d23cfe8a91aa1d4a065
KVM: MMU: don't check PT_WRITABLE_MASK directly

Since we have is_writable_pte(), make use of it.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c