From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] KVM: x86: Implement PCID/INVPCID for guests with EPT Date: Thu, 10 May 2012 14:49:14 +0300 Message-ID: <4FABAB3A.8000000@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "'kvm@vger.kernel.org'" To: "Mao, Junjie" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:5872 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583Ab2EJLtS (ORCPT ); Thu, 10 May 2012 07:49:18 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 05/10/2012 03:32 AM, Mao, Junjie wrote: > This patch handles PCID/INVPCID for guests. > > Process-context identifiers (PCIDs) are a facility by which a logical processor may cache information for multiple linear-address spaces so that the processor may retain cached information when software switches to a different linear-address space. Refer to section 4.10.1 in IA32 Intel Software Developer's Manual Volume 3A for details. > > For guests with EPT, the PCID feature is enabled and INVPCID behaves as running natively. > For guests without EPT, the PCID feature is disabled and INVPCID triggers #UD. > btw, please post a unit test for basic functionality - enabling cr4.pcide etc. -- error compiling committee.c: too many arguments to function