Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Xie__Mengyao
Beginner
417 Views

How to enable MPK in Intel Xeon Gold processors?

I would like to use Intel MPK (memory protection keys) feature.

According to a paper: ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK), I buy a server with Intel Xeon Gold 6142 2.6GHz CPU. But I found there is no PKU feature in my server. (I run cat /proc/cpuinfo | grep pku and found nothing).

So, how to enable MPK in Intel Xeon Gold processors?

20190814221230 (1).jpg

0 Kudos
1 Reply
McCalpinJohn
Black Belt
417 Views

This may depend on your Linux kernel revision.   According to https://kernelnewbies.org/Linux_3.19 initial support was first added in the 3.19 kernel, while https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.9-Mem-Protection-Keys suggests that support is not complete until the 4.9 kernel.

The "cpuid" program available at http://www.etallen.com/cpuid.html does a good job of parsing the output of the CPUID instruction.  On my Xeon Gold 6152, the cpuid program reports that the MPX and PKU features are supported, and the kernel (CentOS 7.6, 3.10.0-957.5.1.el7.x86_64) reports the "mpx" and "pku" extensions have been pack-ported to this kernel.

Reply