diff options
author | Xiaoyao Li <xiaoyao.li@intel.com> | 2025-05-08 10:59:57 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-28 19:35:55 +0200 |
commit | e3d1a4a6d1d61cf5fbd0e4b389cfb3976093739f (patch) | |
tree | d08890188a15312a8f8f49d3ebf9bdb38ee1451e /python | |
parent | adf25ad70f2f989e63c2cd3e9de4e38152d05e84 (diff) | |
download | qemu-e3d1a4a6d1d61cf5fbd0e4b389cfb3976093739f.zip qemu-e3d1a4a6d1d61cf5fbd0e4b389cfb3976093739f.tar.gz qemu-e3d1a4a6d1d61cf5fbd0e4b389cfb3976093739f.tar.bz2 |
i386/tdx: Fetch and validate CPUID of TD guest
Use KVM_TDX_GET_CPUID to get the CPUIDs that are managed and enfored
by TDX module for TD guest. Check QEMU's configuration against the
fetched data.
Print wanring message when 1. a feature is not supported but requested
by QEMU or 2. QEMU doesn't want to expose a feature while it is enforced
enabled.
- If cpu->enforced_cpuid is not set, prints the warning message of both
1) and 2) and tweak QEMU's configuration.
- If cpu->enforced_cpuid is set, quit if any case of 1) or 2).
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20250508150002.689633-52-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions