public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* virtagent for qemu-kvm ?
@ 2011-07-26  5:05 Prateek Sharma
  2011-07-26  5:51 ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: Prateek Sharma @ 2011-07-26  5:05 UTC (permalink / raw)
  To: kvm

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...

Thanks,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtagent for qemu-kvm ?
  2011-07-26  5:05 virtagent for qemu-kvm ? Prateek Sharma
@ 2011-07-26  5:51 ` Stefan Hajnoczi
  2011-07-26  5:58   ` Prateek Sharma
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Hajnoczi @ 2011-07-26  5:51 UTC (permalink / raw)
  To: Prateek Sharma; +Cc: kvm

On Tue, Jul 26, 2011 at 6:05 AM, Prateek Sharma <prateeks@cse.iitb.ac.in> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtagent for qemu-kvm ?
  2011-07-26  5:51 ` Stefan Hajnoczi
@ 2011-07-26  5:58   ` Prateek Sharma
  2011-07-26  8:24     ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: Prateek Sharma @ 2011-07-26  5:58 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: kvm

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1134 bytes --]

On Tue, 26 Jul 2011, Stefan Hajnoczi wrote:

> On Tue, Jul 26, 2011 at 6:05 AM, Prateek Sharma <prateeks@cse.iitb.ac.in> 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 ?

--Prateek

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtagent for qemu-kvm ?
  2011-07-26  5:58   ` Prateek Sharma
@ 2011-07-26  8:24     ` Stefan Hajnoczi
  2011-07-26 14:10       ` Michael Roth
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Hajnoczi @ 2011-07-26  8:24 UTC (permalink / raw)
  To: Michael Roth; +Cc: kvm, Prateek Sharma

On Tue, Jul 26, 2011 at 6:58 AM, Prateek Sharma <prateeks@cse.iitb.ac.in> wrote:
> On Tue, 26 Jul 2011, Stefan Hajnoczi wrote:
>
>> On Tue, Jul 26, 2011 at 6:05 AM, Prateek Sharma <prateeks@cse.iitb.ac.in>
>> 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)?

Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: virtagent for qemu-kvm ?
  2011-07-26  8:24     ` Stefan Hajnoczi
@ 2011-07-26 14:10       ` Michael Roth
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Roth @ 2011-07-26 14:10 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: kvm, Prateek Sharma

On 07/26/2011 03:24 AM, Stefan Hajnoczi wrote:
> On Tue, Jul 26, 2011 at 6:58 AM, Prateek Sharma<prateeks@cse.iitb.ac.in>  wrote:
>> On Tue, 26 Jul 2011, Stefan Hajnoczi wrote:
>>
>>> On Tue, Jul 26, 2011 at 6:05 AM, Prateek Sharma<prateeks@cse.iitb.ac.in>
>>> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-26 14:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26  5:05 virtagent for qemu-kvm ? Prateek Sharma
2011-07-26  5:51 ` Stefan Hajnoczi
2011-07-26  5:58   ` Prateek Sharma
2011-07-26  8:24     ` Stefan Hajnoczi
2011-07-26 14:10       ` Michael Roth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox