KVM: MMU: Clean up BUG_ON() conditions in rmap_write_protect()
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Mon, 14 Nov 2011 09:21:34 +0000 (18:21 +0900)
committerAvi Kivity <avi@redhat.com>
Tue, 27 Dec 2011 09:17:13 +0000 (11:17 +0200)
commitd6eebf8b80316ea61718dc115cd6a20c16195327
treea4975b243ee0137650774a6ea86c1dbc3dc9fbf0
parent6da64fdb8c0c683016b70c96200057347aa8fbb0
KVM: MMU: Clean up BUG_ON() conditions in rmap_write_protect()

Remove redundant checks and use is_large_pte() macro.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c