diff options
author | Sean Christopherson <seanjc@google.com> | 2024-10-10 11:24:20 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-25 13:00:50 -0400 |
commit | 040537ce87e9094e4936b2dfdc60beecf2cc339e (patch) | |
tree | 5b27b73dee10e61b80b7e7b2900c87c2c49ae9e6 /virt | |
parent | 570d666c11af0c95eba0a86582ae2cd8689211d0 (diff) | |
download | linux-stable-040537ce87e9094e4936b2dfdc60beecf2cc339e.tar.gz linux-stable-040537ce87e9094e4936b2dfdc60beecf2cc339e.tar.bz2 linux-stable-040537ce87e9094e4936b2dfdc60beecf2cc339e.zip |
KVM: PPC: Explicitly require struct page memory for Ultravisor sharing
Explicitly require "struct page" memory when sharing memory between
guest and host via an Ultravisor. Given the number of pfn_to_page()
calls in the code, it's safe to assume that KVM already requires that the
pfn returned by gfn_to_pfn() is backed by struct page, i.e. this is
likely a bug fix, not a reduction in KVM capabilities.
Switching to gfn_to_page() will eventually allow removing gfn_to_pfn()
and kvm_pfn_to_refcounted_page().
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-79-seanjc@google.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions