Skip to contentSkip to conversation

Update license information

PATCH Applied Thomas Huth 4 participants 9 messages May 3, 2017 KVM

lore
Share & tools
lore
#0 lore raw

cover Update license information

The COPYRIGHT file claims that the kvm-unit-tests is licensed under the LGPL. But effectively, the license for the whole package should be GPL nowadays instead, since some GPL code crept in over the years. So let's update the COPYRIGHT text accordingly and add some more license information to the files that are still missing an explicit license statement.

Thomas Huth (3):
Add LGPL information to some ARM and PPC specific library files
COPYRIGHT: Make it clear that kvm-unit-tests is GPL2 nowadays Add a copyright/license header for the ARM spinlock test

 COPYRIGHT               | 10 ++++++++--
 arm/spinlock-test.c     | 12 ++++++++++++
 lib/arm/spinlock.c      |  6 ++++++
 lib/powerpc/processor.c |  3 +++
 lib/ppc64/spinlock.c    |  7 +++++++
 5 files changed, 36 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/3 Add LGPL information to some ARM and PPC specific library files

Some files are still lacking license information, so add the default LGPL statement here to make it clear under which conditions the code can be used.

---
 lib/arm/spinlock.c      | 6 ++++++
 lib/powerpc/processor.c | 3 +++
 lib/ppc64/spinlock.c    | 7 +++++++
 3 files changed, 16 insertions(+)
lib/arm/spinlock.c +6 -0
index 116ea5d..ea7e02b 100644
@@ -1,3 +1,9 @@
+/*
+ * ARM spinlock implementation
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
+ */
 #include <libcflat.h>
 #include <asm/spinlock.h>
 #include <asm/barrier.h>
lib/powerpc/processor.c +3 -0
index 056a61f..8910f24 100644
@@ -1,5 +1,8 @@
 /*
  * processor control and status function
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
  */
 
 #include <libcflat.h>
lib/ppc64/spinlock.c +7 -0
index 522f8d0..1b26ee1 100644
@@ -1,3 +1,10 @@
+/*
+ * ppc64 (dummy) spinlock implementation
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
+ */
+
 #include <asm/spinlock.h>
 
 void spin_lock(struct spinlock *lock)
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/3
#2 lore raw

Re: [kvm-unit-tests PATCH 1/3] Add LGPL information to some ARM and PPC specific library files

Quoted 43 lines · Thomas Huth

Some files are still lacking license information, so add the default LGPL statement here to make it clear under which conditions the code can be used.

---
 lib/arm/spinlock.c      | 6 ++++++
 lib/powerpc/processor.c | 3 +++
 lib/ppc64/spinlock.c    | 7 +++++++
 3 files changed, 16 insertions(+)
lib/arm/spinlock.c +6 -0
index 116ea5d..ea7e02b 100644
@@ -1,3 +1,9 @@
+/*
+ * ARM spinlock implementation
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
+ */
 #include <libcflat.h>
 #include <asm/spinlock.h>
 #include <asm/barrier.h>
lib/powerpc/processor.c +3 -0
index 056a61f..8910f24 100644
@@ -1,5 +1,8 @@
 /*
  * processor control and status function
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
  */
 
 #include <libcflat.h>
lib/ppc64/spinlock.c +0 -0
index 522f8d0..1b26ee1 100644

lib/ppc64/spinlock.c line 10

Quoted 10 lines
lib/ppc64/spinlock.c +7 -0
@@ -1,3 +1,10 @@
+/*
+ * ppc64 (dummy) spinlock implementation
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
+ */
+
 #include <asm/spinlock.h>
 
 void spin_lock(struct spinlock *lock)
#3 lore raw

PATCH 2/3 COPYRIGHT: Make it clear that kvm-unit-tests is GPL2 nowadays

In reply to Thomas Huth

Some GPL2 code is already in the repository, so this should be taken into account in the COPYRIGHT file, too.

---
 COPYRIGHT | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
COPYRIGHT +8 -2
index d35649c..b9d975f 100644
@@ -1,4 +1,10 @@
 Copyright (C) 2006 Qumranet.
+Copyright (C) 2007-2017 by various contributors (see source files for details)
 
-The files in this directory and its subdirectories are licensed under the
-GNU LGPL, version 2.
+The kvm-unit-tests are free software; the whole package can be redistributed
+and/or modified under the terms of the GNU General Public License version 2
+as published by the Free Software Foundation.
+
+Many files in this directory and its subdirectories are also licensed under
+the less restrictive GNU LGPL, version 2, or other compatible licenses. See
+the individual files for details.
Signature · 1 line
1.8.3.1
Reviewed-by on v1 2/3
#4 lore raw

