Re: Using perf to access hardware events in pre-launched VM
toggle quoted messageShow quoted text
IT WORKS! I set the scenario as you said and now I can read the cache events.
Thank you so much for the help.
Only one small note: when I use the GUEST_FLAG_LAPIC_PASSTHROUGH flag, the terminal of the VM (minicom) becomes unresponsive. When I start the VM, I see some of the kernel messages: it displays only the ones with the time (like [ 1.299022] Run /init as init process) and none with the "ok" (like [ OK ] Started WPA supplicant.). I cannot write or interact in any way with the shell.
It seems that, for some reason, it no longer shows the stdout and doesn't get the stdin.
It's not a real problem because the kernel starts correctly and I connect to the machine via SSH, still it's strange because it happens only with that flag.
Anyway, thanks again for your help.
On Wed, 30 Mar 2022 at 02:40, Minggui Cao <minggui.cao@...> wrote: