]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Move SPTE writable invariant checks to a helper function
authorDavid Matlack <dmatlack@google.com>
Tue, 25 Jan 2022 23:05:14 +0000 (23:05 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:31 +0000 (13:50 -0500)
commitb83d9a8078aeaeb7be5f75757b85b217396a0def
tree22ffff3faec1ec1be8e9ffaa1f53fdf25856e450
parent00387203a4ac6ed8810ed195717662290efbc92b
KVM: x86/mmu: Move SPTE writable invariant checks to a helper function

Move the WARNs in spte_can_locklessly_be_made_writable() to a separate
helper function. This is in preparation for moving these checks to the
places where SPTEs are set.

Opportunistically add warning error messages that include the SPTE to
make future debugging of these warnings easier.

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