how to track cpu's instruction access in qemu?

2021-02-08 Thread ckim
Hello, If I want to see cpu's instruction access (read virtual address and the read instruction data), where should I look in the qemu code? I want to check if the cpu is following the executable I provided with -kernel option. Can I use "-trace" option for this? If possible, just a simple instr

aarch64: Transparently adjusting the System Counter to account for stolen time (kvm-steal-time)

2021-02-08 Thread Jesus Sanchez-Palencia
Hi there, Support for kvm-steal-time was added last year to QEMU 5.2, and my understanding from it is that it exposes a paravirtualized device to guest OS so they can read from a memory-mapped register how many nanoseconds have been "stolen" by the hypervisor when it was executing host threads oth

Re: how to track cpu's instruction access in qemu?

2021-02-08 Thread Berto Furth
I'm afraid I don't know the precise answer to your question but have you considered using gdb to remotely debug the guest in QEMU to accomplish this? With gdb running remotely you can step though assembly instructions being executed by the guest one at a time and keep tabs on registers and so fo