Eduardo Habkost
730319aef0
i386: Mask SVM features if nested SVM is disabled
...
QEMU incorrectly validates FEAT_SVM feature flags against
GET_SUPPORTED_CPUID even if SVM features are being masked out by
cpu_x86_cpuid(). This can make QEMU print warnings on most AMD
CPU models, even when SVM nesting is disabled (which is the
default).
This bug was never detected before because of a Linux KVM bug:
until Linux v5.6, KVM was not filtering out SVM features in
GET_SUPPORTED_CPUID when nested was disabled. This KVM bug was
fixed in Linux v5.7-rc1, on Linux commit a50718cc3f43 ("KVM:
nSVM: Expose SVM features to L1 iff nested is enabled").
Fix the problem by adding a CPUID_EXT3_SVM dependency to all
FEAT_SVM feature flags in the feature_dependencies table.
Reported-by: Yanan Fu <yfu@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Message-Id: <20200623230116.277409-1-ehabkost@redhat.com >
[Fix testcase. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-06-26 09:39:40 -04:00
..
2020-06-15 18:26:46 +02:00
2020-06-26 06:45:30 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-06-23 11:39:47 +01:00
2020-06-24 17:18:28 -04:00
2020-06-24 17:18:28 -04:00
2020-02-04 09:00:57 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-02-03 11:33:11 +11:00
2020-02-02 14:07:57 +11:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-04-11 08:49:11 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-06-15 18:26:46 +02:00
2020-01-12 11:42:41 +01:00
2020-05-26 13:20:48 +02:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-03-17 10:23:14 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-27 17:07:31 -05:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-02-22 08:26:47 +00:00
2020-02-22 08:26:47 +00:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-06-10 12:10:45 -04:00
2020-06-16 14:49:05 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-05-27 07:45:25 +02:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-04-14 10:35:44 -04:00
2020-01-12 11:42:41 +01:00
2020-02-22 08:26:48 +00:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-02-03 11:33:11 +11:00
2020-01-12 11:42:41 +01:00
2020-02-03 11:33:11 +11:00
2020-01-22 00:23:07 -05:00
2020-01-12 11:42:41 +01:00
2020-02-17 13:53:47 +01:00
2020-04-11 08:49:11 -04:00
2020-06-15 18:26:46 +02:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-06-01 18:44:27 +01:00
2020-01-12 11:42:41 +01:00
2020-06-26 09:39:40 -04:00
2020-01-12 11:42:41 +01:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-06-19 07:25:55 -04:00
2020-06-09 14:18:04 -04:00
2020-03-05 12:18:33 -05:00
2020-03-05 12:18:33 -05:00
2020-03-05 12:18:47 -05:00
2020-03-05 12:18:47 -05:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-03-31 21:14:35 +08:00
2020-06-26 06:45:29 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-16 17:01:25 +01:00
2020-02-08 09:29:04 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00