diff options
author | Sean Christopherson <seanjc@google.com> | 2020-12-18 01:31:39 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-08 00:00:27 +0100 |
commit | 9aa418792f5f11ef5d6f72265e1f8ae07efd5784 (patch) | |
tree | f4910d7c94b78d005d90f51aaac3d772950a5866 /drivers/spi/spi-cadence-quadspi.c | |
parent | KVM: x86/mmu: Use raw level to index into MMIO walks' sptes array (diff) | |
download | linux-9aa418792f5f11ef5d6f72265e1f8ae07efd5784.tar.xz linux-9aa418792f5f11ef5d6f72265e1f8ae07efd5784.zip |
KVM: x86/mmu: Optimize not-present/MMIO SPTE check in get_mmio_spte()
Check only the terminal leaf for a "!PRESENT || MMIO" SPTE when looking
for reserved bits on valid, non-MMIO SPTEs. The get_walk() helpers
terminate their walks if a not-present or MMIO SPTE is encountered, i.e.
the non-terminal SPTEs have already been verified to be regular SPTEs.
This eliminates an extra check-and-branch in a relatively hot loop.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20201218003139.2167891-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/spi/spi-cadence-quadspi.c')
0 files changed, 0 insertions, 0 deletions