From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: qemu-kvm-0.13.0 - winsows 2008 - chkdisk too slow Date: Thu, 6 Jan 2011 11:06:29 +0000 Message-ID: <20110106110629.GF29236@redhat.com> References: <20110106074822.GB17772@pcnci.linuxbox.cz> <4D258690.4070904@redhat.com> <20110106092046.GD17772@pcnci.linuxbox.cz> <4D258B18.5000402@redhat.com> <20110106094240.GE17772@pcnci.linuxbox.cz> <4D259729.2050403@redhat.com> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Nikola Ciprich , KVM list , nikola.ciprich@linuxbox.cz To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:25661 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753104Ab1AFLGg (ORCPT ); Thu, 6 Jan 2011 06:06:36 -0500 Content-Disposition: inline In-Reply-To: <4D259729.2050403@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 06, 2011 at 12:19:21PM +0200, Avi Kivity wrote: > On 01/06/2011 11:42 AM, Nikola Ciprich wrote: > >> - run trace-cmd record -e kvm -b 100000 -P pid1 -P pid2, ctrl-C after a > >seems like it's not possible to specify multiple pids, so > > Did you get 'overrun: something' reports from trace-cmd, where > something != 0? > > If you're not sure, please run the trace again. Also try adding '-r > 10' to the command line. > > >I've run 4 commands in parallel. Also I can't get monitor information > >since vm is started using libvirt, so I've just used all machine's qemu-kvm > >pids.. > > Dan, is there a way to hijack the monitor so we can run some > commands on it? Things like 'info registers' and disassembly. Depends on the libvirt version. For most, you'll need to look for the monitor path in the QEMU argv: -chardev +socket,id=monitor,path=/var/lib/libvirt/qemu/vmwts02.monitor,server,nowait -mon chardev=monitor,mode=readline then, 'service libvirtd stop' and now you can connect to the monitor at that path & run commands you want, and then disconnect and start libvirtd again. If you run any commands that change the VM state, things may well get confused when you start libvirtd again, but if its just 'info registers' etc it should be pretty safe. If you have a new enough libvirt, then you can also send commands directly using 'virsh qemu-monitor-command' (checking whether you need JSON or HMP syntax first - in this case you can see it needs HMP). Regards, Daniel