From 9f2ce634148d0c54e2aec149bbd6b36da0456649 Mon Sep 17 00:00:00 2001 From: Luwei Kang Date: Mon, 11 Mar 2019 16:39:51 -0400 Subject: [PATCH] i386: extended the cpuid_level when Intel PT is enabled Intel Processor Trace required CPUID[0x14] but the cpuid_level have no change when create a kvm guest with e.g. "-cpu qemu64,+intel-pt Backports relevant bits of commit f24c3a79a415042f6dc195f029a2ba7247d14cac from qemu --- qemu/target/i386/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu/target/i386/cpu.h b/qemu/target/i386/cpu.h index 721b4fbd..3678be06 100644 --- a/qemu/target/i386/cpu.h +++ b/qemu/target/i386/cpu.h @@ -1368,6 +1368,9 @@ struct X86CPU { /* Enable auto level-increase for all CPUID leaves */ bool full_cpuid_auto_level; + /* Enable auto level-increase for Intel Processor Trace leave */ + bool intel_pt_auto_level; + /* if true fill the top bits of the MTRR_PHYSMASKn variable range */ bool fill_mtrr_mask;