From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvl4A-0005uG-2B for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:56:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zvl47-0006XS-7A for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:56:53 -0500 Received: from mga03.intel.com ([134.134.136.65]:24372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvl47-0006X2-1b for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:56:51 -0500 From: Huaitong Han Date: Mon, 9 Nov 2015 19:55:31 +0800 Message-Id: <1447070134-4324-1-git-send-email-huaitong.han@intel.com> Subject: [Qemu-devel] [PATCH 0/3] qemu, pkeys: add memory protection-key support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, rth@twiddle.net, afaerber@suse.de, ehabkost@redhat.com Cc: Huaitong Han , qemu-devel@nongnu.org, kvm@vger.kernel.org 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): qemu, pkeys: add pkeys support for qemu cpuid handling qemu, pkeys: add pkeys support for qemu xsave state handling qemu, pkeys: add pkeys support for qemu 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