- Host: SLES 16.1 (ppc64le, Power11)
- Kernel: 6.12.0-160099.38-default
- QEMU: built from latest master (commit b3ea565608)
- Guest: avocado-vt-vm1 (ppc64 KVM guest)
—logs—
TB offset visible in QEMU monitor:
# virsh qemu-monitor-command avocado-vt-vm1 --hmp "info registers" | grep
TB_OFFSET
TB 00000000 00000000 DECR 0 TB_OFFSET -916489431416832
On Host :
qemu # trace-cmd record -e kvm_hv:kvm_guest_enter -e kvm_hv:kvm_guest_exit
Hit Ctrl^C to stop recording
^CCPU0 data recorded at offset=0x140000
2728 bytes in size (65536 uncompressed)
CPU1 data recorded at offset=0x150000
187 bytes in size (65536 uncompressed)
CPU2 data recorded at offset=0x160000
7084 bytes in size (65536 uncompressed)
CPU3 data recorded at offset=0x170000
0 bytes in size (0 uncompressed)
.
.
.
CPU14 data recorded at offset=0x1e0000
0 bytes in size (0 uncompressed)
CPU15 data recorded at offset=0x1e0000
42586 bytes in size (524288 uncompressed)
On Guest :
# trace-cmd record -e powerpc:hcall_entry -e powerpc:hcall_exit -C ppc-tb
--ts-offset 916489431416832 -o trace_guest.dat
Hit Ctrl^C to stop recording
^CCPU0 data recorded at offset=0x130000
186 bytes in size (65536 uncompressed)
CPU1 data recorded at offset=0x140000
522 bytes in size (65536 uncompressed)
CPU2 data recorded at offset=0x150000
95 bytes in size (65536 uncompressed)
CPU3 data recorded at offset=0x160000
111 bytes in size (65536 uncompressed)
qemu # head -10 /root/combined_log
trace_host.dat: cpus=16
trace_guest.dat: cpus=4
trace_host.dat: CPU 1/KVM-596247 [000] d..1.916674455351586:
kvm_guest_enter: VCPU 1: pc=0xc0000000001b60e8 pexcp=0x8000 ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] .....916674455369430:
kvm_guest_exit: VCPU 1: trap=H_DATA_STORAGE pc=0xc008000001c6070c
msr=0x800000000280a033, ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] d..1.916674455373152:
kvm_guest_enter: VCPU 1: pc=0xc008000001c60710 pexcp=0x0 ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] .....916674455378631:
kvm_guest_exit: VCPU 1: trap=H_DATA_STORAGE pc=0xc008000001c6070c
msr=0x800000000280a033, ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] d..1.916674455380902:
kvm_guest_enter: VCPU 1: pc=0xc008000001c60710 pexcp=0x0 ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] .....916674455386279:
kvm_guest_exit: VCPU 1: trap=H_DATA_STORAGE pc=0xc008000001c6070c
msr=0x800000000280a033, ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] d..1.916674455388450:
kvm_guest_enter: VCPU 1: pc=0xc008000001c60710 pexcp=0x0 ceded=0
trace_host.dat: CPU 1/KVM-596247 [000] .....916674455393602:
kvm_guest_exit: VCPU 1: trap=H_DATA_STORAGE pc=0xc008000001c60f4c
msr=0x800000000280a033, ceded=0
Tested-by: Sneh Shikha Yadav <[email protected]>