]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9802b39cecb3666c3975d31fceebca146e54bfd
tree52ec858655a8b34b99c68eab3bf1aa15f9f70680
parentfdf929b89696e292c4cd7bfebd22014b4f832f3f
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