]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Use prepare/commit hooks to handle generic memslot metadata updates
authorSean Christopherson <seanjc@google.com>
Mon, 6 Dec 2021 19:54:19 +0000 (20:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:26 +0000 (04:24 -0500)
commit2f12cff8797a20f100513330bcb64832661e8ee2
treee4da3419a46db2c122aefbe69c3de5fe5ebab228
parentc77201ac52ac82d058a17f0b7d6dd6a6bc97f67d
KVM: Use prepare/commit hooks to handle generic memslot metadata updates

Handle the generic memslot metadata, a.k.a. dirty bitmap, updates at the
same time that arch handles it's own metadata updates, i.e. at memslot
prepare and commit.  This will simplify converting @new to a dynamically
allocated object, and more closely aligns common KVM with architecture
code.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <2ddd5446e3706fe3c1e52e3df279f04c458be830.1638817640.git.maciej.szmigiero@oracle.com>
virt/kvm/kvm_main.c