KVM: x86: Add a helper to get the sparse VP_SET for IPIs and TLB flushes
authorSean Christopherson <seanjc@google.com>
Tue, 7 Dec 2021 22:09:22 +0000 (22:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:34 +0000 (13:50 -0500)
commita0dd008fe9b2f536aabb1ac2cfa4eee44734beab
tree52ec858655a8b34b99c68eab3bf1aa15f9f70680
parent25af9081189b91df003be7e8acbe9b05f9a58c93
KVM: x86: Add a helper to get the sparse VP_SET for IPIs and TLB flushes

Add a helper, kvm_get_sparse_vp_set(), to handle sanity checks related to
the VARHEAD field and reading the sparse banks of a VP_SET.  A future
commit to reduce the memory footprint of sparse_banks will introduce more
common code to the sparse bank retrieval.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211207220926.718794-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c