]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/kvm: Move architectural CPUID leaf generation to separate helper
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 29 Feb 2024 06:36:43 +0000 (01:36 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Apr 2024 15:35:13 +0000 (17:35 +0200)
commita5acf4f26c208a05d05ef1bde65553ce2ab5e5d0
treebe0c754df9e082b7881cd3ad72174064c2722acb
parent0d08c423688edcca857f88dab20f1fc56de2b281
i386/kvm: Move architectural CPUID leaf generation to separate helper

Move the architectural (for lack of a better term) CPUID leaf generation
to a separate helper so that the generation code can be reused by TDX,
which needs to generate a canonical VM-scoped configuration.

For now this is just a cleanup, so keep the function static.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-ID: <20240229063726.610065-23-xiaoyao.li@intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c