Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

Intel Processor Trace

littleQ
Beginner
685 Views

I am trying to use intel-PT in vm.

When I run following command in host, the result is as follows:

echo -n "Intel PT support: "; if $(grep -q "intel_pt" /proc/cpuinfo); then echo ""; else echo ""; fi
Intel PT support: 

 

And when I trying to enable intel-pt in qemu-kvm vm, I got some error:

~/ccc-vm$ cat Makefile 
QEMU ?= qemu-system-x86_64
PORT ?= 2333

qemu_image := ubuntu-22.04-server-cloudimg-amd64.img
qemu_args := \
  -smp 16 -m 80G -accel kvm -nographic \
  -machine q35,kernel_irqchip=split \
  -cpu host,intel-pt,-kvm-asyncpf,-kvm-pv-eoi,-kvm-pv-ipi,-kvm-pv-sched-yield,-kvm-pv-unhalt,-kvm-steal-time,-kvmclock \
  -drive file=$(qemu_image) \
  -net user,id=net,hostfwd=tcp::$(PORT)-:22 -net nic,model=e1000e \
  -serial mon:stdio \

$(qemu_image):
        wget https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img

.ONESHELL:
image: $(qemu_image)
        cat >user-data <<EOF
        #cloud-config
        password: guest
        chpasswd: { expire: False }
        ssh_pwauth: True
        EOF
        cloud-localds user-data.img user-data
        qemu-img resize $(qemu_image) +64G
        sudo $(QEMU) $(qemu_args) -drive file=user-data.img,format=raw

qemu: $(qemu_image)
        sudo $(QEMU) $(qemu_args) 

~/ccc-vm$ make qemu
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]

 what should I do?

0 Kudos
0 Replies
Reply