]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386/SEV: implement mask_cpuid_features
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Jul 2024 09:16:56 +0000 (11:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2024 09:56:20 +0000 (11:56 +0200)
commit188569c10d5dc6996bde90ce25645083e9661ecb
treeac8de7d3d07051aca0616305ae5f32390e20133d
parentc28d8b097f6da0389d0e915e26ab210aaac38ba0
target/i386/SEV: implement mask_cpuid_features

Drop features that are listed as "BitMask" in the PPR and currently
not supported by AMD processors.  The only ones that may become useful
in the future are TSC deadline timer and x2APIC, everything else is
not needed for SEV-SNP guests (e.g. VIRT_SSBD) or would require
processor support (e.g. TSC_ADJUST).

This allows running SEV-SNP guests with "-cpu host".

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h
target/i386/sev.c