1
2CONTRIBUTING
3============
4
5INBOUND LICENSE
6---------------
7
8Contributions are governed by the license that applies to relevant
9specific file or by the license specified in the COPYING file, that
10governs the license of its containing directory and its subdirectories.
11
12Most of the Xen Project code is licensed under GPLv2, but a number of
13directories are primarily licensed under different licenses.
14
15Most notably:
16 - tools/blktap2      : BSD-Modified
17 - tools/libxc        : LGPL v2.1
18 - tools/libxl        : LGPL v2.1
19 - tools/xl           : LGPL v2.1
20 - xen/include/public : MIT license
21
22When creating new components and directories that contain a
23significant amount of files that are licensed under licenses other
24than GPLv2 or the license specified in the COPYING file, please
25create a new COPYING file in that directory containing a copy of the
26license text and a rationale for using a different license. This helps
27ensure that the license of this new component/directory is maintained
28consistently with the original intention.
29
30When importing code from other upstream projects into this repository,
31please create a README.source file in the directory the code is imported
32to, listing the original source of the code. An example can be found at
33m4/README.source
34
35The COMMON COPYRIGHT NOTICES section of this document contains
36sample copyright notices for the most common licenses used within
37this repository.
38
39Developer's Certificate of Origin
40---------------------------------
41
42All patches to the Xen Project code base must include the line
43"Signed-off-by: your_name <your_email>" at the end of the change
44description. This is required and indicates that you certify the patch
45under the "Developer's Certificate of Origin" which states:
46
47  Developer's Certificate of Origin 1.1
48
49  By making a contribution to this project, I certify that:
50
51  (a) The contribution was created in whole or in part by me and I
52      have the right to submit it under the open source license
53      indicated in the file; or
54
55  (b) The contribution is based upon previous work that, to the best
56      of my knowledge, is covered under an appropriate open source
57      license and I have the right under that license to submit that
58      work with modifications, whether created in whole or in part
59      by me, under the same open source license (unless I am
60      permitted to submit under a different license), as indicated
61      in the file; or
62
63  (c) The contribution was provided directly to me by some other
64      person who certified (a), (b) or (c) and I have not modified
65      it.
66
67  (d) I understand and agree that this project and the contribution
68      are public and that a record of the contribution (including all
69      personal information I submit with it, including my sign-off) is
70      maintained indefinitely and may be redistributed consistent with
71      this project or the open source license(s) involved.
72
73GOVERNANCE AND WORKFLOW
74-----------------------
75
76The following documents provide a general overview of governance and
77contribution guidelines for the Xen Project:
78 - https://xenproject.org/governance.html
79 - https://xenproject.org/help/contribution-guidelines.html
80
81For more information on contributing to this repository, see
82 - CODING_STYLE file in this directory
83 - https://wiki.xenproject.org/wiki/Submitting_Xen_Project_Patches
84 - https://wiki.xenproject.org/wiki/Submitting_Xen_Patches_with_Git
85 - https://wiki.xenproject.org/wiki/Asking_Developer_Questions
86 - https://wiki.xenproject.org/wiki/Category:Developers
87
88
89COMMON COPYRIGHT NOTICES
90========================
91
92The following section contains sample copyright notice for the most
93common licenses used within the Xen Project that is consistent with the
94projects coding standards.
95
96GPL v2 License
97--------------
98
99/*
100 * <File name>
101 *
102 * <One line description of the file and what it does>
103 *
104 * Copyright (C) <year>  <name of author and/or company>
105 *
106 * This program is free software; you can redistribute it and/or
107 * modify it under the terms and conditions of the GNU General Public
108 * License, version 2, as published by the Free Software Foundation.
109 *
110 * This program is distributed in the hope that it will be useful,
111 * but WITHOUT ANY WARRANTY; without even the implied warranty of
112 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
113 * General Public License for more details.
114 *
115 * You should have received a copy of the GNU General Public
116 * License along with this program; If not, see <http://www.gnu.org/licenses/>.
117 */
118
119
120LGPL v2.1 License
121-----------------
122
123/*
124 * <File name>
125 *
126 * <One line description of the file and what it does>
127 *
128 * Copyright (C) <year>  <name of author and/or company>
129 *
130 * This library is free software; you can redistribute it and/or
131 * modify it under the terms of the GNU Lesser General Public
132 * License, version 2.1, as published by the Free Software Foundation.
133 *
134 * This library is distributed in the hope that it will be useful,
135 * but WITHOUT ANY WARRANTY; without even the implied warranty of
136 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
137 * Lesser General Public License for more details.
138 *
139 * You should have received a copy of the GNU Lesser General Public
140 * License along with this library; If not, see <http://www.gnu.org/licenses/>.
141 */
142
143BSD-Modified License (also known as BSD-3-Clause)
144-------------------------------------------------
145
146/*
147 * <File name>
148 *
149 * <One line description of the file and what it does>
150 *
151 * Copyright (C) <year>  <name of author and/or company>
152 * All rights reserved.
153 *
154 * Redistribution and use in source and binary forms, with or without
155 * modification, are permitted provided that the following conditions
156 * are met:
157 *
158 *   1. Redistributions of source code must retain the above copyright
159 *      notice, this list of conditions and the following disclaimer.
160 *   2. Redistributions in binary form must reproduce the above
161 *      copyright notice, this list of conditions and the following
162 *      disclaimer in the documentation and/or other materials provided
163 *      with the distribution.
164 *   3. Neither the name of the copyright holder nor the names of its
165 *      contributors may be used to endorse or promote products derived
166 *      from this software without specific prior written permission.
167 *
168 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
169 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
170 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
171 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
172 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
173 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
174 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
175 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
176 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
177 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
178 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
179 * OF THE POSSIBILITY OF SUCH DAMAGE.
180 */
181
182
183MIT License
184-----------
185
186/*
187 * <File name>
188 *
189 * <One line description of the file and what it does>
190 *
191 * Copyright (C) <year>  <name of author and/or company>
192 *
193 * Permission is hereby granted, free of charge, to any person
194 * obtaining a copy of this software and associated documentation
195 * files (the "Software"), to deal in the Software without restriction,
196 * including without limitation the rights to use, copy, modify, merge,
197 * publish, distribute, sublicense, and/or sell copies of the Software,
198 * and to permit persons to whom the Software is furnished to do so,
199 * subject to the following conditions:
200 *
201 * The above copyright notice and this permission notice shall be
202 * included in all copies or substantial portions of the Software.
203 *
204 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
205 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
206 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
207 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
208 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
209 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
210 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
211 */
212
213