OSDN Git Service

KVM: x86: hyper-v: Add helper to read hypercall data for array
authorSean Christopherson <seanjc@google.com>
Tue, 1 Nov 2022 14:53:48 +0000 (15:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Nov 2022 17:59:04 +0000 (12:59 -0500)
commit56b5354fd8f9173de2e1614864e5fb7bec8c50c4
tree85897f854fdf0a38d62dd2125030a4cac0d8eae9
parent0823570f01989d3703751f66534a138d4fae062e
KVM: x86: hyper-v: Add helper to read hypercall data for array

Move the guts of kvm_get_sparse_vp_set() to a helper so that the code for
reading a guest-provided array can be reused in the future, e.g. for
getting a list of virtual addresses whose TLB entries need to be flushed.

Opportunisticaly swap the order of the data and XMM adjustment so that
the XMM/gpa offsets are bundled together.

No functional change intended.

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