diff options
| author | Sean Christopherson <sean.j.christopherson@intel.com> | 2019-12-18 13:54:49 -0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-24 09:18:53 +0100 |
| commit | 034d8e2cb929ed73e32e2dba98cb8067eab85964 (patch) | |
| tree | 57bc521064a32eaf6a43165afc2f01379909bb74 /tools/perf/scripts/python/bin | |
| parent | KVM: x86: Free wbinvd_dirty_mask if vCPU creation fails (diff) | |
| download | linux-034d8e2cb929ed73e32e2dba98cb8067eab85964.tar.gz linux-034d8e2cb929ed73e32e2dba98cb8067eab85964.zip | |
KVM: VMX: Allocate VPID after initializing VCPU
Do VPID allocation after calling the common kvm_vcpu_init() as a step
towards doing vCPU allocation (via kmem_cache_zalloc()) and calling
kvm_vcpu_init() back-to-back. Squishing allocation and initialization
together will eventually allow the sequence to be moved to arch-agnostic
creation code.
Note, the VPID is not consumed until KVM_RUN, slightly delaying its
allocation should have no real function impact. VPID allocation was
arbitrarily placed in the original patch, commit 2384d2b326408 ("KVM:
VMX: Enable Virtual Processor Identification (VPID)").
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
