aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2018-08-22 12:18:28 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-17 00:29:43 +0200
commit9170200ec0ebad70e5b9902bc93e2b1b11456a3b (patch)
tree2a935ca68f0dea412ba37fa77380cd6306583804 /virt
parentkvm/x86: return meaningful value from KVM_SIGNAL_MSI (diff)
downloadlinux-dev-9170200ec0ebad70e5b9902bc93e2b1b11456a3b.tar.xz
linux-dev-9170200ec0ebad70e5b9902bc93e2b1b11456a3b.zip
KVM: x86: hyperv: enforce vp_index < KVM_MAX_VCPUS
Hyper-V TLFS (5.0b) states: > Virtual processors are identified by using an index (VP index). The > maximum number of virtual processors per partition supported by the > current implementation of the hypervisor can be obtained through CPUID > leaf 0x40000005. A virtual processor index must be less than the > maximum number of virtual processors per partition. Forbid userspace to set VP_INDEX above KVM_MAX_VCPUS. get_vcpu_by_vpidx() can now be optimized to bail early when supplied vpidx is >= KVM_MAX_VCPUS. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions