Debian Codegraph @

docs/misc/pv-drivers-lifecycle.pandoc

raw
1 # Xen PV Drivers lifecycle
2
3 ## Purpose
4
5 Getting new PV drivers accepted in Xen, upstream code bases, and ABI
6 stable in the quickest and most efficient way possible.
7
8
9 ## Design Phase
10
11 The first step toward acceptance of a new PV protocol is to write a
12 design document and send it to xen-devel. It should cover the xenstore
13 handshake mechanism, the ABI, how the protocol works and anything else
14 which is required to write an implementation of it. The usage of C-like
15 structs to describe language and platform agnostic protocols is
16 discouraged.
17
18 An attempt should be made to design the ABI such that it will be OS
19 agnostic, that future versions will not need to introduce
20 backward-incompatible changes, and so on; but these are not yet hard
21 requirements.
22
23 After the high level design of the protocol has been discussed and
24 agreed, the document is committed to xen.git.
25
26
27 ## Prototype Stage
28
29 The contributor sends patches to implement the PV drivers for the new
30 protocol to the relevant open source mailing lists, such as LKML,
31 qemu-devel and xen-devel.
32
33 The code is expected to work, be good quality and faithfully implement
34 the spec. However, there are no promises about ABI and cross-platform
35 compatibility yet.
36
37 After careful review by the relevant maintainers, the code is committed
38 to the upstream code bases. The drivers are considered experimental.
39
40
41 ## Production Stage
42
43 The quality of the drivers and the spec is improved. Bugs are fixed.
44 The protocol version is likely bumped. More testing leads to confidence
45 that the spec and the drivers are ready for production usage. Promises
46 about backward compatibility and cross-platform compatibility are
47 clearly spelled out.
48
49
50 ## How to move forward from a stage to the next
51
52 The PV protocols Czar is responsible for determining the transitions
53 between stages. Our governance principles specify "lazy consensus" for
54 most things. It applies to this case too. New PV protocols should move
55 from one stage to the next within a reasonable time frame unless someone
56 has specific technical objections and voices them in a responsive
57 manner.