diff options
| author | Sean Christopherson <[email protected]> | 2021-07-13 09:32:56 -0700 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-08-02 11:01:52 -0400 |
| commit | 4547700a4d190ac419abffa317069aaccf1ac118 (patch) | |
| tree | 44b63c2c4535ed78980876f3bf70c2fa96462f86 /tools/perf/scripts/python | |
| parent | 421221234ada41b4a9f0beeb08e30b07388bd4bd (diff) | |
KVM: x86: Consolidate APIC base RESET initialization code
Consolidate the APIC base RESET logic, which is currently spread out
across both x86 and vendor code. For an in-kernel APIC, the vendor code
is redundant. But for a userspace APIC, KVM relies on the vendor code
to initialize vcpu->arch.apic_base. Hoist the vcpu->arch.apic_base
initialization above the !apic check so that it applies to both flavors
of APIC emulation, and delete the vendor code.
Reviewed-by: Reiji Watanabe <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions