Re: [Qemu-devel] [PATCH v2 05/18] xen: add xenstore watcher infrastructure

2018-12-10 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 07 December 2018 15:58 > To: Paul Durrant > Cc: qemu-devel@nongnu.org; qemu-bl...@nongnu.org; xen- > de...@lists.xenproject.org; Kevin Wolf ; Max Reitz > ; Stefano Stabellini > Subject: Re: [PATCH v2

Re: [Qemu-devel] [PATCH v2 05/18] xen: add xenstore watcher infrastructure

2018-12-07 Thread Anthony PERARD
On Thu, Dec 06, 2018 at 03:08:31PM +, Paul Durrant wrote: > @@ -36,6 +54,12 @@ static void xen_block_unrealize(XenDevice *xendev, Error > **errp) > > trace_xen_block_unrealize(type, vdev->disk, vdev->partition); > > +/* Disconnect from the frontend in case this has not already

[Qemu-devel] [PATCH v2 05/18] xen: add xenstore watcher infrastructure

2018-12-06 Thread Paul Durrant
A Xen PV frontend communicates its state to the PV backend by writing to the 'state' key in the frontend area in xenstore. It is therefore necessary for a XenDevice implementation to be notified whenever the value of this key changes. This patch adds code to do this as follows: - an 'fd handler'