x86: pkey: introduce write_pkru() for KVM
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Tue, 22 Mar 2016 08:51:17 +0000 (16:51 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 15:21:05 +0000 (16:21 +0100)
commit9e90199c25aec31b4509213881511948f6c763c8
treee2cf6063637ff350c97664d1f1fc4075584b67f4
parent17a511f878505d31f298de443269b3070c134163
x86: pkey: introduce write_pkru() for KVM

KVM will use it to switch pkru between guest and host.

CC: Ingo Molnar <mingo@redhat.com>
CC: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Huaitong Han <huaitong.han@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/special_insns.h