From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Roth Subject: Re: virtagent for qemu-kvm ? Date: Tue, 26 Jul 2011 09:10:01 -0500 Message-ID: <4E2ECAB9.6070905@linux.vnet.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Prateek Sharma To: Stefan Hajnoczi Return-path: Received: from e35.co.us.ibm.com ([32.97.110.153]:35973 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342Ab1GZOKL (ORCPT ); Tue, 26 Jul 2011 10:10:11 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e35.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p6QDp59O014653 for ; Tue, 26 Jul 2011 07:51:05 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id p6QEA7ve097662 for ; Tue, 26 Jul 2011 08:10:07 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6Q8A4R5024668 for ; Tue, 26 Jul 2011 02:10:05 -0600 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 07/26/2011 03:24 AM, Stefan Hajnoczi wrote: > On Tue, Jul 26, 2011 at 6:58 AM, Prateek Sharma wrote: >> On Tue, 26 Jul 2011, Stefan Hajnoczi wrote: >> >>> On Tue, Jul 26, 2011 at 6:05 AM, Prateek Sharma >>> wrote: >>>> >>>> Hi all, >>>> Is there any equivalent of qemu's virtagent in qemu-kvm? >>>> [http://lists.gnu.org/archive/html/qemu-devel/2011-01/msg02149.html] . >>>> In particular , i want to share pages between KVM guests and the host . >>>> Is >>>> there an appropriate mechanism for this in existence which i could use ? >>>> Another nice feature virtagent provides is the ability to see guest dmesg >>>> output in the host... >>> >>> virtagent doesn't share pages between guest and host AFAIK. >>> >>> Have you looked at hw/ivshmem.c? >>> >>> Most of the time you don't need to actually share pages between guest >>> and host. Use existing mechanisms like networking or serial to >>> communicate instead. >>> >>> Stefan >>> >> >> Thanks for the quick response! >> >> I was tempted by virtagent because it provides dmesg output directly, >> something which is exactly what i need. >> >> Anyway, looks like i'll need to fallback to serial/networking, as you >> suggested. >> >> On a related note, is porting virtagent to qemu-kvm >> possible/useful/in-the-pipeline ? > > I expect qemu-ga will be merged into qemu-kvm.git when they merge from > qemu.git again soon. > > Mike: I don't see a dmesg command in the guest schema in qemu.git. Is > there a recommended way of getting dmesg from the host (maybe read > file /var/log/messages)? > Yup, the guest-file-read RPC to access /var/log/messages is the only means in the current version. There was a dmesg RPC in earlier prototypes but it was removed in favor of lower-level mechanisms. > Stefan