[libvirt] [PATCH] cpu: Add support for pku and ospke Intel features for Memory Protection Keys

qemu commit: f74eefe0 https://lwn.net/Articles/667156/ Signed-off-by: Lin Ma <lma@suse.com> --- src/cpu/cpu_map.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml index 6da8321..dca5720 100644 --- a/src/cpu/cpu_map.xml +++ b/src/cpu/cpu_map.xml @@ -255,6 +255,13 @@ <cpuid eax_in='0x07' ebx='0x10000000'/> </feature> + <feature name='pku'> + <cpuid eax_in='0x07' ecx='0x00000008'/> + </feature> + <feature name='ospke'> + <cpuid eax_in='0x07' ecx='0x00000010'/> + </feature> + <!-- Processor Extended State Enumeration sub leaf 1 --> <feature name='xsaveopt'> <cpuid eax_in='0x0d' ecx_in='0x01' eax='0x00000001'/> -- 2.9.2

On Fri, Nov 25, 2016 at 16:44:30 +0800, Lin Ma wrote:
qemu commit: f74eefe0 https://lwn.net/Articles/667156/
Signed-off-by: Lin Ma <lma@suse.com> --- src/cpu/cpu_map.xml | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml index 6da8321..dca5720 100644 --- a/src/cpu/cpu_map.xml +++ b/src/cpu/cpu_map.xml @@ -255,6 +255,13 @@ <cpuid eax_in='0x07' ebx='0x10000000'/> </feature>
+ <feature name='pku'> + <cpuid eax_in='0x07' ecx='0x00000008'/> + </feature> + <feature name='ospke'> + <cpuid eax_in='0x07' ecx='0x00000010'/> + </feature> +
This patch needs to be rebased on top of your earlier patch adding AVX512 features. So I did that and made sure the new feature are placed correctly. ACK and pushed. Jirka
participants (2)
-
Jiri Denemark
-
Lin Ma