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>
This commit is contained in:
parent
2f2fad0897
commit
9e9eb226b9
2 changed files with 7 additions and 0 deletions
|
|
@ -346,6 +346,7 @@ struct kvm_memory_slot {
|
|||
unsigned long userspace_addr;
|
||||
u32 flags;
|
||||
short id;
|
||||
u16 as_id;
|
||||
};
|
||||
|
||||
static inline unsigned long kvm_dirty_bitmap_bytes(struct kvm_memory_slot *memslot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue