x86/CPUID: also check leaf 7 max subleaf to be compatible

Just like is done for basic and extended major leaves.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2020-11-10 14:40:09 +01:00
1 parent f5cfa09856
commit e6e85b662b
1 file changed
+3
+3
View File
@@ -18,6 +18,9 @@ int x86_cpu_policies_are_compatible(const struct cpu_policy *host,
if ( guest->cpuid->basic.max_leaf > host->cpuid->basic.max_leaf )
FAIL_CPUID(0, NA);
if ( guest->cpuid->feat.max_subleaf > host->cpuid->feat.max_subleaf )
FAIL_CPUID(7, 0);
if ( guest->cpuid->extd.max_leaf > host->cpuid->extd.max_leaf )
FAIL_CPUID(0x80000000, NA);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.