[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [win-pv-devel] Detecting event channel disconnect



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2015-05-18 16:26, Paul Durrant wrote:
>> -----Original Message----- From: 
>> win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:win-pv-devel- 
>> bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Rafal Wojdyla Sent:
>> 18 May 2015 15:14 To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx Subject: 
>> [win-pv-devel] Detecting event channel disconnect
>> 
> Hello,
> 
> Am I correct in the assumption that currently a Windows event 
> channel peer can't easily detect if the other peer has closed the 
> remote end?
> 
>> Yes, that's correct. There's no interface exposed for that.
> 
> I'm not 100% sure on how the low-level evtchn hypervisor API works 
> in that case but it seems that there's no notification.
> 
> If the above is correct I think adding a EVTCHNOP_status call to 
> xenbus API would allow for easy status querying.
> 
> 
>> Yes, wiring that through the EVTCHN interface - with suitable 
>> abstraction - sounds ok. However, it does beg the question of
>> why the guest needs to know?
> 
>> Paul

That's a good question - in our old vchan implementation the server
used such call to check if the remote domain dies before connecting.
It relied on a quirk in EVTCHNOP_status which may or may not be a bug
(call returns a different error code depending whether the remote
domain doesn't exist or just the port is invalid). Honestly such check
should probably be replaced by a timeout period on our end...

- -- 
RafaÅ WojdyÅa
Qubes Tools for Windows developer
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJVWfryAAoJEIWi9rB2GrW7p2sH/3kNU+tZeeCuDNY1C8vkC242
lB8xgH/eYIwn9jMaMbaqHmwGesoxDmJJnsr6v4vKs3TI+jq2HZ6fdj+Gaehw4nIZ
9iC78cEC/yo2csiK+Rj5DJ4SBtbW57nbzgkTrZVE5bOOhHWn6BLbEUgkw9voMq2H
ty5UMVBSDch/XiIptC3JRglV6GX3puChUjGGbkZvguvAgGtoIls12QQ6pkMRvia0
04jYHjc9ZhN/AmwweHYjnWtUSlRR6Tcd1fCB3Rpvs2wBwUT3r1dzZSnG6+onFEcB
fgC1W+i09H6EIqjH9KfmJPyfQA0zz4PI+SrUDkHxdoj1wXESLjHgkolMbD/SG2o=
=9SYu
-----END PGP SIGNATURE-----

_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.