]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08c2d0bca6ed50cfe39f6e81a6a5d19f08bbe224
tree6e1eb1f40e9914fa801bf128f1eed19543f665c2
parentff529c92222ba3f35643ebe305713d1cf147087b
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