KVM: mmio: cleanup kvm_set_mmio_spte_mask
authorTiejun Chen <tiejun.chen@intel.com>
Mon, 1 Sep 2014 10:44:04 +0000 (18:44 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Sep 2014 08:04:10 +0000 (10:04 +0200)
commitd143148383d0395539073dd6c2f25ddf6656bdcc
tree122881b4567d4a8279cb27793ce5542b976268df
parent56f17dd3fbc44adcdbc3340fe3988ddb833a47a7
KVM: mmio: cleanup kvm_set_mmio_spte_mask

Just reuse rsvd_bits() inside kvm_set_mmio_spte_mask()
for slightly better code.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/x86.c