<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>libvirt 3.4.0</div><div>centos 7.4<br></div><div><br></div><div><span style="font-size: 14px;">Hi:<br></span></div><div><span style="font-size: 14px;">    I want usr libvrit create vm to debug linux kernel. Previous , I usr qemu cmd(-gdb tcp::1234) directly. When I search on Internet, I found I can use libvrt xml configure kgdb.</span></div><div><pre><code><span style="font-size: 14px;"><qemu:commandline>
        <qemu:arg value='-gdb'/>
        <qemu:arg value='tcp::1234'/>
  </qemu:commandline><br>But configure xml use kgdb is differnet on kernel boot. use qemu cmd, before I connect kernel use gdb , the kernel still not boot, When I use gdb connect the vm and put continue cmd on gdb, the kernel will start boot. But I usr libvirt xml configure kgdb, the kernel not stop, I want known that have some way I can use libvirt xml configure kgdb let kernel stop boot before I put continue on gdb?<br><br>Thanks</span></code></pre></div></div></div><br><br><span title="neteasefooter"><p> </p></span></div><br><br><span title="neteasefooter"><p> </p></span>