tools/xenstore: add some new features to the documentation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 5 repliesIn review
- v35 patches 10 repliesSuperseded
- v24 patches 13 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 9 replies | Superseded |
Changes in v4 from the cover letter
- patch 2 removed, as already committed
- major rework of last patch
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | tools/xenstore: minor fix of the migration stream docdocs/ | +3 | 1 reply | |
| 2/4 | tools/xenstore: add documentation for new set/get-quota commandsdocs/ | +17 | 0 replies | |
| 3/4 | tools/xenstore: add documentation for extended watch commanddocs/ docs/ | +14 | 0 replies | |
| 4/4 | tools/xenstore: add migration stream extensions for new featuresdocs/ | +155 | 4 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Julien Grall |
|---|---|
| 1/4 | A-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/4] tools/xenstore: add some new features to the documentation
In the past there have been spotted some shortcomings in the Xenstore interface, which should be repaired. Those are in detail:
- Using driver domains for large number of domains needs per domain Xenstore quota [1]. The feedback sent was rather slim (one reply), but it was preferring a new set of wire commands.
- XSA-349 [2] has shown that the current definition of watches is not optimal, as it will trigger lots of events when a single one would
suffice: for detecting new backend devices the backends in the Linux kernel are registering a watch for e.g. "/local/domain/0/backend" which will fire for ANY sub-node written below this node (on a test machine this added up to 91 watch events for only 3 devices). This can be limited dramatically by extending the XS_WATCH command to take another optional parameter specifying the depth of subdirectories to be considered for sending watch events ("0" would trigger a watch event only if the watched node itself being written).
- New features like above being added might make migration of guests between hosts with different Xenstore variants harder, so it should be possible to set the available feature set per domain. For socket connections it should be possible to read the available features.
- The special watches @introduceDomain and @releaseDomain are rather cumbersome to use, as they only tell you that SOME domain has been introduced/released. Any consumer of those watches needs to scan all domains on the host in order to find out the domid, causing significant pressure on the dominfo hypercall (imagine a system with 1000 domains running and one domain dying - there will be more than 1000 watch events triggered and 1000 xl daemons will try to find out whether "their" domain has died). Those watches should be enhanced to optionally be specific to a single domain and to let the event carry the related domid.
As some of those extensions will need to be considered in the Xenstore migration stream, they should be defined in one go (in fact the 4th one wouldn't need that, but it can easily be connected to the 2nd one). As such extensions need to be flagged in the "features" in the ring page anyway, it is fine to implement them independently.
Add the documentation of the new commands/features.
[1]: https://lists.xen.org/archives/html/xen-devel/2020-06/msg00291.html
[2]: http://xenbits.xen.org/xsa/advisory-349.html
Changes in V4:
- patch 2 removed, as already committed
- major rework of last patch
Changes in V3:
- patch 1 removed, as already committed
- new patch 1
- minor clarifications in patch 2
- new patch 5
Changes in V2:
- added new patch 1
- remove feature bits for dom0-only features
- get-features without domid returns Xenstore supported features
- get/set-quota without domid for global quota access
Juergen Gross (4):
tools/xenstore: minor fix of the migration stream doc tools/xenstore: add documentation for new set/get-quota commands tools/xenstore: add documentation for extended watch command tools/xenstore: add migration stream extensions for new features
docs/designs/xenstore-migration.md | 166 +++++++++++++++++++++++++++-- docs/misc/xenstore-ring.txt | 1 + docs/misc/xenstore.txt | 33 +++++- 3 files changed, 188 insertions(+), 12 deletions(-)
Signature · 1 line
2.35.3