All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] target-i386: add memory protection-key support
@ 2015-11-18  2:20 ` Huaitong Han
  0 siblings, 0 replies; 22+ messages in thread
From: Huaitong Han @ 2015-11-18  2:20 UTC (permalink / raw)
  To: pbonzini, rth, afaerber, ehabkost; +Cc: qemu-devel, kvm, Huaitong Han

Changes in v3:
*Fix cpuid_7_0_ecx_feature_name error.

Changes in v2:
*Fix memcpy error for xsave state.
*Fix TCG_7_0_ECX_FEATURES to 0.
*Make subjects more readable.

The protection-key feature provides an additional mechanism by which IA-32e
paging controls access to usermode addresses.

Hardware support for protection keys for user pages is enumerated with CPUID
feature flag CPUID.7.0.ECX[3]:PKU. Software support is CPUID.7.0.ECX[4]:OSPKE
with the setting of CR4.PKE(bit 22).

The PKRU register is XSAVE-managed state CPUID.D.0.EAX[9], the size of XSAVE
state component for PKRU is 8 bytes, the offset is 0xa80.

The specification of Protection Keys can be found at SDM (4.6.2, volume 3)
http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-manual-325462.pdf.

Huaitong Han (3):
  target-i386: add pkeys support for cpuid handling
  target-i386: add pkeys support for xsave state handling
  target-i386: add pkeys support for vm migration

 target-i386/cpu.c     | 23 ++++++++++++++++++++++-
 target-i386/cpu.h     |  7 +++++++
 target-i386/kvm.c     |  3 +++
 target-i386/machine.c | 23 +++++++++++++++++++++++
 4 files changed, 55 insertions(+), 1 deletion(-)

-- 
2.4.3


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-12-04 14:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18  2:20 [PATCH v3 0/3] target-i386: add memory protection-key support Huaitong Han
2015-11-18  2:20 ` [Qemu-devel] " Huaitong Han
2015-11-18  2:20 ` [PATCH v3 1/3] target-i386: add pkeys support for cpuid handling Huaitong Han
2015-11-18  2:20   ` [Qemu-devel] " Huaitong Han
2015-11-18 15:58   ` Eduardo Habkost
2015-11-18 15:58     ` Eduardo Habkost
2015-11-19  6:36     ` Han, Huaitong
2015-11-19  6:36       ` Han, Huaitong
2015-11-19 11:10       ` Paolo Bonzini
2015-11-19 11:10         ` Paolo Bonzini
2015-11-19 14:56         ` Eduardo Habkost
2015-11-19 14:56           ` Eduardo Habkost
2015-11-18  2:20 ` [PATCH v3 2/3] target-i386: add pkeys support for xsave state handling Huaitong Han
2015-11-18  2:20   ` [Qemu-devel] " Huaitong Han
2015-11-18  2:20 ` [PATCH v3 3/3] target-i386: add pkeys support for vm migration Huaitong Han
2015-11-18  2:20   ` [Qemu-devel] " Huaitong Han
2015-11-18 17:51 ` [Qemu-devel] [PATCH v3 0/3] target-i386: add memory protection-key support Eduardo Habkost
2015-11-18 17:51   ` Eduardo Habkost
2015-11-18 21:28   ` Paolo Bonzini
2015-11-18 21:28     ` Paolo Bonzini
2015-12-04 14:57 ` Eduardo Habkost
2015-12-04 14:57   ` Eduardo Habkost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.