diff options
| author | Sean Christopherson <[email protected]> | 2024-10-10 18:24:27 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2024-10-25 17:01:35 +0000 |
| commit | 8b15c3764c05ed8766709711d2054d96349dee8e (patch) | |
| tree | 2b28e7b160c28d374682ecf290d2a26796c05044 /rust/helpers | |
| parent | KVM: Drop APIs that manipulate "struct page" via pfns (diff) | |
| download | kernel-8b15c3764c05ed8766709711d2054d96349dee8e.tar.gz kernel-8b15c3764c05ed8766709711d2054d96349dee8e.zip | |
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 <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Tested-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
