[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200415214414.10194-1-sean.j.christopherson@intel.com>
Date: Wed, 15 Apr 2020 14:44:12 -0700
From: Sean Christopherson <sean.j.christopherson@...el.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Sean Christopherson <sean.j.christopherson@...el.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Rick Edgecombe <rick.p.edgecombe@...el.com>
Subject: [PATCH 0/2] KVM: x86/mmu: Minor cleanup in try_async_pf()
Two cleanups with no functional changes.
I'm not 100% on whether or not open coding the private memslot check in
patch 2 is a good idea. Avoiding the extra memslot lookup is nice, but
that could be done by providing e.g. kvm_is_memslot_visible(). On one
hand, I like deferring the nonexistent and invalid checks to common code,
but on the other hand it creates the possibility of missing some future
case where kvm_is_gfn_visible() adds a check that's not also incoporated
into __gfn_to_hva_many(), though that seems like a rather unlikely
scenario.
Sean Christopherson (2):
KVM: x86/mmu: Set @writable to false for non-visible accesses by L2
KVM: x86/mmu: Avoid an extra memslot lookup in try_async_pf() for L2
arch/x86/kvm/mmu/mmu.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
--
2.26.0
Powered by blists - more mailing lists