]> 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)
commitdbb1c27ed0f37c42149fc829919049cc78980270
tree52ec858655a8b34b99c68eab3bf1aa15f9f70680
parentc5040a2929b809bdf515dfe25ff4109c63e883ee
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