diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2018-09-26 19:02:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-16 08:21:50 +0200 |
commit | b0d9043bdbe693319b4eaa2523003654bf6e200e (patch) | |
tree | 0d91c0f48f073fb2cd9e24ba4aa574a778099961 /arch/arm/mach-imx/ehci-imx27.c | |
parent | f031fd03e22e2193f996c6050aacca675e33d2fc (diff) | |
download | linux-rt-b0d9043bdbe693319b4eaa2523003654bf6e200e.tar.gz |
KVM: x86: hyperv: keep track of mismatched VP indexes
[ Upstream commit 87ee613d076351950b74383215437f841ebbeb75 ]
In most common cases VP index of a vcpu matches its vcpu index. Userspace
is, however, free to set any mapping it wishes and we need to account for
that when we need to find a vCPU with a particular VP index. To keep search
algorithms optimal in both cases introduce 'num_mismatched_vp_indexes'
counter showing how many vCPUs with mismatching VP index we have. In case
the counter is zero we can assume vp_index == vcpu_idx.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/ehci-imx27.c')
0 files changed, 0 insertions, 0 deletions