KVM: do not bias the generation number in kvm_current_mmio_generation
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Aug 2014 12:29:21 +0000 (14:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Sep 2014 08:03:35 +0000 (10:03 +0200)
commit00f034a12fdd81210d58116326d92780aac5c238
tree6e1eb1f40e9914fa801bf128f1eed19543f665c2
parentfd2752352bbc98850d83b5448a288d8991590317
KVM: do not bias the generation number in kvm_current_mmio_generation

The next patch will give a meaning (a la seqcount) to the low bit of the
generation number.  Ensure that it matches between kvm->memslots->generation
and kvm_current_mmio_generation().

Cc: stable@vger.kernel.org
Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
virt/kvm/kvm_main.c