diff options
author | Luwei Kang <luwei.kang@intel.com> | 2020-12-02 18:10:42 +0800 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-10 17:33:23 -0500 |
commit | d1615ea575b08fc96aeeb2630c40c5e51364b95c (patch) | |
tree | 5e5a4aa377ac64d3701e9764db78d8c0b5057ed4 /target/i386/cpu.h | |
parent | c7f7e6970d3b74c1454cafea4918187e06c473eb (diff) | |
download | qemu-d1615ea575b08fc96aeeb2630c40c5e51364b95c.zip qemu-d1615ea575b08fc96aeeb2630c40c5e51364b95c.tar.gz qemu-d1615ea575b08fc96aeeb2630c40c5e51364b95c.tar.bz2 |
i386/cpu: Make the Intel PT LIP feature configurable
The current implementation will disable the guest Intel PT feature
if the Intel PT LIP feature is supported on the host, but the LIP
feature is comming soon(e.g. SnowRidge and later).
This patch will make the guest LIP feature configurable and Intel
PT feature can be enabled in guest when the guest LIP status same
with the host.
Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Message-Id: <20201202101042.11967-1-luwei.kang@intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r-- | target/i386/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 88e8586..c4a49c0 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -541,6 +541,7 @@ typedef enum FeatureWord { FEAT_VMX_EPT_VPID_CAPS, FEAT_VMX_BASIC, FEAT_VMX_VMFUNC, + FEAT_14_0_ECX, FEATURE_WORDS, } FeatureWord; @@ -797,6 +798,9 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS]; /* AVX512 BFloat16 Instruction */ #define CPUID_7_1_EAX_AVX512_BF16 (1U << 5) +/* Packets which contain IP payload have LIP values */ +#define CPUID_14_0_ECX_LIP (1U << 31) + /* CLZERO instruction */ #define CPUID_8000_0008_EBX_CLZERO (1U << 0) /* Always save/restore FP error pointers */ |