]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Move is_writable_pte() to spte.h
authorDavid Matlack <dmatlack@google.com>
Tue, 25 Jan 2022 23:05:16 +0000 (23:05 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:32 +0000 (13:50 -0500)
commitc4f5e0e192eab9c6622aaf5d48da610a55b4cc3e
treecc9ea47cee2605445ab0a96613e22d9a3aa0db44
parent7b4d02e244408d6de5fee411e92bbc63df35e871
KVM: x86/mmu: Move is_writable_pte() to spte.h

Move is_writable_pte() close to the other functions that check
writability information about SPTEs. While here opportunistically
replace the open-coded bit arithmetic in
check_spte_writable_invariants() with a call to is_writable_pte().

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220125230518.1697048-4-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/spte.h