• Mao, Junjie's avatar
    KVM: VMX: Implement PCID/INVPCID for guests with EPT · ad756a16
    Mao, Junjie authored
    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.
    Signed-off-by: default avatarJunjie Mao <junjie.mao@intel.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    ad756a16
cpuid.h 1.8 KB