From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51136 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLYIq-0005Qy-PE for qemu-devel@nongnu.org; Thu, 25 Nov 2010 04:39:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLYIp-0003PB-OJ for qemu-devel@nongnu.org; Thu, 25 Nov 2010 04:39:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLYIp-0003OA-HS for qemu-devel@nongnu.org; Thu, 25 Nov 2010 04:39:43 -0500 Date: Thu, 25 Nov 2010 15:09:34 +0530 From: Amit Shah Message-ID: <20101125093934.GD6889@amit-x200.redhat.com> References: <1289439450-23556-1-git-send-email-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289439450-23556-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] Re: [RFC][PATCH v3 00/11] virtagent: host/guest RPC communication agent List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: aliguori@linux.vnet.ibm.com, ryanh@us.ibm.com, agl@linux.vnet.ibm.com, qemu-devel@nongnu.org, abeekhof@redhat.com Hi, On (Wed) Nov 10 2010 [19:37:19], Michael Roth wrote: > EXAMPLE USAGE: > > The commandline options are a little convoluted right now; this will addressed in later revisions. > > - Configure guest agent to talk to host via virtio-serial > # start guest with virtio-serial/virtproxy/virtagent. for example (RHEL6rc1): > qemu \ > -chardev virtproxy,id=test0,virtagent=on \ > -device virtio-serial \ > -device virtserialport,chardev=test0,name=virtagent0 \ > -monitor stdio > ... > # in the guest: > ./qemu-vp -c virtserial-open:/dev/virtio-ports/virtagent0:- -g > ... > # monitor commands > (qemu) agent_viewdmesg > [139311.710326] wlan0: deauthenticating from 00:30:bd:f7:12:d5 by local choice (reason=3) > [139323.469857] wlan0: deauthenticating from 00:21:29:cd:41:ee by local choice (reason=3) > ... > [257683.375646] wlan0: authenticated > [257683.375684] wlan0: associate with AP 00:30:bd:f7:12:d5 (try 1) > [257683.377932] wlan0: RX AssocResp from 00:30:bd:f7:12:d5 (capab=0x411 status=0 aid=4) > [257683.377940] wlan0: associated > > (qemu) agent_viewfile /proc/meminfo It would be better to have a command and sub-commands rather than different commands for viewing different kinds of files: (qemu) agent view dmesg (qemu) agent view /proc/meminfo Amit