[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 05/18] xen: add xenstore watcher infrastructu
From: |
Anthony PERARD |
Subject: |
Re: [Qemu-devel] [PATCH v3 05/18] xen: add xenstore watcher infrastructure |
Date: |
Tue, 11 Dec 2018 15:21:29 +0000 |
User-agent: |
Mutt/1.11.1 (2018-12-01) |
On Tue, Dec 11, 2018 at 10:47:05AM +0000, Paul Durrant wrote:
> 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' is registered on the libxenstore handle which will be
> triggered whenever a 'watch' event occurs
> - primitives are added to xen-bus-helper to add or remove watch events
> - a list of Notifier objects is added to XenBus to provide a mechanism
> to call the appropriate 'watch handler' when its associated event
> occurs
>
> The xen-block implementation is extended with a 'frontend_changed' method,
> which calls as-yet stub 'connect' and 'disconnect' functions when the
> relevant frontend state transitions occur. A subsequent patch will supply
> a full implementation for these functions.
>
> Signed-off-by: Paul Durrant <address@hidden>
Reviewed-by: Anthony PERARD <address@hidden>
--
Anthony PERARD
- [Qemu-devel] [PATCH v3 00/18] Xen PV backend 'qdevification', Paul Durrant, 2018/12/11
- [Qemu-devel] [PATCH v3 06/18] xen: add grant table interface for XenDevice-s, Paul Durrant, 2018/12/11
- [Qemu-devel] [PATCH v3 05/18] xen: add xenstore watcher infrastructure, Paul Durrant, 2018/12/11
- Re: [Qemu-devel] [PATCH v3 05/18] xen: add xenstore watcher infrastructure,
Anthony PERARD <=
- [Qemu-devel] [PATCH v3 03/18] xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom', Paul Durrant, 2018/12/11
- [Qemu-devel] [PATCH v3 07/18] xen: add event channel interface for XenDevice-s, Paul Durrant, 2018/12/11
- [Qemu-devel] [PATCH v3 09/18] xen: remove unnecessary code from dataplane/xen-block.c, Paul Durrant, 2018/12/11
- [Qemu-devel] [PATCH v3 02/18] xen: introduce new 'XenBus' and 'XenDevice' object hierarchy, Paul Durrant, 2018/12/11