mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00

For TDX guest, the phys_bits is not configurable and can only be host/native value. Validate phys_bits inside tdx_check_features(). Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250508150002.689633-55-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
20 lines
550 B
C
20 lines
550 B
C
/*
|
|
* x86 host CPU type initialization and host CPU functions
|
|
*
|
|
* Copyright 2021 SUSE LLC
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef HOST_CPU_H
|
|
#define HOST_CPU_H
|
|
|
|
uint32_t host_cpu_phys_bits(void);
|
|
void host_cpu_instance_init(X86CPU *cpu);
|
|
void host_cpu_max_instance_init(X86CPU *cpu);
|
|
bool host_cpu_realizefn(CPUState *cs, Error **errp);
|
|
|
|
void host_cpu_vendor_fms(char *vendor, int *family, int *model, int *stepping);
|
|
|
|
#endif /* HOST_CPU_H */
|