KVM: x86: Avoid zapping mmio sptes twice for generation wraparound
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Thu, 4 Jul 2013 04:41:26 +0000 (13:41 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jul 2013 10:29:26 +0000 (12:29 +0200)
commite6dff7d15edfa90011298c2a37ec7c965c5f9885
tree64e72f019682f0ac4093d5b446f87338caceb451
parente59dbe09f8e6fb8f6ee19dc79d1a2f14299e4cd2
KVM: x86: Avoid zapping mmio sptes twice for generation wraparound

Now that kvm_arch_memslots_updated() catches every increment of the
memslots->generation, checking if the mmio generation has reached its
maximum value is enough.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c