In-tree feature documentation
v2 cover In-tree feature documentation
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
Andrew Cooper (2):
docs: Template for feature documents
docs: Migration feature document
docs/Makefile | 2 +- docs/features/migration.pandoc | 100 ++++++++++++++++++++++++++++++++++++++++ docs/features/template.pandoc | 67 +++++++++++++++++++++++++++ 3 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 docs/features/migration.pandoc create mode 100644 docs/features/template.pandoc
Signature · 1 line
1.7.10.4
PATCH v2 1/2 docs: Template for feature documents
---
v2: Added %Revision and #History table
--- docs/Makefile | 2 +- docs/features/template.pandoc | 67 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 docs/features/template.pandoc
docs/Makefile +1 -1
@@ -16,7 +16,7 @@ MARKDOWNSRC-y := $(sort $(shell find misc -name '*.markdown' -print)) TXTSRC-y := $(sort $(shell find misc -name '*.txt' -print)) -PANDOCSRC-y := $(sort $(shell find specs -name '*.pandoc' -print)) +PANDOCSRC-y := $(sort $(shell find features/ misc/ specs/ -name '*.pandoc' -print)) # Documentation targets DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y))
docs/features/template.pandoc new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Re: [PATCH v2 for-4.6 1/2] docs: Template for feature documents
docs/features/template.pandoc line 18
Quoted 5 lines · Andrew Cooper
docs/features/template.pandoc new file +4
-0+A table with an overview of the support status and applicability. + +---------------- ---------------------------------------------------- + Status: e.g. **Supported**/**Tech Preview**/**Experimental**
These should be well defined somewhere and that definition linked to in the template. Perhaps this is the "formal support statement document" mentioned in the cover mail but which I haven't stumbled over in my (overflowing) post vacation INBOX
Re: [PATCH v2 for-4.6 1/2] docs: Template for feature documents
Quoted 9 lines · Ian Campbell
docs/features/template.pandoc line 18
Quoted 4 lines · Andrew Cooper
docs/features/template.pandoc new file +4
-0+A table with an overview of the support status and applicability. + +---------------- ---------------------------------------------------- + Status: e.g. **Supported**/**Tech Preview**/**Experimental**These should be well defined somewhere and that definition linked to in the template. Perhaps this is the "formal support statement document" mentioned in the cover mail but which I haven't stumbled over in my (overflowing) post vacation INBOX
It is referring to a thread of Lars', which is attempting to nail down these definitions.
~Andrew
PATCH v2 2/2 docs: Migration feature document
In reply to Andrew Cooper---
v2:
* %Revision and #History, following template review
* Grammar fixes
--- docs/features/migration.pandoc | 100 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 docs/features/migration.pandoc
docs/features/migration.pandoc new file +100 -0
@@ -0,0 +1,100 @@ +% Migration +% Revision 1 + +\clearpage + +# Basics +--------------- ------------- + Status: **Supported** + + Architecture: x86 + + Component: Toolstack +--------------- ------------- + +# Overview + +Migration is a mechanism to move a virtual machine while the VM is +running. Live migration moves a running virtual machine between two +physical servers, but the same mechanism can be used for non-live +migrate (pause and copy) and suspend/resume from disk. + +# User details + +No hardware requirements, although hypervisor logdirty support is +required for live migration. + +From the command line, `xl migrate/save/restore` are the top level +interactions. e.g. + + xl create my-vm.cfg + xl migrate my-vm localhost + +or + + xl create my-vm.cfg + xl save my-vm /path/to/save/file + xl restore /path/to/save/file + +Xen 4.6 sees the instruction of Migration v2. There is no change for +people using `xl`, although the `libxl` API has had an extension. + +# Technical details + +Migration is formed of several layers. `libxc` is responsible for the +contents of the VM (ram, vcpus, etc) and the live migration loop, while +`libxl` is responsible for items such as emulator state. + +The format of the migration v2 stream is specified in two documents, and +is architecture neutral. Compatibility with legacy streams is +maintained via the `convert-legacy-stream` script which transforms a +legacy stream into a migration v2 stream. + +* Documents + * `docs/specs/libxc-migration-stream.pandoc` + * `docs/specs/libxl-migration-stream.pandoc` +* `libxc` + * `tools/libxc/xc_sr_*.[hc]` +* `libxl` + * `tools/libxl/libxl_stream_{read,write}.c` +* Scripts + * `tools/python/xen/migration/*.py` + * `tools/python/scripts/convert-legacy-stream` + * `tools/python/scripts/verify-stream-v2` + +Users of the `libxl` API have a new parameter `stream_version` in +`domain_restore_params` which is used to distinguish between legacy and +v2 migration streams, and hence whether legacy conversion is required. + +# Limitations + +Hypervisor logdirty support is incompatible with hardware passthrough, +as IOMMU faults cannot be used to track writes. + +While not a bug in migration specifically, VMs are very sensitive to +changes in cpuid information, and cpuid levelling support currently has +its issues. Extreme care should be taken when migrating VMs between +non-identical CPUs until the cpuid levelling improvements are complete. + +# Areas for improvement + +* Arm support +* Linear P2M support for x86 PV +* Live looping parameters + +# Known issues + +* x86 HVM guest physmap operations (not reflected in logdirty bitmap) +* x86 HVM with PoD pages (attempts to map cause PoD allocations) +* x86 HVM with nested-virt (no relevant information included in the + stream) +* x86 PV ballooning (P2M marked dirty, target frame not marked) +* x86 PV P2M structure changes (not noticed, stale mappings used) + +# History + +------------------------------------------------------------------------ +Date Revision Version Notes +---------- -------- -------- ------------------------------------------- +2015-10-24 1 Xen 4.6 Document written +---------- -------- -------- -------------------------------------------
Signature · 1 line
1.7.10.4
Re: [PATCH v2 for-4.6 2/2] docs: Migration feature document
Quoted 26 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
v2:
* %Revision and #History, following template review
* Grammar fixes--- docs/features/migration.pandoc | 100 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+)create mode 100644 docs/features/migration.pandoc
docs/features/migration.pandoc new file +10
-0@@ -0,0 +1,100 @@ +% Migration +% Revision 1 + +\clearpage + +# Basics +--------------- ------------- + Status: **Supported** + + Architecture: x86
docs/features/migration.pandoc line 20
Quoted 10 lines
docs/features/migration.pandoc new file +10
-0+ + Component: Toolstack +--------------- ------------- + +# Overview + +Migration is a mechanism to move a virtual machine while the VM is +running. Live migration moves a running virtual machine between two +physical servers, but the same mechanism can be used for non-live +migrate (pause and copy) and suspend/resume from disk.
s/migrate/migration/ ?
Quoted 9 lines
docs/features/migration.pandoc new file +9
-0+ +# User details + +No hardware requirements, although hypervisor logdirty support is +required for live migration. + +From the command line, `xl migrate/save/restore` are the top level +interactions. e.g. +
docs/features/migration.pandoc line 39
Quoted 10 lines
docs/features/migration.pandoc new file +10
-0+ xl create my-vm.cfg + xl migrate my-vm localhost + +or + + xl create my-vm.cfg + xl save my-vm /path/to/save/file + xl restore /path/to/save/file + +Xen 4.6 sees the instruction of Migration v2. There is no change for
Xen 4.6 sees the introduction of Migration v2.
Or, Xen 4.6 introduces Migration v2.
Quoted 18 lines
docs/features/migration.pandoc new file +18
-0+people using `xl`, although the `libxl` API has had an extension. + +# Technical details + +Migration is formed of several layers. `libxc` is responsible for the +contents of the VM (ram, vcpus, etc) and the live migration loop, while +`libxl` is responsible for items such as emulator state. + +The format of the migration v2 stream is specified in two documents, and +is architecture neutral. Compatibility with legacy streams is +maintained via the `convert-legacy-stream` script which transforms a +legacy stream into a migration v2 stream. + +* Documents + * `docs/specs/libxc-migration-stream.pandoc` + * `docs/specs/libxl-migration-stream.pandoc` +* `libxc` + * `tools/libxc/xc_sr_*.[hc]`
docs/features/migration.pandoc line 67
Quoted 10 lines
docs/features/migration.pandoc new file +10
-0+* `libxl` + * `tools/libxl/libxl_stream_{read,write}.c` +* Scripts + * `tools/python/xen/migration/*.py` + * `tools/python/scripts/convert-legacy-stream` + * `tools/python/scripts/verify-stream-v2` + +Users of the `libxl` API have a new parameter `stream_version` in +`domain_restore_params` which is used to distinguish between legacy and +v2 migration streams, and hence whether legacy conversion is required.
A question better asked when you posted the patches, but is there a way to detect if the receiver is V2 capable? I suspect sending a V2 stream to a receiver capable only of V1 is not advised :-).
Also, commit id introducing the change would be helpful info. Looks like 3a9ace01 in this case.
Quoted 6 lines
docs/features/migration.pandoc new file +6
-0+ +# Limitations + +Hypervisor logdirty support is incompatible with hardware passthrough, +as IOMMU faults cannot be used to track writes. +
docs/features/migration.pandoc line 83
Quoted 10 lines
docs/features/migration.pandoc new file +10
-0+While not a bug in migration specifically, VMs are very sensitive to +changes in cpuid information, and cpuid levelling support currently has +its issues. Extreme care should be taken when migrating VMs between +non-identical CPUs until the cpuid levelling improvements are complete. + +# Areas for improvement + +* Arm support +* Linear P2M support for x86 PV +* Live looping parameters
* cpuid levelling
Regards,
Jim
Quoted 17 lines
docs/features/migration.pandoc new file +17
-0+ +# Known issues + +* x86 HVM guest physmap operations (not reflected in logdirty bitmap) +* x86 HVM with PoD pages (attempts to map cause PoD allocations) +* x86 HVM with nested-virt (no relevant information included in the + stream) +* x86 PV ballooning (P2M marked dirty, target frame not marked) +* x86 PV P2M structure changes (not noticed, stale mappings used) + +# History + +------------------------------------------------------------------------ +Date Revision Version Notes +---------- -------- -------- ------------------------------------------- +2015-10-24 1 Xen 4.6 Document written +---------- -------- -------- -------------------------------------------
Re: [PATCH v2 for-4.6 2/2] docs: Migration feature document
Quoted 33 lines · Jim Fehlig
Quoted 32 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
v2:
* %Revision and #History, following template review
* Grammar fixes--- docs/features/migration.pandoc | 100 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+)create mode 100644 docs/features/migration.pandoc
docs/features/migration.pandoc new file +14
-0@@ -0,0 +1,100 @@ +% Migration +% Revision 1 + +\clearpage + +# Basics +--------------- ------------- + Status: **Supported** + + Architecture: x86 + + Component: Toolstack +--------------- ------------- +
Quoted 8 lines
docs/features/migration.pandoc line 20
Quoted 6 lines
docs/features/migration.pandoc new file +6
-0+# Overview + +Migration is a mechanism to move a virtual machine while the VM is +running. Live migration moves a running virtual machine between two +physical servers, but the same mechanism can be used for non-live +migrate (pause and copy) and suspend/resume from disk.s/migrate/migration/ ?
Either is valid here, although it would be better to leave the entire sentence in the same tense.
Quoted 15 lines
Quoted 15 lines
docs/features/migration.pandoc new file +14
-0+ +# User details + +No hardware requirements, although hypervisor logdirty support is +required for live migration. + +From the command line, `xl migrate/save/restore` are the top level +interactions. e.g. + + xl create my-vm.cfg + xl migrate my-vm localhost + +or +
Quoted 8 lines
docs/features/migration.pandoc line 39
Quoted 5 lines
docs/features/migration.pandoc new file +5
-0+ xl create my-vm.cfg + xl save my-vm /path/to/save/file + xl restore /path/to/save/file + +Xen 4.6 sees the instruction of Migration v2. There is no change forXen 4.6 sees the introduction of Migration v2.
Or, Xen 4.6 introduces Migration v2.
Oops. I did mean s/instruction/introduction/.
Quoted 26 lines
Quoted 26 lines
docs/features/migration.pandoc new file +9
-0+people using `xl`, although the `libxl` API has had an extension. + +# Technical details + +Migration is formed of several layers. `libxc` is responsible for the +contents of the VM (ram, vcpus, etc) and the live migration loop, while +`libxl` is responsible for items such as emulator state. + +The format of the migration v2 stream is specified in two documents,and
docs/features/migration.pandoc new file +15
-0+is architecture neutral. Compatibility with legacy streams is +maintained via the `convert-legacy-stream` script which transforms a +legacy stream into a migration v2 stream. + +* Documents + * `docs/specs/libxc-migration-stream.pandoc` + * `docs/specs/libxl-migration-stream.pandoc` +* `libxc` + * `tools/libxc/xc_sr_*.[hc]` +* `libxl` + * `tools/libxl/libxl_stream_{read,write}.c` +* Scripts + * `tools/python/xen/migration/*.py` + * `tools/python/scripts/convert-legacy-stream` + * `tools/python/scripts/verify-stream-v2`
Quoted 8 lines
docs/features/migration.pandoc line 67
Quoted 4 lines
docs/features/migration.pandoc new file +4
-0+ +Users of the `libxl` API have a new parameter `stream_version` in +`domain_restore_params` which is used to distinguish between legacy and +v2 migration streams, and hence whether legacy conversion is required.A question better asked when you posted the patches, but is there a way to detect if the receiver is V2 capable? I suspect sending a V2 stream to a receiver capable only of V1 is not advised :-).
libxl has no concept of asking the far side for information, and therefore no concept of advertising its features.
For querying the local libxl at build time, LIBXL_HAVE_SRM_V2 and LIBXL_HAVE_SRM_V1 from 3a9ace01
Quoted 3 lines
Also, commit id introducing the change would be helpful info. Looks like
3a9ace01in this case.
See the reply (I am about to write) on the 0/0 thread, but I hope that putting git sha's in this document is going to be impossible.
Quoted 11 lines
Quoted 11 lines
docs/features/migration.pandoc new file +10
-0+ +# Limitations + +Hypervisor logdirty support is incompatible with hardware passthrough, +as IOMMU faults cannot be used to track writes. + +While not a bug in migration specifically, VMs are very sensitive to +changes in cpuid information, and cpuid levelling support currently has +its issues. Extreme care should be taken when migrating VMs between +non-identical CPUs until the cpuid levelling improvements are complete.
Quoted 8 lines
docs/features/migration.pandoc line 83
Quoted 6 lines
docs/features/migration.pandoc new file +6
-0+ +# Areas for improvement + +* Arm support +* Linear P2M support for x86 PV +* Live looping parameters* cpuid levelling
The topic of cpuid levelling is covered in the paragraph above, and is logically separate from migration. XenServer for examples uses it work around various guest kernel bugs.
It is just as broken in the plain boot case as the migrate case, and I don't wish to confuse the issues.
~Andrew
Quoted 15 lines · Andrew Cooper
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Quoted 5 lines
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
Yes. It provides excellent info, with pointers to dig deeper for those interested.
Your proposal does raise the bar for feature contribution, but I'm not active enough in the Xen community to know if folks are supportive of the additional overhead. Would new features require a feature doc before committing?
My comment at the summit was more along the lines of a summary of libxl changes for external consumers. A libxl interface changelog of sorts, for consumers unable to keep up with xen-devel. But I also noted this may be a personal problem. You've already mentioned 'git log' :-).
Regards,
Jim
Quoted 22 lines · Jim Fehlig
Quoted 15 lines · Andrew Cooper
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Quoted 5 lines
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
Quoted 7 lines
Yes. It provides excellent info, with pointers to dig deeper for those interested.
Your proposal does raise the bar for feature contribution, but I'm not active enough in the Xen community to know if folks are supportive of the additional overhead. Would new features require a feature doc before committing?
Unless there are some screaming objections, I am hoping yes, and that the document becomes the authoritative support statement for the feature. (This is currently a real problem working out the security status of bugs in features lacking a concrete statement of support.)
Writing one of these documents is not hard (I hope for there to soon be many examples to refer to), and I would like to see it become common-practice to have as $N/$N on a series.
~Andrew
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 15 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Quoted 5 lines
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
I have read both patches.
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
I don't have anything else to add to the comments that others have made.
Overall I think this is a good template. The extra overhead may even be negative. The work of writing up a feature in the style of this document may obviate the need to put much of the same information in a 0/N or a design document, and the existing template is quite lightweight.
Ian.
Quoted 19 lines · Ian Jackson
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 18 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Quoted 6 lines
Quoted 2 lines
Jim: Per your request at the summit for new information, is patch 2 suitable?
I have read both patches.
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
I don't expect all the issues to be enumerated (generally, they would be found the first time someone falls over the issue), but where known interaction issues exist, we need to have some place to leave them.
There are plenty of examples where known issues are documented somewhere in the xen-devel archives, or in an individuals head, and neither of these are useful places for the information to exist.
I would hope that over time the number of issues decreases to 0 (that would be the day!), but a good second is at least to have a formal acknowledge that there are issues, which can be located by the next unfortunate sole to hit the issue.
Quoted 9 lines
I don't have anything else to add to the comments that others have made.
Overall I think this is a good template. The extra overhead may even be negative. The work of writing up a feature in the style of this document may obviate the need to put much of the same information in a 0/N or a design document, and the existing template is quite lightweight.
I hadn't considered this side benefit when designing the template.
~Andrew
Andrew Cooper writes ("Re: [RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 7 lines · Ian Jackson
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
I don't expect all the issues to be enumerated (generally, they would be found the first time someone falls over the issue), but where known interaction issues exist, we need to have some place to leave them.
I was prompted to ask this because it seemed to me that some of the issues were discussed in other parts of the text or in other patches as well as in `issues'.
Quoted 3 lines
There are plenty of examples where known issues are documented somewhere in the xen-devel archives, or in an individuals head, and neither of these are useful places for the information to exist.
I agree with this. I think things should be in the tree, but once.
Ian.
Quoted 10 lines · Ian Jackson
Andrew Cooper writes ("Re: [RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 6 lines · Ian Jackson
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
I don't expect all the issues to be enumerated (generally, they would be found the first time someone falls over the issue), but where known interaction issues exist, we need to have some place to leave them.
I was prompted to ask this because it seemed to me that some of the issues were discussed in other parts of the text or in other patches as well as in `issues'.
Which issues are you concerned about?
Quoted 5 lines
Quoted 4 lines
There are plenty of examples where known issues are documented somewhere in the xen-devel archives, or in an individuals head, and neither of these are useful places for the information to exist.
I agree with this. I think things should be in the tree, but once.
I am certainly not advocating needless repetition, but I don't see anything in the submitted text which would quality. I will happily correct the text if I am mistaken.
~Andrew
Quoted 19 lines · Ian Jackson
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 15 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Quoted 7 lines
Quoted 5 lines
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
I have read both patches.
Me too
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
There is a risk that these may go stale. I am wondering, whether if we do have features, we can come up with some conventions that allow us to grep for the issues on the list. Just an idea.
We could have a unique feature ID in the #basics section. Migration (as in the first line of migration.pandoc) is probably too generic in this example (too many false negatives). But if there was a unique enough feature identifier that can be grep'ed in commit logs, on xen-devel@, ... that may help.
Quoted 5 lines
Overall I think this is a good template. The extra overhead may even be negative. The work of writing up a feature in the style of this document may obviate the need to put much of the same information in a 0/N or a design document, and the existing template is quite lightweight.
I agree. I don't really have any additional comments Andrew. So feel free to
We may need some extra tags/headings, if we were to include things such as
Quoted 23 lines · Lars Kurth
Quoted 23 lines · Ian Jackson
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 20 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
Quoted 8 lines
Quoted 1 line
I have read both patches.
Me too
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
There is a risk that these may go stale. I am wondering, whether if we do have features, we can come up with some conventions that allow us to grep for the issues on the list. Just an idea.
We could have a unique feature ID in the #basics section. Migration (as in the first line of migration.pandoc) is probably too generic in this example (too many false negatives). But if there was a unique enough feature identifier that can be grep'ed in commit logs, on xen-devel@, ... that may help.
This feels like over-engineering a solution. Maintaining a set of unique features will be extra burden on the core maintainers, as well as a extra burden on submitters to know how to work this brand new system.
I would hope that few supported features have "issues" as identified in the migration document.
I expect this section to be far more useful for experimental and tech preview features. In such cases issues are perfectly fine (It is far better to have some code people can play with, with a set of known restrictions, than to have no code at all), and can serve as a todo list before its status can be elevated to supported.
Quoted 9 lines
Quoted 6 lines
Overall I think this is a good template. The extra overhead may even be negative. The work of writing up a feature in the style of this document may obviate the need to put much of the same information in a 0/N or a design document, and the existing template is quite lightweight.
I agree. I don't really have any additional comments Andrew. So feel free to
We may need some extra tags/headings, if we were to include things such as
I would like to avoid making the system overly prescriptive (as this makes it harder for contributers), but I would be perfectly happy reviewing a new series where patch 0/$N simply says "refer to patch $Y for the feature document".
~Andrew
Quoted 36 lines · Andrew Cooper
Quoted 23 lines · Lars Kurth
Quoted 23 lines · Ian Jackson
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 20 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
Quoted 8 lines
Quoted 1 line
I have read both patches.
Me too
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
There is a risk that these may go stale. I am wondering, whether if we do have features, we can come up with some conventions that allow us to grep for the issues on the list. Just an idea.
We could have a unique feature ID in the #basics section. Migration (as in the first line of migration.pandoc) is probably too generic in this example (too many false negatives). But if there was a unique enough feature identifier that can be grep'ed in commit logs, on xen-devel@, ... that may help.
This feels like over-engineering a solution. Maintaining a set of unique features will be extra burden on the core maintainers, as well as a extra burden on submitters to know how to work this brand new system.
Quoted 8 lines
I would hope that few supported features have "issues" as identified in the migration document.
I expect this section to be far more useful for experimental and tech preview features. In such cases issues are perfectly fine (It is far better to have some code people can play with, with a set of known restrictions, than to have no code at all), and can serve as a todo list before its status can be elevated to supported.
In addition.
I expect that maintainers would have an idea of the documentation which exists in tree, and refer to it when reviewing new code in the area. I certainly will be.
Nowadays, it feels that enough people reviewing new submissions have an instinct of "changes to command line parameters should patch docs/misc/xen-command-line.markdown". This is a very good position as far as keeping the command line documentation up to date goes, and was the entire principle behind introducing that document in the first place.
I would hope that after a while, similar instincts would develop for major modification or addition of new features.
~Andrew
Quoted 32 lines · Andrew Cooper
Quoted 28 lines · Lars Kurth
Quoted 18 lines · Ian Jackson
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 15 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Quoted 6 lines
Quoted 5 lines
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
I have read both patches.
Me too
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
Quoted 7 lines
Quoted 3 lines
There is a risk that these may go stale. I am wondering, whether if we do have features, we can come up with some conventions that allow us to grep for the issues on the list. Just an idea.
We could have a unique feature ID in the #basics section. Migration (as in the first line of migration.pandoc) is probably too generic in this example (too many false negatives). But if there was a unique enough feature identifier that can be grep'ed in commit logs, on xen-devel@, ... that may help.
This feels like over-engineering a solution. Maintaining a set of unique features will be extra burden on the core maintainers, as well as a extra burden on submitters to know how to work this brand new system.
As I said, it was just an idea to discuss.
Quoted 18 lines
I would hope that few supported features have "issues" as identified in the migration document.
I expect this section to be far more useful for experimental and tech preview features. In such cases issues are perfectly fine (It is far better to have some code people can play with, with a set of known restrictions, than to have no code at all), and can serve as a todo list before its status can be elevated to supported.
Quoted 9 lines
Quoted 6 lines
Overall I think this is a good template. The extra overhead may even be negative. The work of writing up a feature in the style of this document may obviate the need to put much of the same information in a 0/N or a design document, and the existing template is quite lightweight.
I agree. I don't really have any additional comments Andrew. So feel free to
We may need some extra tags/headings, if we were to include things such as
This end of the mail was deleted by mistake. I meant to say was ...
We may need some extra tags/headings, if we were to include things such as supported limits for memory, vCPUs, ... I remember, you raised the point that some of the theoretical limits are not always tested.
* Maybe a Testing section, which outlines what is tested automatically and what should be manually tested when updated. It could be optional.
* Maybe another optional references section: that would allow us to link to 3rd party specs, presentations, etc.
Lars
Quoted 53 lines · Lars Kurth
Quoted 29 lines · Andrew Cooper
Quoted 26 lines · Lars Kurth
Quoted 18 lines · Ian Jackson
Andrew Cooper writes ("[RFC v2 for-4.6 0/2] In-tree feature documentation"):
Quoted 15 lines
An issue which Xen has is an uncertain support statement for features. Given the success seen with docs/misc/xen-command-line.markdown, and in particular keeping it up to date, introduce a similar system for features.
Patch 1 introduces a proposed template (and a makefile tweak to include the new docs/features subdirectory), while patch 2 is a feature document covering the topic of migration.
v2 Adds %Revision and #History table, following feedback from v1.
This is tagged RFC as I expect people to have different views as to what is useful to include. I would particilarly appreciate feedback on the template before it starts getting used widely.
Quoted 6 lines
Quoted 5 lines
Lars: Does this look like a reasonable counterpart to your formal support statement document?
Jim: Per your request at the summit for new information, is patch 2 suitable?
I have read both patches.
Me too
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I do wonder whether cross-referencing all the "issues" is a good idea. It seems like it might be a lot of work to keep them in step.
There is a risk that these may go stale. I am wondering, whether if we do have features, we can come up with some conventions that allow us to grep for the issues on the list. Just an idea.
We could have a unique feature ID in the #basics section. Migration (as in the first line of migration.pandoc) is probably too generic in this example (too many false negatives). But if there was a unique enough feature identifier that can be grep'ed in commit logs, on xen-devel@, ... that may help.
This feels like over-engineering a solution. Maintaining a set of unique features will be extra burden on the core maintainers, as well as a extra burden on submitters to know how to work this brand new system.
As I said, it was just an idea to discuss.
Quoted 14 lines
I would hope that few supported features have "issues" as identified in the migration document.
I expect this section to be far more useful for experimental and tech preview features. In such cases issues are perfectly fine (It is far better to have some code people can play with, with a set of known restrictions, than to have no code at all), and can serve as a todo list before its status can be elevated to supported.
Quoted 5 lines
Quoted 5 lines
Overall I think this is a good template. The extra overhead may even be negative. The work of writing up a feature in the style of this document may obviate the need to put much of the same information in a 0/N or a design document, and the existing template is quite lightweight.
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
I agree. I don't really have any additional comments Andrew. So feel free to
We may need some extra tags/headings, if we were to include things such as
This end of the mail was deleted by mistake. I meant to say was ...
We may need some extra tags/headings, if we were to include things such as supported limits for memory, vCPUs, ... I remember, you raised the point that some of the theoretical limits are not always tested.
Absolutely. Not everyone has a server with 123TB of RAM to hand, or even 16TB which is default current limit. (For this issue, testing from both Citrix and Oracle indicates a bug when more than 5TB of RAM is used.)
Therefore, a distinction between the theoretical limit and currently-tested limit is very useful. I expect the the commercial stakeholders will be in a position to routinely test at far above the limit available to direct consumers of the Xen project.
For the in-tree statement of limits, I have not put much though to how to represent them yet, but I am not sure that the feature template proposed in #1 will be a great fit. I suspect we will want something a little different.
Quoted 2 lines
* Maybe a Testing section, which outlines what is tested automatically and what should be manually tested when updated. It could be optional.
Ooh - that is a good idea.
Even if it is just a paragraph about suggested things to test when modifying, it will be useful to contributors.
Quoted 1 line
* Maybe another optional references section: that would allow us to link to 3rd party specs, presentations, etc.
I should really put some references in the migration document, shouldn't I.
~Andrew
Quoted 16 lines · Andrew Cooper
Quoted 5 lines · Lars Kurth
Quoted 1 line
We may need some extra tags/headings, if we were to include things such as supported limits for memory, vCPUs, ... I remember, you raised the point that some of the theoretical limits are not always tested.
Absolutely. Not everyone has a server with 123TB of RAM to hand, or even 16TB which is default current limit. (For this issue, testing from both Citrix and Oracle indicates a bug when more than 5TB of RAM is used.)
Therefore, a distinction between the theoretical limit and currently-tested limit is very useful. I expect the the commercial stakeholders will be in a position to routinely test at far above the limit available to direct consumers of the Xen project.
Quoted 4 lines
For the in-tree statement of limits, I have not put much though to how to represent them yet, but I am not sure that the feature template proposed in #1 will be a great fit. I suspect we will want something a little different.
Maybe a master document for system stuff, with a slightly different format.
I may have missed this: what kind of mark-up is being used?
http://pandoc.org/ seems to support a few: may need to add a README with a couple of pointers.
And I am assuming some sort of index is produced when these docs are
built: correct?
Lars
Quoted 16 lines · Lars Kurth
Quoted 13 lines · Andrew Cooper
Quoted 3 lines · Lars Kurth
We may need some extra tags/headings, if we were to include things such as supported limits for memory, vCPUs, ... I remember, you raised the point that some of the theoretical limits are not always tested.
Absolutely. Not everyone has a server with 123TB of RAM to hand, or even 16TB which is default current limit. (For this issue, testing from both Citrix and Oracle indicates a bug when more than 5TB of RAM is used.)
Therefore, a distinction between the theoretical limit and currently-tested limit is very useful. I expect the the commercial stakeholders will be in a position to routinely test at far above the limit available to direct consumers of the Xen project.
Quoted 5 lines
Quoted 4 lines
For the in-tree statement of limits, I have not put much though to how to represent them yet, but I am not sure that the feature template proposed in #1 will be a great fit. I suspect we will want something a little different.
Maybe a master document for system stuff, with a slightly different format.
Possibly. Nothing prevents us from having different types of documentation with different expected layouts.
We can see what feels best when we get to it.
Quoted 4 lines
I may have missed this: what kind of mark-up is being used?
http://pandoc.org/ seems to support a few: may need to add a README with a couple of pointers.
http://pandoc.org/demo/example9/pandocs-markdown.html
Pandoc extends plain markdown in a number of ways commonly found elsewhere, including the ability to insert raw LaTeX if needs be.
The eagle-eyed might have spotted a cunningly positioned \clearpage which aids the clarity of the generated pdf file.
Quoted 3 lines
And I am assuming some sort of index is produced when these docs are
built: correct?
For the HTML ones, yes. One example is:
http://xenbits.xen.org/docs/unstable/specs/libxc-migration-stream.html
Which is currently generated from a pandoc document in tree.
By default in-tree, all pandoc stuff will be rendered to pdf and html. I am not aware whether the pdf versions are served from xenbits, but the html ones certainly are.
~Andrew