KVM: Skip unnecessary "unmap" if gpc is already valid during refresh
authorSean Christopherson <seanjc@google.com>
Thu, 13 Oct 2022 21:12:32 +0000 (21:12 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 30 Nov 2022 19:25:24 +0000 (19:25 +0000)
commit06e155c44aa0e7921aa44d3c67f8ea464b16cb75
treedd1ffca57936fce3629522cf5d39948b8e71a583
parent58f5ee5fedd981e05cb086cba4e8f923c3727a04
KVM: Skip unnecessary "unmap" if gpc is already valid during refresh

When refreshing a gfn=>pfn cache, skip straight to unlocking if the cache
already valid instead of stuffing the "old" variables to turn the
unmapping outro into a nop.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
virt/kvm/pfncache.c