diff options
author | Sean Christopherson <seanjc@google.com> | 2024-10-10 11:23:29 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-25 12:57:59 -0400 |
commit | 3dd48ecfac7fdbcba397a6378ab93c3a9b3cb802 (patch) | |
tree | 106d106422b982af1314fc0dcee374d59a71dc08 /samples/watchdog/watchdog-simple.c | |
parent | 12fac89950996e556a99eb16f0359307ed4c2566 (diff) | |
download | linux-3dd48ecfac7fdbcba397a6378ab93c3a9b3cb802.tar.gz linux-3dd48ecfac7fdbcba397a6378ab93c3a9b3cb802.tar.bz2 linux-3dd48ecfac7fdbcba397a6378ab93c3a9b3cb802.zip |
KVM: Provide refcounted page as output field in struct kvm_follow_pfn
Add kvm_follow_pfn.refcounted_page as an output for the "to pfn" APIs to
"return" the struct page that is associated with the returned pfn (if KVM
acquired a reference to the page). This will eventually allow removing
KVM's hacky kvm_pfn_to_refcounted_page() code, which is error prone and
can't detect pfns that are valid, but aren't (currently) refcounted.
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-28-seanjc@google.com>
Diffstat (limited to 'samples/watchdog/watchdog-simple.c')
0 files changed, 0 insertions, 0 deletions