]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Drop now-redundant MAXPHYADDR and GPA rsvd bits from vCPU creation
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 01:33:39 +0000 (17:33 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 18 Dec 2024 22:19:34 +0000 (14:19 -0800)
commit21d7f06d1a8364a57432ccc1e6167c73c043b913
tree629dc2fccf3396cd0655e6ba0e031b66f188258b
parentac32cbd4dfc642b0bb8a10dd998246c86f19e326
KVM: x86: Drop now-redundant MAXPHYADDR and GPA rsvd bits from vCPU creation

Drop the manual initialization of maxphyaddr and reserved_gpa_bits during
vCPU creation now that kvm_arch_vcpu_create() unconditionally invokes
kvm_vcpu_after_set_cpuid(), which handles all such CPUID caching.

None of the helpers between the existing code in kvm_arch_vcpu_create()
and the call to kvm_vcpu_after_set_cpuid() consume maxphyaddr or
reserved_gpa_bits (though auditing vmx_vcpu_create() and svm_vcpu_create()
isn't exactly easy).

Link: https://lore.kernel.org/r/20241128013424.4096668-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c