Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
kgdb00
V2EX  ›  Linux

qemu 有没有办法 dump guest 的每个 vcpu 寄存器的值?

  •  
  •   kgdb00 · Jul 7, 2022 · 2554 views
    This topic created in 1432 days ago, the information mentioned may be changed or developed.
    kvmtool 可以,qemu 还不知道怎么搞。
    4 replies    2022-07-07 16:53:57 +08:00
    NealLason
        1
    NealLason  
       Jul 7, 2022   ❤️ 1
    gdb attach 进去,执行
    monitor info registers -a
    kgdb00
        2
    kgdb00  
    OP
       Jul 7, 2022
    @NealLason 多谢,如果不加 -a 默认是 cpu0 吧?能不能单独列出指定的某一个 cpu 的寄存器信息?
    NealLason
        3
    NealLason  
       Jul 7, 2022   ❤️ 1
    cpu index -- set the default CPU
    > (gdb) monitor cpu 0
    > (gdb) monitor info registers
    kgdb00
        4
    kgdb00  
    OP
       Jul 7, 2022
    @NealLason 感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   994 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:28 · PVG 06:28 · LAX 15:28 · JFK 18:28
    ♥ Do have faith in what you're doing.