All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Is guest agent socket being closed upon reboot?
@ 2012-01-16 13:26 Michal Privoznik
  2012-01-16 15:11 ` Michael Roth
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Privoznik @ 2012-01-16 13:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: mdroth

Hi,

I'd like you to ask if/why is guest agent socked being closed upon guest
reboot. I am using virtserialport to talk to guest agent:

-chardev
socket,id=charchannel0,path=/var/lib/libvirt/qemu/f16x86_64.agent,server,nowait
-device
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0

I would understand if socket accept connection iff GA is up and running.
However, this is not the case. One is perfectly able to connect to GA
socket even without any GA inside guest.

I think that GA socket should be as persistent as monitor. Even despite
fact they address different areas. Application issuing monitor commands
shouldn't be forced to reconnect on every guest reboot, should they?

Or have I misunderstood the concept?

Michal

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

* Re: [Qemu-devel] Is guest agent socket being closed upon reboot?
  2012-01-16 13:26 [Qemu-devel] Is guest agent socket being closed upon reboot? Michal Privoznik
@ 2012-01-16 15:11 ` Michael Roth
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Roth @ 2012-01-16 15:11 UTC (permalink / raw)
  To: Michal Privoznik; +Cc: qemu-devel

On 01/16/2012 07:26 AM, Michal Privoznik wrote:
> Hi,
>
> I'd like you to ask if/why is guest agent socked being closed upon guest
> reboot. I am using virtserialport to talk to guest agent:
>
> -chardev
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/f16x86_64.agent,server,nowait
> -device
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0
>
> I would understand if socket accept connection iff GA is up and running.
> However, this is not the case. One is perfectly able to connect to GA
> socket even without any GA inside guest.
>
> I think that GA socket should be as persistent as monitor. Even despite
> fact they address different areas. Application issuing monitor commands
> shouldn't be forced to reconnect on every guest reboot, should they?
>
> Or have I misunderstood the concept?
>
> Michal
>

Hi Michal,

In my testing this doesn't seem to be the case, the host socket 
connection persists throughout reboots, guest agent restarts, etc.

I'm not sure what would trigger the close either, the 
chr->chr_guest_close/chr->chr_guest_open events do not seem to be 
initialised at any point, which AFAICT are the only things that would 
affect the char frontend/socket connection during reboot.

Can you provide more details on your setup? What version/commit you're 
running and what sequence induces the behavior?

Thanks!

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

* [Qemu-devel] Is guest agent socket being closed upon reboot?
@ 2012-01-16 13:11 Michal Privoznik
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Privoznik @ 2012-01-16 13:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: mdroth

Hi,

I'd like you to ask if/why is guest agent socked being closed upon guest
reboot. I am using virtserialport to talk to guest agent:

-chardev
socket,id=charchannel0,path=/var/lib/libvirt/qemu/f16x86_64.agent,server,nowait
-device
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0

I would understand if socket accept connection iff GA is up and running.
However, this is not the case. One is perfectly able to connect to GA
socket even without any GA inside guest.

I think that GA socket should be as persistent as monitor. Even despite
fact they address different areas. Application issuing monitor commands
shouldn't be forced to reconnect on every guest reboot, should they?

Or have I misunderstood the concept?

Michal

(Please keep me CC'ed as I am not registered to the mailing list)

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

end of thread, other threads:[~2012-01-16 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-16 13:26 [Qemu-devel] Is guest agent socket being closed upon reboot? Michal Privoznik
2012-01-16 15:11 ` Michael Roth
  -- strict thread matches above, loose matches on Subject: below --
2012-01-16 13:11 Michal Privoznik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.