Skip to contentSkip to conversation

tcg/LICENSE: Remove no-longer-true statement that TCG is BSD-licensed

PATCH Applied Peter Maydell 6 participants 14 messages Oct 21, 2019 – Oct 22, 2019

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg/LICENSE: Remove no-longer-true statement that TCG is BSD-licensed

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

 LICENSE     | 4 ++--
 tcg/LICENSE | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)
 delete mode 100644 tcg/LICENSE
LICENSE +2 -2
index 9389ba614f8..e916360844f 100644
@@ -18,8 +18,8 @@ As of July 2013, contributions under version 2 of the GNU General Public
 License (and no later version) are only accepted for the following files
 or directories: bsd-user/, linux-user/, hw/vfio/, hw/xen/xen_pt*.
 
-3) The Tiny Code Generator (TCG) is released under the BSD license
-   (see license headers in files).
+3) The Tiny Code Generator (TCG) is mostly under the BSD license;
+   but some parts may be GPLv2 (see license headers in files).
 
 4) QEMU is a trademark of Fabrice Bellard.
 
tcg/LICENSE deleted +0 -3
deleted file mode 100644
index be817fa1625..00000000000
@@ -1,3 +0,0 @@
-All the files in this directory and subdirectories are released under
-a BSD like license (see header in each file). No other license is
-accepted.
Signature · 1 line
2.20.1
#1 lore raw
Quoted 5 lines · Peter Maydell

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

I think the original idea was to reuse it outside QEMU, for example in TCC (which is LGPLv2.1+) but that was a while ago.

Paolo

#2 lore raw
Quoted 10 lines · Paolo Bonzini
Quoted 5 lines · Peter Maydell

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

I think the original idea was to reuse it outside QEMU, for example in TCC (which is LGPLv2.1+) but that was a while ago.

I just downloaded and had a quick look at TCC and its current codegen implementation seems to be entirely unrelated to TCG.

thanks
-- PMM

Reviewed-by on v1 1/1
#3 lore raw
In reply to Peter Maydell
Quoted 22 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Quoted 5 lines

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

I think this is the best solution. I've never been convinced that TCG can usefully be extracted and reused for something else.

r~

#4 lore raw
Quoted 29 lines · Richard Henderson
Quoted 22 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Quoted 5 lines

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

Quoted 4 lines

I think this is the best solution. I've never been convinced that TCG can usefully be extracted and reused for something else.

Queued to tcg-next, as I think there's a couple of other things pending.

r~

#5 lore raw
Quoted 31 lines · Richard Henderson
Quoted 29 lines · Richard Henderson
Quoted 27 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

Quoted 6 lines
Quoted 4 lines

I think this is the best solution. I've never been convinced that TCG can usefully be extracted and reused for something else.

Queued to tcg-next, as I think there's a couple of other things pending.

As a licensing issue, I think it would be better to have it on-list for review/comment by interested people for a bit longer than that -- it's not like it really needs to get in before the softfreeze.

thanks
-- PMM

#6 lore raw
Quoted 9 lines · Peter Maydell
Quoted 1 line · Richard Henderson

Queued to tcg-next, as I think there's a couple of other things pending.

As a licensing issue, I think it would be better to have it on-list for review/comment by interested people for a bit longer than that -- it's not like it really needs to get in before the softfreeze.

It's been pointed out to me also that tcg/*/tcg-target.opc.h are missing a licence/copyright boilerplate header. Since we're removing the "tcg/ is all BSD" note we should add "this file is BSD" to those files at this point.

thanks
-- PMM

#7 lore raw
In reply to Richard Henderson

(+Ard, Alex)

Quoted 23 lines · Richard Henderson
Quoted 22 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Quoted 8 lines
Quoted 5 lines

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

I think this is the best solution. I've never been convinced that TCG can usefully be extracted and reused for something else.

Side comment:

Ard and Alex extracted TCG to run x86 PCIe UEFI option ROMs on aarch64 hardware.

https://github.com/ardbiesheuvel/X86EmulatorPkg
https://kvmforum2017.sched.com/event/Bo0S/qemu-in-uefi-alexander-graf-suse
https://www.youtube.com/watch?v=uxvAH1Q4Mx0

If I remember correctly, they specifically picked a git commit hash that was still purely BSD licensed.

FWIW,
<https://github.com/ardbiesheuvel/X86EmulatorPkg/blob/master/LICENSE> is not any BSD license, so I'm almost surely out of date on that aspect; just wanted to confirm that TCG has been usefully extracted.

Thanks,
Laszlo

Quoted 5 lines

r~

#8 lore raw
Quoted 45 lines · Laszlo Ersek

(+Ard, Alex)

Quoted 23 lines · Richard Henderson
Quoted 22 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Quoted 8 lines
Quoted 5 lines

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

I think this is the best solution. I've never been convinced that TCG can usefully be extracted and reused for something else.

Side comment:

Ard and Alex extracted TCG to run x86 PCIe UEFI option ROMs on aarch64 hardware.

https://github.com/ardbiesheuvel/X86EmulatorPkg
https://kvmforum2017.sched.com/event/Bo0S/qemu-in-uefi-alexander-graf-suse
https://www.youtube.com/watch?v=uxvAH1Q4Mx0

Quoted 8 lines

If I remember correctly, they specifically picked a git commit hash that was still purely BSD licensed.

