diff options
| author | Sean Christopherson <seanjc@google.com> | 2024-08-31 03:15:27 +0300 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2024-09-10 06:16:27 +0300 |
| commit | b7e948898e772ac900950c0dac4ca90e905cd0c0 (patch) | |
| tree | 1315855354876cb2a77c1f128b9aabcc21032a23 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | 2df354e37c1398a85bb43cbbf1f913eb3f91d035 (diff) | |
| download | linux-b7e948898e772ac900950c0dac4ca90e905cd0c0.tar.xz | |
KVM: x86/mmu: Don't try to unprotect an INVALID_GPA
If getting the gpa for a gva fails, e.g. because the gva isn't mapped in
the guest page tables, don't try to unprotect the invalid gfn. This is
mostly a performance fix (avoids unnecessarily taking mmu_lock), as
for_each_gfn_valid_sp_with_gptes() won't explode on garbage input, it's
simply pointless.
Link: https://lore.kernel.org/r/20240831001538.336683-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
