diff options
| author | Radim Krčmář <rkrcmar@redhat.com> | 2019-11-07 15:53:42 +0300 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-11-15 13:44:21 +0300 |
| commit | 8750e72a79dda2f665ce17b62049f4d62130d991 (patch) | |
| tree | 26c55833adf466e5eab151874c8d2e6c2eb25886 /net/lapb/lapb_iface.c | |
| parent | 662f1d1d19317e792ccfc53dee625c02dcefac58 (diff) | |
| download | linux-8750e72a79dda2f665ce17b62049f4d62130d991.tar.xz | |
KVM: remember position in kvm->vcpus array
Fetching an index for any vcpu in kvm->vcpus array by traversing
the entire array everytime is costly.
This patch remembers the position of each vcpu in kvm->vcpus array
by storing it in vcpus_idx under kvm_vcpu structure.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
