KVM: Add kvm_release_page_unused() API to put pages that KVM never consumes
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:05 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:54:42 +0000 (12:54 -0400)
commit3af91068b7e10dba438f70eae94d877f20842fa1
tree1f45e3485f60ee600bbc753f40a598549fa2f646
parent85e88b2bbaacb4135499fdb219f78ac38ef6e8d4
KVM: Add kvm_release_page_unused() API to put pages that KVM never consumes

Add an API to release an unused page, i.e. to put a page without marking
it accessed or dirty.  The API will be used when KVM faults-in a page but
bails before installing the guest mapping (and other similar flows).

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-4-seanjc@google.com>
include/linux/kvm_host.h