KVM: x86/mmu: Replace PFERR_NESTED_GUEST_PAGE with a more descriptive helper
authorSean Christopherson <seanjc@google.com>
Sat, 31 Aug 2024 00:15:17 +0000 (17:15 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:16:18 +0000 (20:16 -0700)
commit4ececec19a0914873634ad69bbaca5557c33e855
tree2026c22d50fbe373af719abf397ad4b80a376679
parent1dc9cc1c4c230fbc6bf6322f150d4b81f712cfb9
KVM: x86/mmu: Replace PFERR_NESTED_GUEST_PAGE with a more descriptive helper

Drop the globally visible PFERR_NESTED_GUEST_PAGE and replace it with a
more appropriately named is_write_to_guest_page_table().  The macro name
is misleading, because while all nNPT walks match PAGE|WRITE|PRESENT, the
reverse is not true.

No functional change intended.

Link: https://lore.kernel.org/r/20240831001538.336683-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c