diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-08 11:10:54 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-10 15:45:14 +0200 |
commit | fe01af5d47d4cf7fdf90c54d43f784e5068c8d72 (patch) | |
tree | 2b4d09d4cb0dfdc4ae25bcc32580c8632c5fc82b /target | |
parent | 3fabbe0b7d458d6380f4b3246b8b32400f6bd1d9 (diff) | |
download | qemu-fe01af5d47d4cf7fdf90c54d43f784e5068c8d72.zip qemu-fe01af5d47d4cf7fdf90c54d43f784e5068c8d72.tar.gz qemu-fe01af5d47d4cf7fdf90c54d43f784e5068c8d72.tar.bz2 |
target/i386: fix feature dependency for WAITPKG
The VMX feature bit depends on general availability of WAITPKG,
not the other way round.
Fixes: 33cc88261c3 ("target/i386: add support for VMX_SECONDARY_EXEC_ENABLE_USER_WAIT_PAUSE", 2023-08-28)
Cc: qemu-stable@nongnu.org
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/i386/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 79372de..cfe7c92 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1551,8 +1551,8 @@ static FeatureDep feature_dependencies[] = { .to = { FEAT_SVM, ~0ull }, }, { - .from = { FEAT_VMX_SECONDARY_CTLS, VMX_SECONDARY_EXEC_ENABLE_USER_WAIT_PAUSE }, - .to = { FEAT_7_0_ECX, CPUID_7_0_ECX_WAITPKG }, + .from = { FEAT_7_0_ECX, CPUID_7_0_ECX_WAITPKG }, + .to = { FEAT_VMX_SECONDARY_CTLS, VMX_SECONDARY_EXEC_ENABLE_USER_WAIT_PAUSE }, }, }; |