KVM: x86/mmu: WARN if TDP MMU's set_tdp_spte() sees multiple GFNs
authorSean Christopherson <seanjc@google.com>
Fri, 26 Feb 2021 01:03:26 +0000 (17:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:30 +0000 (04:43 -0400)
commit74fe0f547454a19a033b03ac55cf248e28f11db6
tree2795986f3d1a3cda45f2097d8dcef77611f3c046
parentf055ab634c838a5f9d6c352c2d6d6a9042918ee9
KVM: x86/mmu: WARN if TDP MMU's set_tdp_spte() sees multiple GFNs

WARN if set_tdp_spte() is invoked with multipel GFNs.  It is specifically
a callback to handle a single host PTE being changed.  Consuming the
@end parameter also eliminates the confusing 'unused' parameter.

Cc: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210226010329.1766033-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c