]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Don't make a full copy of the old memslot in __kvm_set_memory_region()
authorSean Christopherson <seanjc@google.com>
Mon, 6 Dec 2021 19:54:22 +0000 (20:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:28 +0000 (04:24 -0500)
commitcb0a6b3f1c7e6f76b325c2c2ae01e61768ae800a
tree5af0292c8f44367b477b9a2050258c4200eee7d1
parent68e7ff37ab5679b0982234100aa60f34bbc67940
KVM: Don't make a full copy of the old memslot in __kvm_set_memory_region()

Stop making a full copy of the old memslot in __kvm_set_memory_region()
now that metadata updates are handled by kvm_set_memslot(), i.e. now that
the old memslot's dirty bitmap doesn't need to be referenced after the
memslot and its pointer is modified/invalidated by kvm_set_memslot().

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: <5dce0946b41bba8c83f6e3424c6955c56bcc9f86.1638817640.git.maciej.szmigiero@oracle.com>
virt/kvm/kvm_main.c