]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbaf5783a2ff0b924f8476ac92fe886f73f095fb4
tree64e72f019682f0ac4093d5b446f87338caceb451
parent3d4881c7c954251e404cc0db646f477e9f7f8c7e
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