xen/x86: Use SPDX (take 1)
cover xen/x86: Use SPDX (take 1)
From: Julien Grall <[email protected]>
Hi all,
This is a first attempt to replace all the full license text with SPX tag in xen/arch/x86/. For now, this is only covering files with GPL 2.0 and 3 different patterns.
I have used the script below to remove the full license and add an SPDX tag. The script is based on the work from Anthony [1]
42sh> cat replace_license.py
#! /usr/bin/python3
## We are opening/writing to files using the binary mode to avoid ## python interpreting the content (reading ./drivers/video/font_8x14.c ## will throw some encoding error otherwise).
import sys
if len(sys.argv) < 4:
print("./replace_license <licence-file> <spdx> <file> [debug]")
exit(1)licence_file = sys.argv[1]
spdx = str.encode(sys.argv[2])
file = sys.argv[3]
# HACK: enable debug if there is a 4th argument
debug = len(sys.argv) == 5
with open(licence_file, 'rb') as f:
licence = f.read()
licence_spdx = b"/* SPDX-License-Identifier: " + spdx + b" */\n"
print(f"reading {file}")
with open(file, 'rb') as f:
whole_file = f.read()
try:
licence_loc = whole_file.index(licence)
except ValueError:
print("licence not found. Ignoring")
exit(0)
# Replace one the below pattern with nothing ## Pattern 1
# * <license>
# *whole_file = whole_file.replace(licence + b' *\n', b'')
## Pattern 2
# *
# * <license>whole_file = whole_file.replace(b' *\n' + licence, b'')
## Pattern 3
# /*
# * <license>
# */whole_file = whole_file.replace(b'/*\n' + licence + b' */\n', b'')
## Pattern 4
# *
# * <license>whole_file = whole_file.replace(b' * \n' + licence, b'')
if debug:
print(whole_file)
else:
with open('%s' % file, 'wb') as f:
f.write(licence_spdx)
f.write(whole_file)[1] https://lore.kernel.org/xen-devel/[email protected]/
Julien Grall (6):
xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 3) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 3)
xen/arch/x86/alternative.c | 14 +------------- xen/arch/x86/cpu/mcheck/amd_nonfatal.c | 14 +------------- xen/arch/x86/cpu/mcheck/mce_amd.c | 14 +------------- xen/arch/x86/cpu/mcheck/vmce.c | 14 +------------- xen/arch/x86/cpu/mcheck/x86_mca.h | 14 +------------- xen/arch/x86/cpu/mwait-idle.c | 13 +------------ xen/arch/x86/cpu/vpmu.c | 13 +------------ xen/arch/x86/cpu/vpmu_amd.c | 13 +------------ xen/arch/x86/cpu/vpmu_intel.c | 13 +------------ xen/arch/x86/genapic/x2apic.c | 13 +------------ xen/arch/x86/guest/hyperv/hyperv.c | 14 +------------- xen/arch/x86/guest/hyperv/private.h | 14 +------------- xen/arch/x86/guest/hyperv/tlb.c | 14 +------------- xen/arch/x86/guest/hyperv/util.c | 14 +------------- xen/arch/x86/guest/hypervisor.c | 14 +------------- xen/arch/x86/guest/xen/pvh-boot.c | 14 +------------- xen/arch/x86/guest/xen/xen.c | 14 +------------- xen/arch/x86/hvm/asid.c | 13 +------------ xen/arch/x86/hvm/dm.c | 13 +------------ xen/arch/x86/hvm/dom0_build.c | 13 +------------ xen/arch/x86/hvm/domain.c | 13 +------------ xen/arch/x86/hvm/grant_table.c | 14 +------------- xen/arch/x86/hvm/hpet.c | 13 +------------ xen/arch/x86/hvm/hvm.c | 13 +------------ xen/arch/x86/hvm/hypercall.c | 14 +------------- xen/arch/x86/hvm/intercept.c | 13 +------------ xen/arch/x86/hvm/io.c | 13 +------------ xen/arch/x86/hvm/ioreq.c | 13 +------------ xen/arch/x86/hvm/irq.c | 13 +------------ xen/arch/x86/hvm/mtrr.c | 13 +------------ xen/arch/x86/hvm/nestedhvm.c | 13 +------------ xen/arch/x86/hvm/pmtimer.c | 13 +------------ xen/arch/x86/hvm/quirks.c | 13 +------------ xen/arch/x86/hvm/save.c | 13 +------------ xen/arch/x86/hvm/svm/asid.c | 13 +------------ xen/arch/x86/hvm/svm/emulate.c | 13 +------------ xen/arch/x86/hvm/svm/intr.c | 13 +------------ xen/arch/x86/hvm/svm/nestedsvm.c | 13 +------------ xen/arch/x86/hvm/svm/svm.c | 13 +------------ xen/arch/x86/hvm/svm/svmdebug.c | 13 +------------ xen/arch/x86/hvm/svm/vmcb.c | 13 +------------ xen/arch/x86/hvm/vlapic.c | 13 +------------ xen/arch/x86/hvm/vmx/intr.c | 13 +------------ xen/arch/x86/hvm/vmx/vmcs.c | 13 +------------ xen/arch/x86/hvm/vmx/vmx.c | 13 +------------ xen/arch/x86/hvm/vmx/vvmx.c | 13 +------------ xen/arch/x86/hvm/vpt.c | 13 +------------ xen/arch/x86/hypercall.c | 14 +------------- xen/arch/x86/include/asm/altp2m.h | 13 +------------ xen/arch/x86/include/asm/endbr.h | 14 +------------- xen/arch/x86/include/asm/guest.h | 13 +------------ xen/arch/x86/include/asm/guest/hyperv-hcall.h | 13 +------------ xen/arch/x86/include/asm/guest/hyperv.h | 13 +------------ xen/arch/x86/include/asm/guest/hypervisor.h | 13 +------------ xen/arch/x86/include/asm/guest/pvh-boot.h | 13 +------------ xen/arch/x86/include/asm/guest/xen-hcall.h | 13 +------------ xen/arch/x86/include/asm/guest/xen.h | 13 +------------ xen/arch/x86/include/asm/guest_pt.h | 14 +------------- xen/arch/x86/include/asm/hap.h | 14 +------------- xen/arch/x86/include/asm/hvm/asid.h | 13 +------------ xen/arch/x86/include/asm/hvm/domain.h | 13 +------------ xen/arch/x86/include/asm/hvm/grant_table.h | 13 +------------ xen/arch/x86/include/asm/hvm/hvm.h | 13 +------------ xen/arch/x86/include/asm/hvm/io.h | 13 +------------ xen/arch/x86/include/asm/hvm/ioreq.h | 13 +------------ xen/arch/x86/include/asm/hvm/irq.h | 13 +------------ xen/arch/x86/include/asm/hvm/monitor.h | 13 +------------ xen/arch/x86/include/asm/hvm/nestedhvm.h | 13 +------------ xen/arch/x86/include/asm/hvm/save.h | 13 +------------ xen/arch/x86/include/asm/hvm/support.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/asid.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/emulate.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/intr.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/nestedsvm.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/svm.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/svmdebug.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/vmcb.h | 13 +------------ xen/arch/x86/include/asm/hvm/vcpu.h | 13 +------------ xen/arch/x86/include/asm/hvm/vlapic.h | 13 +------------ xen/arch/x86/include/asm/hvm/vm_event.h | 13 +------------ xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 13 +------------ xen/arch/x86/include/asm/hvm/vmx/vmx.h | 13 +------------ xen/arch/x86/include/asm/hvm/vmx/vvmx.h | 13 +------------ xen/arch/x86/include/asm/hvm/vpt.h | 13 +------------ xen/arch/x86/include/asm/iommu.h | 1 + xen/arch/x86/include/asm/ioreq.h | 13 +------------ xen/arch/x86/include/asm/mem_access.h | 14 +------------- xen/arch/x86/include/asm/mem_paging.h | 14 +------------- xen/arch/x86/include/asm/mem_sharing.h | 14 +------------- xen/arch/x86/include/asm/p2m.h | 14 +------------- xen/arch/x86/include/asm/paging.h | 14 +------------- xen/arch/x86/include/asm/pv/domain.h | 13 +------------ xen/arch/x86/include/asm/pv/grant_table.h | 13 +------------ xen/arch/x86/include/asm/pv/mm.h | 13 +------------ xen/arch/x86/include/asm/pv/shim.h | 13 +------------ xen/arch/x86/include/asm/pv/traps.h | 13 +------------ xen/arch/x86/include/asm/shstk.h | 14 +------------- xen/arch/x86/include/asm/spec_ctrl.h | 14 +------------- xen/arch/x86/include/asm/spec_ctrl_asm.h | 14 +------------- xen/arch/x86/include/asm/traps.h | 14 +------------- xen/arch/x86/include/asm/vm_event.h | 13 +------------ xen/arch/x86/include/asm/vpmu.h | 13 +------------ xen/arch/x86/include/asm/xenoprof.h | 14 +------------- xen/arch/x86/mm.c | 14 +------------- xen/arch/x86/mm/altp2m.c | 13 +------------ xen/arch/x86/mm/guest_walk.c | 14 +------------- xen/arch/x86/mm/hap/guest_walk.c | 13 +------------ xen/arch/x86/mm/hap/hap.c | 14 +------------- xen/arch/x86/mm/hap/nested_ept.c | 13 +------------ xen/arch/x86/mm/hap/nested_hap.c | 14 +------------- xen/arch/x86/mm/hap/private.h | 13 +------------ xen/arch/x86/mm/mem_access.c | 14 +------------- xen/arch/x86/mm/mem_paging.c | 14 +------------- xen/arch/x86/mm/mem_sharing.c | 14 +------------- xen/arch/x86/mm/mm-locks.h | 14 +------------- xen/arch/x86/mm/nested.c | 14 +------------- xen/arch/x86/mm/p2m-basic.c | 14 +------------- xen/arch/x86/mm/p2m-ept.c | 13 +------------ xen/arch/x86/mm/p2m-pod.c | 14 +------------- xen/arch/x86/mm/p2m-pt.c | 14 +------------- xen/arch/x86/mm/p2m.c | 14 +------------- xen/arch/x86/mm/p2m.h | 14 +------------- xen/arch/x86/mm/paging.c | 14 +------------- xen/arch/x86/mm/physmap.c | 14 +------------- xen/arch/x86/mm/shadow/common.c | 14 +------------- xen/arch/x86/mm/shadow/hvm.c | 14 +------------- xen/arch/x86/mm/shadow/multi.c | 14 +------------- xen/arch/x86/mm/shadow/multi.h | 14 +------------- xen/arch/x86/mm/shadow/private.h | 14 +------------- xen/arch/x86/mm/shadow/pv.c | 14 +------------- xen/arch/x86/mm/shadow/set.c | 14 +------------- xen/arch/x86/mm/shadow/types.h | 14 +------------- xen/arch/x86/msr.c | 14 +------------- xen/arch/x86/pv/callback.c | 13 +------------ xen/arch/x86/pv/descriptor-tables.c | 13 +------------ xen/arch/x86/pv/emul-gate-op.c | 14 +------------- xen/arch/x86/pv/emul-inv-op.c | 14 +------------- xen/arch/x86/pv/emul-priv-op.c | 14 +------------- xen/arch/x86/pv/emulate.c | 14 +------------- xen/arch/x86/pv/grant_table.c | 13 +------------ xen/arch/x86/pv/hypercall.c | 14 +------------- xen/arch/x86/pv/misc-hypercalls.c | 14 +------------- xen/arch/x86/pv/mm.c | 13 +------------ xen/arch/x86/pv/ro-page-fault.c | 14 +------------- xen/arch/x86/pv/shim.c | 14 +------------- xen/arch/x86/pv/traps.c | 14 +------------- xen/arch/x86/smpboot.c | 14 +------------- xen/arch/x86/spec_ctrl.c | 14 +------------- xen/arch/x86/traps.c | 14 +------------- xen/arch/x86/x86_64/mmconfig.h | 13 +------------ xen/arch/x86/x86_emulate/x86_emulate.c | 14 +------------- xen/arch/x86/x86_emulate/x86_emulate.h | 14 +------------- 152 files changed, 152 insertions(+), 1879 deletions(-)
Signature · 1 line
2.39.1
PATCH 1/6 xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c
From: Julien Grall <[email protected]>
It is easier to understand the license of a file when using SPDX.
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.c:
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; If not, see <http://www.gnu.org/licenses/>.
----
42sh> cat gpl-2.0.txt
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; If not, see <http://www.gnu.org/licenses/>.
42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0.txt GPL-2.0 {} \;
--- xen/arch/x86/cpu/mwait-idle.c | 13 +------------ xen/arch/x86/cpu/vpmu.c | 13 +------------ xen/arch/x86/cpu/vpmu_amd.c | 13 +------------ xen/arch/x86/cpu/vpmu_intel.c | 13 +------------ xen/arch/x86/genapic/x2apic.c | 13 +------------ xen/arch/x86/hvm/asid.c | 13 +------------ xen/arch/x86/hvm/dm.c | 13 +------------ xen/arch/x86/hvm/hpet.c | 13 +------------ xen/arch/x86/hvm/hvm.c | 13 +------------ xen/arch/x86/hvm/intercept.c | 13 +------------ xen/arch/x86/hvm/io.c | 13 +------------ xen/arch/x86/hvm/ioreq.c | 13 +------------ xen/arch/x86/hvm/irq.c | 13 +------------ xen/arch/x86/hvm/mtrr.c | 13 +------------ xen/arch/x86/hvm/nestedhvm.c | 13 +------------ xen/arch/x86/hvm/pmtimer.c | 13 +------------ xen/arch/x86/hvm/quirks.c | 13 +------------ xen/arch/x86/hvm/save.c | 13 +------------ xen/arch/x86/hvm/svm/asid.c | 13 +------------ xen/arch/x86/hvm/svm/emulate.c | 13 +------------ xen/arch/x86/hvm/svm/intr.c | 13 +------------ xen/arch/x86/hvm/svm/nestedsvm.c | 13 +------------ xen/arch/x86/hvm/svm/svm.c | 13 +------------ xen/arch/x86/hvm/svm/svmdebug.c | 13 +------------ xen/arch/x86/hvm/svm/vmcb.c | 13 +------------ xen/arch/x86/hvm/vlapic.c | 13 +------------ xen/arch/x86/hvm/vmx/intr.c | 13 +------------ xen/arch/x86/hvm/vmx/vmcs.c | 13 +------------ xen/arch/x86/hvm/vmx/vmx.c | 13 +------------ xen/arch/x86/hvm/vmx/vvmx.c | 13 +------------ xen/arch/x86/hvm/vpt.c | 13 +------------ xen/arch/x86/mm/altp2m.c | 13 +------------ xen/arch/x86/mm/hap/guest_walk.c | 13 +------------ xen/arch/x86/mm/hap/nested_ept.c | 13 +------------ xen/arch/x86/mm/p2m-ept.c | 13 +------------ 35 files changed, 35 insertions(+), 420 deletions(-)
xen/arch/x86/cpu/mwait-idle.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * mwait_idle.c - native hardware idle loop for modern processors * * Copyright (c) 2013, Intel Corporation. * Len Brown <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ /*
xen/arch/x86/cpu/vpmu.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpmu.c: PMU virtualization for HVM domain. * * Copyright (c) 2007, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* * Author: Haitao Shan <[email protected]> */ #include <xen/cpu.h>
xen/arch/x86/cpu/vpmu_amd.c +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpmu.c: PMU virtualization for HVM domain. *
@@ -7,18 +8,6 @@* Author: Wei Wang <[email protected]> * Tested by: Suravee Suthikulpanit <[email protected]> * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #include <xen/err.h>
xen/arch/x86/cpu/vpmu_intel.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpmu_core2.c: CORE 2 specific PMU virtualization for HVM domain. * * Copyright (c) 2007, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* * Author: Haitao Shan <[email protected]> */
xen/arch/x86/genapic/x2apic.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * x2APIC driver. * * Copyright (c) 2008, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/hvm/asid.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asid.c: ASID management * Copyright (c) 2007, Advanced Micro Devices, Inc. * Copyright (c) 2009, Citrix Systems, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/hvm/dm.c +1 -12
@@ -1,17 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2016 Citrix Systems Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/event.h>
xen/arch/x86/hvm/hpet.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hpet.c: HPET emulation for HVM guests. * Copyright (c) 2006, Intel Corporation. * Copyright (c) 2006, Keir Fraser <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <asm/hvm/vpt.h>
xen/arch/x86/hvm/hvm.c +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm.c: Common hardware virtual machine abstractions. * * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2005, International Business Machines Corporation. * Copyright (c) 2008, Citrix Systems, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/ctype.h>
xen/arch/x86/hvm/intercept.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * intercept.c: Handle performance critical I/O packets in hypervisor space * * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2008, Citrix Systems, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/ioreq.h>
xen/arch/x86/hvm/io.c +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * io.c: Handling I/O and interrupts. * * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2005, International Business Machines Corporation. * Copyright (c) 2008, Citrix Systems, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/hvm/ioreq.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm/io.c: hardware virtual machine I/O emulation * * Copyright (c) 2016 Citrix Systems Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain.h>
xen/arch/x86/hvm/irq.c +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * irq.c * * Interrupt distribution and delivery logic. * * Copyright (c) 2006, K A Fraser, XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/hvm/mtrr.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * mtrr.c: MTRR/PAT virtualization * * Copyright (c) 2007, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain_page.h>
xen/arch/x86/hvm/nestedhvm.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Nested HVM * Copyright (c) 2011, Advanced Micro Devices, Inc. * Author: Christoph Egger <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <asm/msr.h>
xen/arch/x86/hvm/pmtimer.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm/pmtimer.c: emulation of the ACPI PM timer * * Copyright (c) 2007, XenSource inc. * Copyright (c) 2006, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/sched.h>
xen/arch/x86/hvm/quirks.c +1 -12
@@ -1,17 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * x86/hvm/quirks.c -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/hvm/save.c +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm/save.c: Save and restore HVM guest's emulated hardware state. *
@@ -6,18 +7,6 @@* Copyright (c) 2007, Isaku Yamahata <yamahata at valinux co jp> * VA Linux Systems Japan K.K. * split x86 specific part -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h>
xen/arch/x86/hvm/svm/asid.c +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asid.c: handling ASIDs in SVM. * Copyright (c) 2007, Advanced Micro Devices, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <asm/amd.h>
xen/arch/x86/hvm/svm/emulate.c +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * emulate.c: handling SVM emulate instructions help. * Copyright (c) 2005 AMD Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/err.h>
xen/arch/x86/hvm/svm/intr.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * intr.c: Interrupt handling for SVM. * Copyright (c) 2005, AMD Inc. * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/hvm/svm/nestedsvm.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * nestedsvm.c: Nested Virtualization * Copyright (c) 2011, Advanced Micro Devices, Inc * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #include <asm/hvm/support.h>
xen/arch/x86/hvm/svm/svm.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * svm.c: handling SVM architecture-related VM exits * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2005-2007, Advanced Micro Devices, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h>
xen/arch/x86/hvm/svm/svmdebug.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * svmdebug.c: debug functions * Copyright (c) 2011, Advanced Micro Devices, Inc. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #include <xen/sched.h>
xen/arch/x86/hvm/svm/vmcb.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmcb.c: VMCB management * Copyright (c) 2005-2007, Advanced Micro Devices, Inc. * Copyright (c) 2004, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #include <xen/init.h>
xen/arch/x86/hvm/vlapic.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vlapic.c: virtualize LAPIC for HVM vcpus. * * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2006 Keir Fraser, XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/hvm/vmx/intr.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * intr.c: handling I/O, interrupts related VMX entry/exit * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2004-2007, XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/hvm/vmx/vmcs.c +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmcs.c: VMCS management * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/hvm/vmx/vmx.c +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmx.c: handling VMX architecture-related VM exits * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h>
xen/arch/x86/hvm/vmx/vvmx.c +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vvmx.c: Support virtual VMX for nested virtualization. *
@@ -5,18 +6,6 @@* Author: Qing He <[email protected]> * Eddie Dong <[email protected]> * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #include <xen/ioreq.h>
xen/arch/x86/hvm/vpt.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpt.c: Virtual Platform Timer * * Copyright (c) 2006, Xiaowei Yang, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/sched.h>
xen/arch/x86/mm/altp2m.c +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Alternate p2m HVM * Copyright (c) 2014, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <asm/hvm/hvm.h>
xen/arch/x86/mm/hap/guest_walk.c +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/x86/mm/hap/guest_walk.c * * Guest page table walker * Copyright (c) 2007, AMD Corporation (Wei Huang) * Copyright (c) 2007, XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain_page.h>
xen/arch/x86/mm/hap/nested_ept.c +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * nested_ept.c: Handling virtulized EPT for guest in nested case. * * Copyright (c) 2012, Intel Corporation * Xiantao Zhang <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/vm_event.h> #include <xen/event.h>
xen/arch/x86/mm/p2m-ept.c +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * ept-p2m.c: use the EPT page table as p2m * Copyright (c) 2007, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain_page.h>
Signature · 1 line
2.39.1
Re: [PATCH 1/6] xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c
Quoted 1 line · Julien Grall
This is replacing the below pattern with the SPDX tag GPL-2.0 in
The "GPL-2.0" identifier is actually deprecated:
https://spdx.org/licenses/GPL-2.0.html We should use "GPL-2.0-only" instead. https://spdx.org/licenses/GPL-2.0-only.html
Quoted 13 lines
xen/arch/x86/*.c:
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; If not, see <http://www.gnu.org/licenses/>.
Signature · 1 line
Anthony PERARD
Re: [PATCH 1/6] xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c
Hi Anthony,
Quoted 5 lines · Anthony PERARD
Quoted 1 line · Julien Grall
This is replacing the below pattern with the SPDX tag GPL-2.0 in
The "GPL-2.0" identifier is actually deprecated:
https://spdx.org/licenses/GPL-2.0.html
I hadn't realized that. It looks like there are many use of GPL-2.0 within Xen and LICENSES/GPL-2.0 doesn't mention the deprecation.
I will add a patch to update LICENSES/GPL-2.0 and respin this series to switch to...
Quoted 1 line
We should use "GPL-2.0-only" instead.
... GPL-2.0-only.
Cheers,
Signature · 1 line
Julien Grall
PATCH 2/6 xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2)
In reply to Julien GrallFrom: Julien Grall <[email protected]>
It is easier to understand the license of a file when using SPDX.
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.c:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
----
42sh> cat gpl-2.0-pattern-2.txt
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0-pattern-2.txt GPL-2.0 {} \;
--- xen/arch/x86/alternative.c | 14 +------------- xen/arch/x86/cpu/mcheck/amd_nonfatal.c | 14 +------------- xen/arch/x86/cpu/mcheck/mce_amd.c | 14 +------------- xen/arch/x86/cpu/mcheck/vmce.c | 14 +------------- xen/arch/x86/guest/hyperv/hyperv.c | 14 +------------- xen/arch/x86/guest/hyperv/tlb.c | 14 +------------- xen/arch/x86/guest/hyperv/util.c | 14 +------------- xen/arch/x86/guest/hypervisor.c | 14 +------------- xen/arch/x86/guest/xen/pvh-boot.c | 14 +------------- xen/arch/x86/guest/xen/xen.c | 14 +------------- xen/arch/x86/hvm/grant_table.c | 14 +------------- xen/arch/x86/hvm/hypercall.c | 14 +------------- xen/arch/x86/hypercall.c | 14 +------------- xen/arch/x86/mm.c | 14 +------------- xen/arch/x86/mm/guest_walk.c | 14 +------------- xen/arch/x86/mm/hap/hap.c | 14 +------------- xen/arch/x86/mm/hap/nested_hap.c | 14 +------------- xen/arch/x86/mm/mem_access.c | 14 +------------- xen/arch/x86/mm/mem_paging.c | 14 +------------- xen/arch/x86/mm/mem_sharing.c | 14 +------------- xen/arch/x86/mm/nested.c | 14 +------------- xen/arch/x86/mm/p2m-basic.c | 14 +------------- xen/arch/x86/mm/p2m-pod.c | 14 +------------- xen/arch/x86/mm/p2m-pt.c | 14 +------------- xen/arch/x86/mm/p2m.c | 14 +------------- xen/arch/x86/mm/paging.c | 14 +------------- xen/arch/x86/mm/physmap.c | 14 +------------- xen/arch/x86/mm/shadow/common.c | 14 +------------- xen/arch/x86/mm/shadow/hvm.c | 14 +------------- xen/arch/x86/mm/shadow/multi.c | 14 +------------- xen/arch/x86/mm/shadow/pv.c | 14 +------------- xen/arch/x86/mm/shadow/set.c | 14 +------------- xen/arch/x86/msr.c | 14 +------------- xen/arch/x86/pv/emul-gate-op.c | 14 +------------- xen/arch/x86/pv/emul-inv-op.c | 14 +------------- xen/arch/x86/pv/emul-priv-op.c | 14 +------------- xen/arch/x86/pv/emulate.c | 14 +------------- xen/arch/x86/pv/hypercall.c | 14 +------------- xen/arch/x86/pv/misc-hypercalls.c | 14 +------------- xen/arch/x86/pv/ro-page-fault.c | 14 +------------- xen/arch/x86/pv/shim.c | 14 +------------- xen/arch/x86/pv/traps.c | 14 +------------- xen/arch/x86/smpboot.c | 14 +------------- xen/arch/x86/spec_ctrl.c | 14 +------------- xen/arch/x86/traps.c | 14 +------------- xen/arch/x86/x86_emulate/x86_emulate.c | 14 +------------- 46 files changed, 46 insertions(+), 598 deletions(-)
xen/arch/x86/alternative.c +1 -13
@@ -1,18 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * alternative.c -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/delay.h>
xen/arch/x86/cpu/mcheck/amd_nonfatal.c +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * MCA implementation for AMD CPUs * Copyright (c) 2007 Advanced Micro Devices, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */
xen/arch/x86/cpu/mcheck/mce_amd.c +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * common MCA implementation for AMD CPUs. * Copyright (c) 2012-2014 Advanced Micro Devices, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ /* K8 common MCA documentation published at
xen/arch/x86/cpu/mcheck/vmce.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmce.c - provide software emulated vMCE support to guest * * Copyright (C) 2010, 2011 Jiang, Yunhong <[email protected]> * Copyright (C) 2012, 2013 Liu, Jinsong <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/guest/hyperv/hyperv.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/hyperv/hyperv.c * * Support for detecting and running under Hyper-V. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2019 Microsoft. */ #include <xen/init.h>
xen/arch/x86/guest/hyperv/tlb.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/hyperv/tlb.c * * Support for TLB management using hypercalls * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2020 Microsoft. */
xen/arch/x86/guest/hyperv/util.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/hyperv/util.c * * Hyper-V utility functions * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2020 Microsoft. */
xen/arch/x86/guest/hypervisor.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/hypervisor.c * * Support for detecting and running under a hypervisor. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2019 Microsoft. */ #include <xen/cpumask.h>
xen/arch/x86/guest/xen/pvh-boot.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/pvh-boot.c * * PVH boot time support * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */ #include <xen/init.h>
xen/arch/x86/guest/xen/xen.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/xen.c * * Support for detecting and running under Xen. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */ #include <xen/event.h>
xen/arch/x86/hvm/grant_table.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/hvm/grant_table.c * * Grant table interfaces for HVM guests * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/hvm/hypercall.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/hvm/hypercall.c * * HVM hypercall dispatching routines * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */ #include <xen/lib.h>
xen/arch/x86/hypercall.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/hypercall.c * * Common x86 hypercall infrastructure. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2015,2016 Citrix Systems Ltd. */
xen/arch/x86/mm.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm.c * * Copyright (c) 2002-2005 K A Fraser * Copyright (c) 2004 Christian Limpach -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ /*
xen/arch/x86/mm/guest_walk.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/guest_walk.c *
@@ -6,19 +7,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/mm/hap/hap.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/hap/hap.c * * hardware assisted paging * Copyright (c) 2007 Advanced Micro Devices (Wei Huang) * Parts of this code are Copyright (c) 2007 by XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/mm/hap/nested_hap.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/hap/nested_hap.c * * Code for Nested Virtualization * Copyright (c) 2011 Advanced Micro Devices -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/vm_event.h>
xen/arch/x86/mm/mem_access.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/mem_access.c *
@@ -6,19 +7,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h> /* copy_from_guest() */
xen/arch/x86/mm/mem_paging.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/mem_paging.c * * Memory paging support. * * Copyright (c) 2009 Citrix Systems, Inc. (Patrick Colp) -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */
xen/arch/x86/mm/mem_sharing.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/mem_sharing.c *
@@ -5,19 +6,6 @@* * Copyright (c) 2011 GridCentric, Inc. (Adin Scannell & Andres Lagar-Cavilla) * Copyright (c) 2009 Citrix Systems, Inc. (Grzegorz Milos) -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/mm/nested.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/nested.c *
@@ -6,19 +7,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/sched.h>
xen/arch/x86/mm/p2m-basic.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/p2m-basic.c *
@@ -8,19 +9,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/event.h>
xen/arch/x86/mm/p2m-pod.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/p2m-pod.c * * Populate-on-demand p2m entries. * * Copyright (c) 2009-2011 Citrix Systems, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/event.h>
xen/arch/x86/mm/p2m-pt.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/p2m-pt.c *
@@ -9,19 +10,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/vm_event.h>
xen/arch/x86/mm/p2m.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/p2m.c *
@@ -8,19 +9,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/iommu.h>
xen/arch/x86/mm/paging.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/paging.c * * x86 specific paging support * Copyright (c) 2007 Advanced Micro Devices (Wei Huang) * Copyright (c) 2007 XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/mm/physmap.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/physmap.c *
@@ -6,19 +7,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/iommu.h>
xen/arch/x86/mm/shadow/common.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/common.c *
@@ -5,19 +6,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/ioreq.h>
xen/arch/x86/mm/shadow/hvm.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/hvm.c
@@ -6,19 +7,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain_page.h>
xen/arch/x86/mm/shadow/multi.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/multi.c *
@@ -5,19 +6,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/mm/shadow/pv.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/pv.c *
@@ -5,19 +6,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/mm/shadow/set.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/set.c *
@@ -5,19 +6,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #define GUEST_PAGING_LEVELS 0
xen/arch/x86/msr.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/msr.c * * Policy objects for Model-Specific Registers. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/pv/emul-gate-op.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/emul-gate-op.c * * Emulate gate op for PV guests * * Modifications to Linux original are copyright (c) 2002-2004, K A Fraser -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/err.h>
xen/arch/x86/pv/emul-inv-op.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/emul-inv-op.c * * Emulate invalid op for PV guests * * Modifications to Linux original are copyright (c) 2002-2004, K A Fraser -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <asm/pv/trace.h>
xen/arch/x86/pv/emul-priv-op.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/emul-priv-op.c * * Emulate privileged instructions for PV guests * * Modifications to Linux original are copyright (c) 2002-2004, K A Fraser -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain_page.h>
xen/arch/x86/pv/emulate.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/emulate.c * * Common PV emulation code * * Modifications to Linux original are copyright (c) 2002-2004, K A Fraser -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h>
xen/arch/x86/pv/hypercall.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/hypercall.c * * PV hypercall dispatching routines * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/pv/misc-hypercalls.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/misc-hypercalls.c * * Misc hypercall handlers * * Modifications to Linux original are copyright (c) 2002-2004, K A Fraser -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/hypercall.h>
xen/arch/x86/pv/ro-page-fault.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/ro-page-fault.c *
@@ -5,19 +6,6 @@* * Copyright (c) 2002-2005 K A Fraser * Copyright (c) 2004 Christian Limpach -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <asm/pv/trace.h>
xen/arch/x86/pv/shim.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/shim.c * * Functionaltiy for PV Shim mode * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */ #include <xen/event.h>
xen/arch/x86/pv/traps.c +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/pv/traps.c * * PV low level entry points. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/smpboot.c +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * x86 SMP booting functions * * This inherits a great deal from Linux's SMP boot code: * (c) 1995 Alan Cox, Building #3 <[email protected]> * (c) 1998, 1999, 2000 Ingo Molnar <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/init.h>
xen/arch/x86/spec_ctrl.c +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/spec_ctrl.c * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017-2018 Citrix Systems Ltd. */ #include <xen/errno.h>
xen/arch/x86/traps.c +1 -13
@@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/traps.c * * Modifications to Linux original are copyright (c) 2002-2004, K A Fraser -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ /*
xen/arch/x86/x86_emulate/x86_emulate.c +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * x86_emulate.c *
@@ -5,19 +6,6 @@* * Copyright (c) 2005-2007 Keir Fraser * Copyright (c) 2005-2007 XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ /* Operand sizes: 8-bit operands or specified/overridden size. */
Signature · 1 line
2.39.1
Re: [PATCH 2/6] xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2)
Quoted 7 lines · Julien Grall
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.c:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
This boilerplate allow to use newer version of the GPL license, the identifier for that is "GPL-2.0-or-later".
https://spdx.org/licenses/GPL-2.0-or-later.html
Quoted 7 lines
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
Cheers,
Signature · 1 line
Anthony PERARD
Re: [PATCH 2/6] xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2)
Hi Anthony,
Quoted 11 lines · Anthony PERARD
Quoted 7 lines · Julien Grall
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.c:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.This boilerplate allow to use newer version of the GPL license, the identifier for that is "GPL-2.0-or-later".
Whoops! I will switch to GPL-2.0-or-later.
Quoted 9 lines
https://spdx.org/licenses/GPL-2.0-or-later.htmlQuoted 7 lines
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
Cheers,
Signature · 1 line
Julien Grall
PATCH 3/6 xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h
In reply to Julien GrallFrom: Julien Grall <[email protected]>
It is easier to understand the license of a file when using SPDX.
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.h:
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; If not, see <http://www.gnu.org/licenses/>.
----
42sh> cat gpl-2.0.txt
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; If not, see <http://www.gnu.org/licenses/>.
42sh> find xen/arch/x86/ -name '*.h' -exec replace_license.py gpl-2.0.txt GPL-2.0 {} \;
--- xen/arch/x86/include/asm/altp2m.h | 13 +------------ xen/arch/x86/include/asm/hvm/asid.h | 13 +------------ xen/arch/x86/include/asm/hvm/domain.h | 13 +------------ xen/arch/x86/include/asm/hvm/hvm.h | 13 +------------ xen/arch/x86/include/asm/hvm/io.h | 13 +------------ xen/arch/x86/include/asm/hvm/ioreq.h | 13 +------------ xen/arch/x86/include/asm/hvm/irq.h | 13 +------------ xen/arch/x86/include/asm/hvm/monitor.h | 13 +------------ xen/arch/x86/include/asm/hvm/nestedhvm.h | 13 +------------ xen/arch/x86/include/asm/hvm/save.h | 13 +------------ xen/arch/x86/include/asm/hvm/support.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/asid.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/emulate.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/intr.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/nestedsvm.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/svm.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/svmdebug.h | 13 +------------ xen/arch/x86/include/asm/hvm/svm/vmcb.h | 13 +------------ xen/arch/x86/include/asm/hvm/vcpu.h | 13 +------------ xen/arch/x86/include/asm/hvm/vlapic.h | 13 +------------ xen/arch/x86/include/asm/hvm/vm_event.h | 13 +------------ xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 13 +------------ xen/arch/x86/include/asm/hvm/vmx/vmx.h | 13 +------------ xen/arch/x86/include/asm/hvm/vmx/vvmx.h | 13 +------------ xen/arch/x86/include/asm/hvm/vpt.h | 13 +------------ xen/arch/x86/include/asm/iommu.h | 1 + xen/arch/x86/include/asm/ioreq.h | 13 +------------ xen/arch/x86/include/asm/vm_event.h | 13 +------------ xen/arch/x86/include/asm/vpmu.h | 13 +------------ xen/arch/x86/mm/hap/private.h | 13 +------------ xen/arch/x86/x86_64/mmconfig.h | 13 +------------ 31 files changed, 31 insertions(+), 360 deletions(-)
xen/arch/x86/include/asm/altp2m.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Alternate p2m HVM * Copyright (c) 2014, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_ALTP2M_H
xen/arch/x86/include/asm/hvm/asid.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asid.h: ASID management * Copyright (c) 2007, Advanced Micro Devices, Inc. * Copyright (c) 2009, Citrix Systems, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_ASID_H__
xen/arch/x86/include/asm/hvm/domain.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * domain.h: HVM per domain definitions * * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2005, International Business Machines Corporation -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_DOMAIN_H__
xen/arch/x86/include/asm/hvm/hvm.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm.h: Hardware virtual machine assist interface definitions. * * Leendert van Doorn, [email protected] * Copyright (c) 2005, International Business Machines Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_HVM_H__
xen/arch/x86/include/asm/hvm/io.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * io.h: HVM IO support * * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_IO_H__
xen/arch/x86/include/asm/hvm/ioreq.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm.h: Hardware virtual machine assist interface definitions. * * Copyright (c) 2016 Citrix Systems Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_IOREQ_H__
xen/arch/x86/include/asm/hvm/irq.h +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * irq.h * * Interrupt distribution and delivery logic. * * Copyright (c) 2006, K A Fraser, XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_IRQ_H__
xen/arch/x86/include/asm/hvm/monitor.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-x86/hvm/monitor.h * * Arch-specific hardware virtual machine monitor abstractions. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_MONITOR_H__
xen/arch/x86/include/asm/hvm/nestedhvm.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Nested HVM * Copyright (c) 2011, Advanced Micro Devices, Inc. * Author: Christoph Egger <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _HVM_NESTEDHVM_H
xen/arch/x86/include/asm/hvm/save.h +1 -12
@@ -1,17 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * save.h: HVM support routines for save/restore -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __XEN_HVM_SAVE_H__
xen/arch/x86/include/asm/hvm/support.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * support.h: HVM support routines used by VT-x and SVM. * * Leendert van Doorn, [email protected] * Copyright (c) 2005, International Business Machines Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_SUPPORT_H__
xen/arch/x86/include/asm/hvm/svm/asid.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asid.h: handling ASIDs in SVM. * Copyright (c) 2007, Advanced Micro Devices, Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_SVM_ASID_H__
xen/arch/x86/include/asm/hvm/svm/emulate.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * emulate.h: SVM instruction emulation bits. * Copyright (c) 2005, AMD Corporation. * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_SVM_EMULATE_H__
xen/arch/x86/include/asm/hvm/svm/intr.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * intr.h: SVM Architecture related definitions * Copyright (c) 2005, AMD Corporation. * Copyright (c) 2004, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_SVM_INTR_H__
xen/arch/x86/include/asm/hvm/svm/nestedsvm.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * nestedsvm.h: Nested Virtualization * Copyright (c) 2011, Advanced Micro Devices, Inc * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_SVM_NESTEDSVM_H__#define __ASM_X86_HVM_SVM_NESTEDSVM_H__
xen/arch/x86/include/asm/hvm/svm/svm.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * svm.h: SVM Architecture related definitions * Copyright (c) 2005, AMD Corporation. * Copyright (c) 2004, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_SVM_H__
xen/arch/x86/include/asm/hvm/svm/svmdebug.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * svmdebug.h: SVM related debug defintions * Copyright (c) 2011, AMD Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_SVM_SVMDEBUG_H__
xen/arch/x86/include/asm/hvm/svm/vmcb.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmcb.h: VMCB related definitions * Copyright (c) 2005-2007, Advanced Micro Devices, Inc * Copyright (c) 2004, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_SVM_VMCB_H__#define __ASM_X86_HVM_SVM_VMCB_H__
xen/arch/x86/include/asm/hvm/vcpu.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vcpu.h: HVM per vcpu definitions * * Copyright (c) 2005, International Business Machines Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_VCPU_H__
xen/arch/x86/include/asm/hvm/vlapic.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm_vlapic.h: virtualize LAPIC definitions. * * Copyright (c) 2004, Intel Corporation. * Copyright (c) 2006 Keir Fraser, XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_VLAPIC_H__
xen/arch/x86/include/asm/hvm/vm_event.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-x86/hvm/vm_event.h * * Hardware virtual machine vm_event abstractions. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_VM_EVENT_H__
xen/arch/x86/include/asm/hvm/vmx/vmcs.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmcs.h: VMCS related definitions * Copyright (c) 2004, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_VMX_VMCS_H__#define __ASM_X86_HVM_VMX_VMCS_H__
xen/arch/x86/include/asm/hvm/vmx/vmx.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vmx.h: VMX Architecture related definitions * Copyright (c) 2004, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_VMX_VMX_H__#define __ASM_X86_HVM_VMX_VMX_H__
xen/arch/x86/include/asm/hvm/vmx/vvmx.h +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vvmx.h: Support virtual VMX for nested virtualization.
@@ -6,18 +7,6 @@* Author: Qing He <[email protected]> * Eddie Dong <[email protected]> * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __ASM_X86_HVM_VVMX_H__#define __ASM_X86_HVM_VVMX_H__
xen/arch/x86/include/asm/hvm/vpt.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpt.h: Virtual Platform Timer definitions * * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_VPT_H__
xen/arch/x86/include/asm/iommu.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License,
xen/arch/x86/include/asm/ioreq.h +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * ioreq.h: Hardware virtual machine assist interface definitions. *
@@ -5,18 +6,6 @@* from the common code. * * Copyright (c) 2016 Citrix Systems Inc. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_IOREQ_H__
xen/arch/x86/include/asm/vm_event.h +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vm_event.h: architecture specific vm_event handling routines * * Copyright (c) 2015 Tamas K Lengyel ([email protected]) -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_VM_EVENT_H__
xen/arch/x86/include/asm/vpmu.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpmu.h: PMU virtualization for HVM domain. * * Copyright (c) 2007, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* * Author: Haitao Shan <[email protected]> */
xen/arch/x86/mm/hap/private.h +1 -12
@@ -1,20 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/x86/mm/hap/private.h * * Copyright (c) 2007, AMD Corporation (Wei Huang) * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* */ #ifndef __HAP_PRIVATE_H__#define __HAP_PRIVATE_H__
xen/arch/x86/x86_64/mmconfig.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2006, Intel Corporation. * -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. -* * Author: Allen Kay <[email protected]> - adapted from linux */
Signature · 1 line
2.39.1
Re: [PATCH 3/6] xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h
Hi,
Quoted 30 lines · Julien Grall
xen/arch/x86/include/asm/hvm/vpt.h +1
-12@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * vpt.h: Virtual Platform Timer definitions * * Copyright (c) 2004, Intel Corporation. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -* -* You should have received a copy of the GNU General Public License along with -* this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_HVM_VPT_H__xen/arch/x86/include/asm/iommu.h +0
-0
xen/arch/x86/include/asm/iommu.h line 1
Quoted 1 line
xen/arch/x86/include/asm/iommu.h +1
-0@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */
Hmmm... I didn't notice that the licence text wasn't removed in iommu.h. It looks like this is...
xen/arch/x86/include/asm/iommu.h line 4
Quoted 3 lines
xen/arch/x86/include/asm/iommu.h +0
-0/* * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License,
... because '*/' is the indented the usual way. I will add the pattern in the python script and also harden it to throw an error if it can't replace the licence text.
Cheers,
Signature · 1 line
Julien Grall
PATCH 4/6 xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 2)
In reply to Julien GrallFrom: Julien Grall <[email protected]>
It is easier to understand the license of a file when using SPDX.
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.h:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
----
42sh> cat gpl-2.0-pattern-2.txt
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see <http://www.gnu.org/licenses/>.
42sh> find xen/arch/x86/ -name '*.h' -exec replace_license.py gpl-2.0-pattern-2.txt GPL-2.0 {} \;
--- xen/arch/x86/cpu/mcheck/x86_mca.h | 14 +------------- xen/arch/x86/guest/hyperv/private.h | 14 +------------- xen/arch/x86/include/asm/endbr.h | 14 +------------- xen/arch/x86/include/asm/guest_pt.h | 14 +------------- xen/arch/x86/include/asm/hap.h | 14 +------------- xen/arch/x86/include/asm/mem_access.h | 14 +------------- xen/arch/x86/include/asm/mem_paging.h | 14 +------------- xen/arch/x86/include/asm/mem_sharing.h | 14 +------------- xen/arch/x86/include/asm/p2m.h | 14 +------------- xen/arch/x86/include/asm/paging.h | 14 +------------- xen/arch/x86/include/asm/shstk.h | 14 +------------- xen/arch/x86/include/asm/spec_ctrl.h | 14 +------------- xen/arch/x86/include/asm/spec_ctrl_asm.h | 14 +------------- xen/arch/x86/include/asm/traps.h | 14 +------------- xen/arch/x86/include/asm/xenoprof.h | 14 +------------- xen/arch/x86/mm/mm-locks.h | 14 +------------- xen/arch/x86/mm/p2m.h | 14 +------------- xen/arch/x86/mm/shadow/multi.h | 14 +------------- xen/arch/x86/mm/shadow/private.h | 14 +------------- xen/arch/x86/mm/shadow/types.h | 14 +------------- xen/arch/x86/x86_emulate/x86_emulate.h | 14 +------------- 21 files changed, 21 insertions(+), 273 deletions(-)
xen/arch/x86/cpu/mcheck/x86_mca.h +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * MCA implementation for AMD CPUs * Copyright (c) 2007-2012 Advanced Micro Devices, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef X86_MCA_H
xen/arch/x86/guest/hyperv/private.h +1 -13
@@ -1,21 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/guest/hyperv/private.h * * Definitions / declarations only useful to Hyper-V code. * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2020 Microsoft. */
xen/arch/x86/include/asm/endbr.h +1 -13
@@ -1,17 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2021-2022 Citrix Systems Ltd. */ #ifndef XEN_ASM_ENDBR_H
xen/arch/x86/include/asm/guest_pt.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * xen/asm-x86/guest_pt.h *
@@ -10,19 +11,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _XEN_ASM_GUEST_PT_H
xen/arch/x86/include/asm/hap.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/hap.h *
@@ -7,19 +8,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _XEN_HAP_H
xen/arch/x86/include/asm/mem_access.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/mem_access.h *
@@ -8,19 +9,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_MEM_ACCESS_H__
xen/arch/x86/include/asm/mem_paging.h +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/mem_paging.h * * Memory paging support. * * Copyright (c) 2009 Citrix Systems, Inc. (Patrick Colp) -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_MEM_PAGING_H__
xen/arch/x86/include/asm/mem_sharing.h +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/mem_sharing.h * * Memory sharing support. * * Copyright (c) 2009 Citrix Systems, Inc. (Grzegorz Milos) -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __MEM_SHARING_H__#define __MEM_SHARING_H__
xen/arch/x86/include/asm/p2m.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/paging.h *
@@ -8,19 +9,6 @@* Parts of this code are Copyright (c) 2006-2007 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _XEN_ASM_X86_P2M_H
xen/arch/x86/include/asm/paging.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/paging.h *
@@ -6,19 +7,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _XEN_PAGING_H
xen/arch/x86/include/asm/shstk.h +1 -13
@@ -1,17 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2022 Citrix Systems Ltd. */ #ifndef XEN_ASM_SHSTK_H
xen/arch/x86/include/asm/spec_ctrl.h +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/spec_ctrl.h * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017-2018 Citrix Systems Ltd. */
xen/arch/x86/include/asm/spec_ctrl_asm.h +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * include/asm-x86/spec_ctrl.h * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017-2018 Citrix Systems Ltd. */
xen/arch/x86/include/asm/traps.h +1 -13
@@ -1,19 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2007, 2008 Advanced Micro Devices, Inc. * Author: Christoph Egger <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef ASM_TRAP_H
xen/arch/x86/include/asm/xenoprof.h +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/xenoprof.h * xenoprof x86 arch specific header file * * Copyright (c) 2006 Isaku Yamahata <yamahata at valinux co jp> * VA Linux Systems Japan K.K. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __ASM_X86_XENOPROF_H__
xen/arch/x86/mm/mm-locks.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/mm-locks.h *
@@ -7,19 +8,6 @@* Copyright (c) 2007 Advanced Micro Devices (Wei Huang) * Copyright (c) 2006-2007 XenSource Inc. * Copyright (c) 2006 Michael A Fetterman -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _MM_LOCKS_H
xen/arch/x86/mm/p2m.h +1 -13
@@ -1,18 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/p2m.h -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ struct p2m_domain *p2m_init_one (struct domain *d);
xen/arch/x86/mm/shadow/multi.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/multi.h *
@@ -5,19 +6,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ extern int
xen/arch/x86/mm/shadow/private.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/private.h *
@@ -5,19 +6,6 @@* Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _XEN_SHADOW_PRIVATE_H
xen/arch/x86/mm/shadow/types.h +1 -13
@@ -1,22 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * arch/x86/mm/shadow/types.h * * Parts of this code are Copyright (c) 2006 by XenSource Inc. * Parts of this code are Copyright (c) 2006 by Michael A Fetterman * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef _XEN_SHADOW_TYPES_H
xen/arch/x86/x86_emulate/x86_emulate.h +1 -13
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * x86_emulate.h *
@@ -5,19 +6,6 @@* * Copyright (c) 2005-2007 Keir Fraser * Copyright (c) 2005-2007 XenSource Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __X86_EMULATE_H__
Signature · 1 line
2.39.1
PATCH 5/6 xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 3)
In reply to Julien GrallFrom: Julien Grall <[email protected]>
It is easier to understand the license of a file when using SPDX.
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.c:
* This program is free software; you can redistribute it and/or
* modify it under the terms and conditions of the GNU General Public
* License, version 2, as published by the Free Software Foundation. *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; If not, see <http://www.gnu.org/licenses/>.
----
42sh> cat gpl-2.0-pattern-3.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms and conditions of the GNU General Public
* License, version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; If not, see <http://www.gnu.org/licenses/>.
42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0-pattern-3.txt GPL-2.0 {} \;
--- xen/arch/x86/hvm/dom0_build.c | 13 +------------ xen/arch/x86/hvm/domain.c | 13 +------------ xen/arch/x86/pv/callback.c | 13 +------------ xen/arch/x86/pv/descriptor-tables.c | 13 +------------ xen/arch/x86/pv/grant_table.c | 13 +------------ xen/arch/x86/pv/mm.c | 13 +------------ 6 files changed, 6 insertions(+), 72 deletions(-)
xen/arch/x86/hvm/dom0_build.c +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * hvm/dom0_build.c * * Dom0 builder for PVH guest. * * Copyright (C) 2017 Citrix Systems R&D -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/acpi.h>
xen/arch/x86/hvm/domain.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * HVM domain specific functions. * * Copyright (C) 2017 Citrix Systems R&D -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/domain_page.h>
xen/arch/x86/pv/callback.c +1 -12
@@ -1,19 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * pv/callback.c * * hypercall handles and helper functions for guest callback -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/event.h>
xen/arch/x86/pv/descriptor-tables.c +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/x86/pv/descriptor-tables.c *
@@ -5,18 +6,6 @@* * Copyright (c) 2002-2005 K A Fraser * Copyright (c) 2004 Christian Limpach -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h>
xen/arch/x86/pv/grant_table.c +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * pv/grant_table.c * * Grant table interfaces for PV guests * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/types.h>
xen/arch/x86/pv/mm.c +1 -12
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * pv/mm.c *
@@ -5,18 +6,6 @@* * Copyright (c) 2002-2005 K A Fraser * Copyright (c) 2004 Christian Limpach -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #include <xen/guest_access.h>
Signature · 1 line
2.39.1
PATCH 6/6 xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 3)
In reply to Julien GrallFrom: Julien Grall <[email protected]>
It is easier to understand the license of a file when using SPDX.
This is replacing the below pattern with the SPDX tag GPL-2.0 in xen/arch/x86/*.h:
* This program is free software; you can redistribute it and/or
* modify it under the terms and conditions of the GNU General Public
* License, version 2, as published by the Free Software Foundation. *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; If not, see <http://www.gnu.org/licenses/>.
----
42sh> cat gpl-2.0-pattern-3.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms and conditions of the GNU General Public
* License, version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; If not, see <http://www.gnu.org/licenses/>.
42sh> find xen/arch/x86/ -name '*.h' -exec replace_license.py gpl-2.0-pattern-3.txt GPL-2.0 {} \;
--- xen/arch/x86/include/asm/guest.h | 13 +------------ xen/arch/x86/include/asm/guest/hyperv-hcall.h | 13 +------------ xen/arch/x86/include/asm/guest/hyperv.h | 13 +------------ xen/arch/x86/include/asm/guest/hypervisor.h | 13 +------------ xen/arch/x86/include/asm/guest/pvh-boot.h | 13 +------------ xen/arch/x86/include/asm/guest/xen-hcall.h | 13 +------------ xen/arch/x86/include/asm/guest/xen.h | 13 +------------ xen/arch/x86/include/asm/hvm/grant_table.h | 13 +------------ xen/arch/x86/include/asm/pv/domain.h | 13 +------------ xen/arch/x86/include/asm/pv/grant_table.h | 13 +------------ xen/arch/x86/include/asm/pv/mm.h | 13 +------------ xen/arch/x86/include/asm/pv/shim.h | 13 +------------ xen/arch/x86/include/asm/pv/traps.h | 13 +------------ 13 files changed, 13 insertions(+), 156 deletions(-)
xen/arch/x86/include/asm/guest.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/include/asm/guest/hyperv-hcall.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/hyperv-hcall.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2019 Microsoft. */
xen/arch/x86/include/asm/guest/hyperv.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/hyperv.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2019 Microsoft. */
xen/arch/x86/include/asm/guest/hypervisor.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/hypervisor.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2019 Microsoft. */
xen/arch/x86/include/asm/guest/pvh-boot.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/pvh-boot.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/include/asm/guest/xen-hcall.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/xen-hcall.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/include/asm/guest/xen.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/xen.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/include/asm/hvm/grant_table.h +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asm-x86/hvm/grant_table.h * * Grant table interfaces for HVM guests * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __X86_HVM_GRANT_TABLE_H__
xen/arch/x86/include/asm/pv/domain.h +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * pv/domain.h * * PV guest interface definitions * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __X86_PV_DOMAIN_H__
xen/arch/x86/include/asm/pv/grant_table.h +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asm-x86/pv/grant_table.h * * Grant table interfaces for PV guests * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __X86_PV_GRANT_TABLE_H__
xen/arch/x86/include/asm/pv/mm.h +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * asm-x86/pv/mm.h * * Memory management interfaces for PV guests * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __X86_PV_MM_H__
xen/arch/x86/include/asm/pv/shim.h +1 -12
@@ -1,18 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * asm-x86/guest/shim.h * -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. -* * Copyright (c) 2017 Citrix Systems Ltd. */
xen/arch/x86/include/asm/pv/traps.h +1 -12
@@ -1,21 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * pv/traps.h * * PV guest traps interface definitions * * Copyright (C) 2017 Wei Liu <[email protected]> -* -* This program is free software; you can redistribute it and/or -* modify it under the terms and conditions of the GNU General Public -* License, version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public -* License along with this program; If not, see <http://www.gnu.org/licenses/>. */ #ifndef __X86_PV_TRAPS_H__
Signature · 1 line
2.39.1
Quoted 3 lines · Julien Grall
This is a first attempt to replace all the full license text with SPX tag in xen/arch/x86/. For now, this is only covering files with GPL 2.0 and 3 different patterns.
For clarification - the three patterns mentioned here are the three slightly differently formatted/spelled versions of effectively the same text, not ...
Quoted 53 lines
I have used the script below to remove the full license and add an SPDX tag. The script is based on the work from Anthony [1]
42sh> cat
replace_license.py
#!/usr/bin/python3
## We are opening/writing to files using the binary mode to avoid ## python interpreting the content (reading./drivers/video/font_8x14.c## will throw some encoding error otherwise).import sys
if len(sys.argv) < 4:
print("./replace_license <licence-file> <spdx> <file> [debug]") exit(1)
licence_file= sys.argv[1]
spdx =str.encode(sys.argv[2])
file = sys.argv[3]
# HACK: enable debug if there is a 4th argument
debug = len(sys.argv) == 5with
open(licence_file, 'rb')as f:
licence =f.read()
licence_spdx= b"/* SPDX-License-Identifier: " + spdx + b" */\n"
print(f"reading {file}")
withopen(file, 'rb')as f:
whole_file=f.read()try:
licence_loc=whole_file.index(licence)
except ValueError:
print("licence not found. Ignoring")
exit(0)# Replace one the below pattern with nothing ## Pattern 1
# * <license>
# *whole_file=whole_file.replace(licence + b' *\n', b'')## Pattern 2
# *
# * <license>whole_file=whole_file.replace(b' *\n' + licence, b'')## Pattern 3
# /*
# * <license>
# */whole_file=whole_file.replace(b'/*\n' + licence + b' */\n', b'')
Quoted 4 lines
## Pattern 4
# *
# * <license>whole_file=whole_file.replace(b' * \n' + licence, b'')
... referring to the (really four) patterns here?
Quoted 7 lines
Julien Grall (6):
xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 3) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 3)
With the one further adjustment you did spot yourself:
Jan
Hi Jan,
Quoted 7 lines · Jan Beulich
Quoted 3 lines · Julien Grall
This is a first attempt to replace all the full license text with SPX tag in xen/arch/x86/. For now, this is only covering files with GPL 2.0 and 3 different patterns.
For clarification - the three patterns mentioned here are the three slightly differently formatted/spelled versions of effectively the same text, not ...
Correct.
Quoted 69 lines
Quoted 54 lines
I have used the script below to remove the full license and add an SPDX tag. The script is based on the work from Anthony [1]
42sh> cat
replace_license.py
#!/usr/bin/python3
## We are opening/writing to files using the binary mode to avoid ## python interpreting the content (reading./drivers/video/font_8x14.c## will throw some encoding error otherwise).import sys
if len(sys.argv) < 4:
print("./replace_license <licence-file> <spdx> <file> [debug]") exit(1)
licence_file= sys.argv[1]
spdx =str.encode(sys.argv[2])
file = sys.argv[3]
# HACK: enable debug if there is a 4th argument
debug = len(sys.argv) == 5with
open(licence_file, 'rb')as f:
licence =f.read()
licence_spdx= b"/* SPDX-License-Identifier: " + spdx + b" */\n"
print(f"reading {file}")
withopen(file, 'rb')as f:
whole_file=f.read()try:
licence_loc=whole_file.index(licence)
except ValueError:
print("licence not found. Ignoring")
exit(0)# Replace one the below pattern with nothing ## Pattern 1
# * <license>
# *whole_file=whole_file.replace(licence + b' *\n', b'')## Pattern 2
# *
# * <license>whole_file=whole_file.replace(b' *\n' + licence, b'')## Pattern 3
# /*
# * <license>
# */whole_file=whole_file.replace(b'/*\n' + licence + b' */\n', b'')Quoted 4 lines
## Pattern 4
# *
# * <license>whole_file=whole_file.replace(b' * \n' + licence, b'')... referring to the (really four) patterns here?
Quoted 7 lines
Julien Grall (6):
xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 3) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 3)
Quoted 2 lines
With the one further adjustment you did spot yourself:
Acked-by Jan Beulich <[email protected]>
Thanks! The series is mostly mechanical change. So I am not sure whether I should wait for all the maintainers to ack before committing (it has been already a week).
Any thoughts?
Cheers,
Signature · 1 line
Julien Grall
Quoted 10 lines · Julien Grall
Quoted 9 lines · Jan Beulich
Quoted 7 lines · Julien Grall
Julien Grall (6):
xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 2) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.c (part 3) xen/x86: Replace GPL v2.0 copyright with an SPDX tag in *.h (part 3)
Quoted 8 lines
Quoted 2 lines
With the one further adjustment you did spot yourself:
Acked-by Jan Beulich <[email protected]>Thanks! The series is mostly mechanical change. So I am not sure whether I should wait for all the maintainers to ack before committing (it has been already a week).
Any thoughts?
While personally I tend to ping and hence push for a complete set of acks even on largely mechanical changes, I think the series here is yet more mechanical and hence okay to be committed at about any time even when taking the rules pretty strictly. Plus there hadn't been any controversy afair on the subject of conversion to SPDX.
Jan