KVM: use separate generations for each address space
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 4 Feb 2017 04:44:51 +0000 (20:44 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Feb 2017 17:42:41 +0000 (18:42 +0100)
commit4bd518f1598d41985eb933aa73bac2605b70984c
tree9b11cd4ba0250ae06fcb2d78727a2699c78a9ff7
parent5a2d4365d2c39e8a3ff3cbee3af123a23aebdb9c
KVM: use separate generations for each address space

This will make it easier to support multiple address spaces in
kvm_gfn_to_hva_cache_init.  Instead of having to check the address
space id, we can keep on checking just the generation number.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c