CPUID.07H:EBX.intel-pt not supported warning info shown in terminal when start guest with -cpu qemu64,+intel-pt
Host environment
- Operating system: CentOS stream 9
- OS/kernel version: 6.7 rc1
- Architecture: x86
- QEMU flavor: qemu-system-x86_64
- QEMU version: 8.1.92
- QEMU command line: qemu-system-x86_64 -accel kvm -m 4096 -smp 4 -drive file=file,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0,bootindex=0 -cpu host,+intel-pt,min-level=0x14
Emulated/Virtualized environment
- Operating system: CentOS stream 9
- OS/kernel version: 6.7 rc1
- Architecture: x86
Description of problem
When launch guest with qemu-system-x86_64 with parameter -cpu host,+intel-pt, it will show warning info in terminal : qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25] 'intel_pt' can not be found in guest's CPU flag. While host already support intel_pt.
Steps to reproduce
- Run the above QEMU command.
Additional information
This issue was observed with kernel 5.13
qemu-system-x86_64 -accel kvm -m 4096 -smp 4 -cpu host,+intel-pt,min-level=0x14 qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]