FWIW,
<https://github.com/ardbiesheuvel/X86EmulatorPkg/blob/master/LICENSE> is not any BSD license, so I'm almost surely out of date on that aspect; just wanted to confirm that TCG has been usefully extracted.

This commit has the background info
https://github.com/ardbiesheuvel/X86EmulatorPkg/commit/552c44d2cbc778f3e53d6d3985a8787c7df99733

#9 lore raw

(uses Alex's working email address)

Quoted 58 lines · Ard Biesheuvel
Quoted 45 lines · Laszlo Ersek

(+Ard, Alex)

Quoted 23 lines · Richard Henderson
Quoted 22 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Remove the LICENSE file, since claiming false information about the license of the code is confusing, and update the main project LICENSE file also to be clearer about the license used by TCG.

---
This patch takes the simple approach of just documenting the de-facto current reality; does anybody want to argue for something else? Other possibilities I guess would be specifically documenting tcg/aarch64 as an accidental exception to the general licensing rule for tcg/, or even trying to get it relicensed.

Quoted 8 lines
Quoted 5 lines

Does having tcg/ be BSD-licensed gain the project anything? From my point of view I don't really see it as a cleanly separable module of code -- it's quite tightly integrated with the rest of QEMU, including code in accel/tcg which is variously GPL or LGPL.

I think this is the best solution. I've never been convinced that TCG can usefully be extracted and reused for something else.

Side comment:

Ard and Alex extracted TCG to run x86 PCIe UEFI option ROMs on aarch64 hardware.

https://github.com/ardbiesheuvel/X86EmulatorPkg
https://kvmforum2017.sched.com/event/Bo0S/qemu-in-uefi-alexander-graf-suse
https://www.youtube.com/watch?v=uxvAH1Q4Mx0

Quoted 8 lines

If I remember correctly, they specifically picked a git commit hash that was still purely BSD licensed.

FWIW,
<https://github.com/ardbiesheuvel/X86EmulatorPkg/blob/master/LICENSE> is not any BSD license, so I'm almost surely out of date on that aspect; just wanted to confirm that TCG has been usefully extracted.

This commit has the background info
https://github.com/ardbiesheuvel/X86EmulatorPkg/commit/552c44d2cbc778f3e53d6d3985a8787c7df99733

#10 lore raw
In reply to Peter Maydell
Quoted 7 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

This commit message misses the other not-BSD bits of code in tcg/:
tcg/tci.c is GPL-2-or-later
tcg/tcg-gvec-desc.h, tcg/tcg-op-gvec.[ch], tcg-op-vec.c are LGPL2.1-or-later

Horse has clearly bolted further from the stable than I had first thought.

thanks
-- PMM

#11 lore raw
Quoted 9 lines · Peter Maydell
Quoted 7 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

Quoted 6 lines

This commit message misses the other not-BSD bits of code in tcg/:
tcg/tci.c is GPL-2-or-later
tcg/tcg-gvec-desc.h, tcg/tcg-op-gvec.[ch], tcg-op-vec.c are LGPL2.1-or-later

Horse has clearly bolted further from the stable than I had first thought.

No matter what text we put in the top LICENSE file is always going to be rather vague because of the many different licenses scattered across the codebase.

We really ought to make an effort to add SPDX tags to every file in the source tree & have checkpatch.pl enforce that all new files come with SPDX tags too. Identifying licenses for code then becomes a trivial grep.

NB, I'm only suggesting add SPDX /in addition/ to the current license boilerplate, as removing existing boilerplate license text from a file can only be done by agreement with the copyright holder(s).

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#12 lore raw
Quoted 15 lines · Daniel P. Berrangé
Quoted 13 lines · Peter Maydell
Quoted 7 lines · Peter Maydell

Since 2008 the tcg/LICENSE file has not changed: it claims that everything under tcg/ is BSD-licensed.

This is not true and hasn't been true for years: in 2013 we accepted the tcg/aarch64 target code under a GPLv2-or-later license statement. We don't really consider the tcg subdirectory to be a distinct part of QEMU anyway.

This commit message misses the other not-BSD bits of code in tcg/:
tcg/tci.c is GPL-2-or-later
tcg/tcg-gvec-desc.h, tcg/tcg-op-gvec.[ch], tcg-op-vec.c are LGPL2.1-or-later

Quoted 6 lines
Quoted 2 lines

Horse has clearly bolted further from the stable than I had first thought.

No matter what text we put in the top LICENSE file is always going to be rather vague because of the many different licenses scattered across the codebase.

There's two parts to this:
(1) is what we say in LICENSE what we actually have in practice? (answer: clearly "no")
(2) as a policy, do we want to be stricter about the license for code contributed to tcg/ than to the rest of the codebase? (which is what this patch is trying to flush out answers to)

Quoted 3 lines

We really ought to make an effort to add SPDX tags to every file in the source tree & have checkpatch.pl enforce that all new files come with SPDX tags too. Identifying licenses for code then becomes a trivial grep.

My take on SPDX is still the same as it was last year:
https://lists.gnu.org/archive/html/qemu-devel/2018-11/msg04151.html

thanks
-- PMM

#13 lore raw
Quoted 7 lines · Peter Maydell

There's two parts to this:
(1) is what we say in LICENSE what we actually have in practice? (answer: clearly "no")
(2) as a policy, do we want to be stricter about the license for code contributed to tcg/ than to the rest of the codebase? (which is what this patch is trying to flush out answers to)

... and from these points of view, your patch is definitely an improvement.

Paolo