]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit565e0e97fa7ca11797fde6ab8c0295ec9d998d82
tree5902dbf1cd1a5dc09d8f69b9b098c8478a302b79
parent97b6c3308c7b5b9ab149c769851e1cf5be2dc380
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