Re: [kvm-unit-tests PATCH 2/3] COPYRIGHT: Make it clear that kvm-unit-tests is GPL2 nowadays

Quoted 16 lines · Thomas Huth

Some GPL2 code is already in the repository, so this should be taken into account in the COPYRIGHT file, too.

---
 COPYRIGHT | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
COPYRIGHT +1 -0
index d35649c..b9d975f 100644
@@ -1,4 +1,10 @@
 Copyright (C) 2006 Qumranet.
+Copyright (C) 2007-2017 by various contributors (see source files for details)

COPYRIGHT line 10

Quoted 10 lines
COPYRIGHT +7 -2
 
-The files in this directory and its subdirectories are licensed under the
-GNU LGPL, version 2.
+The kvm-unit-tests are free software; the whole package can be redistributed
+and/or modified under the terms of the GNU General Public License version 2
+as published by the Free Software Foundation.
+
+Many files in this directory and its subdirectories are also licensed under
+the less restrictive GNU LGPL, version 2, or other compatible licenses. See
+the individual files for details.
#5 lore raw

PATCH 3/3 Add a copyright/license header for the ARM spinlock test

In reply to Thomas Huth

According to the changelog, the code has been taken from the tcg_baremetal_tests from Virtual Open Systems, so we should include the original copyright notice here.

---
 arm/spinlock-test.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arm/spinlock-test.c +12 -0
index 7676a15..b2fdbab 100644
@@ -1,3 +1,15 @@
+/*
+ * Spinlock test
+ *
+ * This code is based on code from the tcg_baremetal_tests.
+ *
+ * Copyright (C) 2015 Virtual Open Systems SAS
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
 #include <libcflat.h>
 #include <asm/smp.h>
 #include <asm/cpumask.h>
Signature · 1 line
1.8.3.1
Reviewed-by on v1 3/3
#6 lore raw

Re: [kvm-unit-tests PATCH 3/3] Add a copyright/license header for the ARM spinlock test

Quoted 20 lines · Thomas Huth

According to the changelog, the code has been taken from the tcg_baremetal_tests from Virtual Open Systems, so we should include the original copyright notice here.

---
 arm/spinlock-test.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arm/spinlock-test.c +5 -0
index 7676a15..b2fdbab 100644
@@ -1,3 +1,15 @@
+/*
+ * Spinlock test
+ *
+ * This code is based on code from the tcg_baremetal_tests.
+ *

arm/spinlock-test.c line 15

Quoted 10 lines
arm/spinlock-test.c +7 -0
+ * Copyright (C) 2015 Virtual Open Systems SAS
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
 #include <libcflat.h>
 #include <asm/smp.h>
 #include <asm/cpumask.h>
Acked-by on the v1 series
#7 lore raw
In reply to Thomas Huth
Quoted 12 lines · Thomas Huth

The COPYRIGHT file claims that the kvm-unit-tests is licensed under the LGPL. But effectively, the license for the whole package should be GPL nowadays instead, since some GPL code crept in over the years. So let's update the COPYRIGHT text accordingly and add some more license information to the files that are still missing an explicit license statement.

Thomas Huth (3):
Add LGPL information to some ARM and PPC specific library files
COPYRIGHT: Make it clear that kvm-unit-tests is GPL2 nowadays Add a copyright/license header for the ARM spinlock test

Quoted 10 lines
 COPYRIGHT               | 10 ++++++++--
 arm/spinlock-test.c     | 12 ++++++++++++
 lib/arm/spinlock.c      |  6 ++++++
 lib/powerpc/processor.c |  3 +++
 lib/ppc64/spinlock.c    |  7 +++++++
 5 files changed, 36 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3.1

For the series

maintainer Applied
#8 lore raw
In reply to Thomas Huth
Quoted 12 lines · Thomas Huth

The COPYRIGHT file claims that the kvm-unit-tests is licensed under the LGPL. But effectively, the license for the whole package should be GPL nowadays instead, since some GPL code crept in over the years. So let's update the COPYRIGHT text accordingly and add some more license information to the files that are still missing an explicit license statement.

Thomas Huth (3):
Add LGPL information to some ARM and PPC specific library files
COPYRIGHT: Make it clear that kvm-unit-tests is GPL2 nowadays Add a copyright/license header for the ARM spinlock test

Quoted 7 lines
 COPYRIGHT               | 10 ++++++++--
 arm/spinlock-test.c     | 12 ++++++++++++
 lib/arm/spinlock.c      |  6 ++++++
 lib/powerpc/processor.c |  3 +++
 lib/ppc64/spinlock.c    |  7 +++++++
 5 files changed, 36 insertions(+), 2 deletions(-)

Applied, thanks.

Paolo