Vitaly Kuznetsov 87ee613d07 KVM: x86: hyperv: keep track of mismatched VP indexes
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>
2018-10-17 00:29:45 +02:00
..
2018-08-19 10:38:36 -07:00
2018-09-03 12:41:41 +02:00
2018-02-15 01:15:50 +01:00
2018-07-25 11:53:59 +02:00
2018-03-20 10:01:57 +01:00
2018-01-30 15:08:27 +01:00
2018-05-19 13:55:40 +02:00
2018-08-15 13:44:10 -07:00
2017-12-22 20:13:04 +01:00
2017-12-04 10:56:53 +10:00
2017-12-22 20:13:01 +01:00
2018-08-19 10:38:36 -07:00
2017-07-26 13:18:20 +02:00
2018-05-07 07:15:41 +02:00
2018-06-07 10:23:33 -07:00
2018-07-20 01:11:45 +02:00
2017-11-15 18:21:05 -08:00
2018-03-28 22:47:06 +02:00
2018-03-20 10:01:57 +01:00
2018-05-09 21:41:38 +02:00
2018-09-01 23:01:56 +02:00
2017-11-15 18:21:04 -08:00