summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-10-10 21:24:27 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-25 20:01:35 +0300
commit8b15c3764c05ed8766709711d2054d96349dee8e (patch)
tree2b28e7b160c28d374682ecf290d2a26796c05044 /rust/helpers/helpers.c
parent93b7da404f5b0b02a4211bbb784889f001d27953 (diff)
downloadlinux-8b15c3764c05ed8766709711d2054d96349dee8e.tar.xz
KVM: Don't grab reference on VM_MIXEDMAP pfns that have a "struct page"
Now that KVM no longer relies on an ugly heuristic to find its struct page references, i.e. now that KVM can't get false positives on VM_MIXEDMAP pfns, remove KVM's hack to elevate the refcount for pfns that happen to have a valid struct page. In addition to removing a long-standing wart in KVM, this allows KVM to map non-refcounted struct page memory into the guest, e.g. for exposing GPU TTM buffers to KVM guests. 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-86-seanjc@google.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions