KVM: Cache as_id in kvm_memory_slot
authorPeter Xu <peterx@redhat.com>
Wed, 14 Oct 2020 18:26:46 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 22:17:01 +0000 (18:17 -0400)
commit9e9eb226b91225fc199bbafc06f3cd70bfce0100
tree5902dbf1cd1a5dc09d8f69b9b098c8478a302b79
parent2f2fad0897cbfda4e384a7b9eab73654974015ac
KVM: Cache as_id in kvm_memory_slot

Cache the address space ID just like the slot ID.  It will be used in
order to fill in the dirty ring entries.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20201014182700.2888246-7-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c