kvm: x86: Add "significant index" flag to a few CPUID leaves
PATCH 1/1 kvm: x86: Add "significant index" flag to a few CPUID leaves
According to the Intel SDM, volume 2, "CPUID," the index is significant (or partially significant) for CPUID leaves 0FH, 10H, 12H, 17H, 18H, and 1FH.
Add the corresponding flag to these CPUID leaves in do_host_cpuid().
--- arch/x86/kvm/cpuid.c | 6 ++++++ 1 file changed, 6 insertions(+)
arch/x86/kvm/cpuid.c +6 -0
@@ -304,7 +304,13 @@ static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function,case 7 :case 0xb :case 0xd : +case 0xf : +case 0x10 : +case 0x12 :case 0x14 : +case 0x17 : +case 0x18 : +case 0x1f :case 0x8000001d : entry->flags |=KVM_CPUID_FLAG_SIGNIFCANT_INDEX ;break ;
Signature · 1 line
2.23.0.237.gc6a4ce50a0-goog
Quoted 22 lines · Jim Mattson
According to the Intel SDM, volume 2, "CPUID," the index is significant (or partially significant) for CPUID leaves 0FH, 10H, 12H, 17H, 18H, and 1FH.
Add the corresponding flag to these CPUID leaves in
do_host_cpuid().Signed-off-by Jim Mattson <[email protected]>Reviewed-by Peter Shier <[email protected]>Reviewed-by Steve Rutherford <[email protected]>Fixes a87f2d3a6eadab ("KVM: x86: Add Intel CPUID.1F cpuid emulation support")--- arch/x86/kvm/cpuid.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/x86/kvm/cpuid.c +0
-0@@ -304,7 +304,13 @@ static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function,case 7 :case 0xb :case 0xd :
arch/x86/kvm/cpuid.c static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function, · line 316
Quoted 10 lines
arch/x86/kvm/cpuid.c +6
-0+case 0xf : +case 0x10 : +case 0x12 :case 0x14 : +case 0x17 : +case 0x18 : +case 0x1f :case 0x8000001d : entry->flags |=KVM_CPUID_FLAG_SIGNIFCANT_INDEX ;break ;
Quoted 30 lines · Krish Sadhukhan
Quoted 27 lines · Jim Mattson
According to the Intel SDM, volume 2, "CPUID," the index is significant (or partially significant) for CPUID leaves 0FH, 10H, 12H, 17H, 18H, and 1FH.
Add the corresponding flag to these CPUID leaves in
do_host_cpuid().Signed-off-by Jim Mattson <[email protected]>Reviewed-by Peter Shier <[email protected]>Reviewed-by Steve Rutherford <[email protected]>Fixes a87f2d3a6eadab ("KVM: x86: Add Intel CPUID.1F cpuid emulation support")--- arch/x86/kvm/cpuid.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/x86/kvm/cpuid.c +4
-0@@ -304,7 +304,13 @@ static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function,case 7 :case 0xb :case 0xd : +case 0xf : +case 0x10 : +case 0x12 :case 0x14 : +case 0x17 :
Quoted 8 lines
arch/x86/kvm/cpuid.c static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function, · line 316
Quoted 5 lines
arch/x86/kvm/cpuid.c +2
-0+case 0x18 : +case 0x1f :case 0x8000001d : entry->flags |=KVM_CPUID_FLAG_SIGNIFCANT_INDEX ;break ;Reviewed-by Krish Sadhukhan <[email protected]>
Ping.
Quoted 42 lines · Jim Mattson
Quoted 30 lines · Krish Sadhukhan
Quoted 27 lines · Jim Mattson
According to the Intel SDM, volume 2, "CPUID," the index is significant (or partially significant) for CPUID leaves 0FH, 10H, 12H, 17H, 18H, and 1FH.
Add the corresponding flag to these CPUID leaves in
do_host_cpuid().Signed-off-by Jim Mattson <[email protected]>Reviewed-by Peter Shier <[email protected]>Reviewed-by Steve Rutherford <[email protected]>Fixes a87f2d3a6eadab ("KVM: x86: Add Intel CPUID.1F cpuid emulation support")--- arch/x86/kvm/cpuid.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/x86/kvm/cpuid.c +4
-0@@ -304,7 +304,13 @@ static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function,case 7 :case 0xb :case 0xd : +case 0xf : +case 0x10 : +case 0x12 :case 0x14 : +case 0x17 :Quoted 8 lines
arch/x86/kvm/cpuid.c static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function, · line 316
Quoted 5 lines
arch/x86/kvm/cpuid.c +2
-0+case 0x18 : +case 0x1f :case 0x8000001d : entry->flags |=KVM_CPUID_FLAG_SIGNIFCANT_INDEX ;break ;Reviewed-by Krish Sadhukhan <[email protected]>
Quoted 2 lines
Ping.
Queued, thanks.
Paolo
Quoted 23 lines · Jim Mattson
According to the Intel SDM, volume 2, "CPUID," the index is significant (or partially significant) for CPUID leaves 0FH, 10H, 12H, 17H, 18H, and 1FH.
Add the corresponding flag to these CPUID leaves in
do_host_cpuid().Signed-off-by Jim Mattson <[email protected]>Reviewed-by Peter Shier <[email protected]>Reviewed-by Steve Rutherford <[email protected]>Fixes a87f2d3a6eadab ("KVM: x86: Add Intel CPUID.1F cpuid emulation support")--- arch/x86/kvm/cpuid.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/x86/kvm/cpuid.c +0
-0@@ -304,7 +304,13 @@ static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function,case 7 :case 0xb :case 0xd :
arch/x86/kvm/cpuid.c static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function, · line 316
Quoted 10 lines
arch/x86/kvm/cpuid.c +6
-0+case 0xf : +case 0x10 : +case 0x12 :case 0x14 : +case 0x17 : +case 0x18 : +case 0x1f :case 0x8000001d : entry->flags |=KVM_CPUID_FLAG_SIGNIFCANT_INDEX ;break ;
Queued, thanks.
Paolo