diff options
author | Sean Christopherson <seanjc@google.com> | 2024-10-10 20:23:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-25 18:59:07 +0200 |
commit | 365e319208442a0807a96e9ea4d0b1fa338f1929 (patch) | |
tree | 66d199380b28fe0ea3236f4197b8f61f6890222f /drivers/usb | |
parent | KVM: nVMX: Mark vmcs12's APIC access page dirty when unmapping (diff) | |
download | linux-365e319208442a0807a96e9ea4d0b1fa338f1929.tar.xz linux-365e319208442a0807a96e9ea4d0b1fa338f1929.zip |
KVM: Pass in write/dirty to kvm_vcpu_map(), not kvm_vcpu_unmap()
Now that all kvm_vcpu_{,un}map() users pass "true" for @dirty, have them
pass "true" as a @writable param to kvm_vcpu_map(), and thus create a
read-only mapping when possible.
Note, creating read-only mappings can be theoretically slower, as they
don't play nice with fast GUP due to the need to break CoW before mapping
the underlying PFN. But practically speaking, creating a mapping isn't
a super hot path, and getting a writable mapping for reading is weird and
confusing.
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-34-seanjc@google.com>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions