Re: [PATCH v2 2/7] xen/x86: Replace GPL v2.0 license boilerplate with an SPDX tag in *.c

2023-04-11 Thread Julien Grall

Hi,

On 28/03/2023 10:16, Jan Beulich wrote:

On 28.03.2023 02:53, Stefano Stabellini wrote:

On Mon, 27 Mar 2023, Julien Grall wrote:

From: Julien Grall 

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-only
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 .

Signed-off-by: Julien Grall 

---

 Changes in v2:
 * Switch to GPL-2.0-only
 * Rebase

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 .
42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0.txt 
GPL-2.0-only {} \;


I confirm that the commands above lead to this exact patch. I ran them
on my system and checked that the resulting changes are the same.

Acked-by: Stefano Stabellini 


On this basis then also
Acked-by: Jan Beulich 
for this and the subsequent patches.


Thanks. I have pushed with the series with both of your acks.

Cheers,

--
Julien Grall



Re: [PATCH v2 2/7] xen/x86: Replace GPL v2.0 license boilerplate with an SPDX tag in *.c

2023-03-28 Thread Jan Beulich
On 28.03.2023 02:53, Stefano Stabellini wrote:
> On Mon, 27 Mar 2023, Julien Grall wrote:
>> From: Julien Grall 
>>
>> 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-only
>> 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 .
>>
>> Signed-off-by: Julien Grall 
>>
>> ---
>>
>> Changes in v2:
>> * Switch to GPL-2.0-only
>> * Rebase
>>
>> 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 .
>> 42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0.txt 
>> GPL-2.0-only {} \;
> 
> I confirm that the commands above lead to this exact patch. I ran them
> on my system and checked that the resulting changes are the same.
> 
> Acked-by: Stefano Stabellini 

On this basis then also
Acked-by: Jan Beulich 
for this and the subsequent patches.

Jan



Re: [PATCH v2 2/7] xen/x86: Replace GPL v2.0 license boilerplate with an SPDX tag in *.c

2023-03-27 Thread Stefano Stabellini
On Mon, 27 Mar 2023, Julien Grall wrote:
> From: Julien Grall 
> 
> 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-only
> 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 .
> 
> Signed-off-by: Julien Grall 
> 
> ---
> 
> Changes in v2:
> * Switch to GPL-2.0-only
> * Rebase
> 
> 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 .
> 42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0.txt 
> GPL-2.0-only {} \;

I confirm that the commands above lead to this exact patch. I ran them
on my system and checked that the resulting changes are the same.

Acked-by: Stefano Stabellini 


> ---
>  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(-)
> 
> diff --git a/xen/arch/x86/cpu/mwait-idle.c b/xen/arch/x86/cpu/mwait-idle.c
> index 9e981e7e26dc..ff5c808bc952 100644
> --- a/xen/arch/x86/cpu/mwait-idle.c
> +++ b/xen/arch/x86/cpu/mwait-idle.c
> @@ -1,20 +1,9 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
>  /*
>   * mwait_idle.c - native hardware idle loop for modern processors
>   *
>   * Copyright (c) 2013, Intel Corporation.
>   * Len Brown 
> - *
> - * 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 .
>   */
>  
>  /*
> diff --git a/xen/arch/x86/cpu/vpmu.c b/xen/arch/x86/cpu/vpmu.c
> 

[PATCH v2 2/7] xen/x86: Replace GPL v2.0 license boilerplate with an SPDX tag in *.c

2023-03-27 Thread Julien Grall
From: Julien Grall 

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-only
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 .

Signed-off-by: Julien Grall 

---

Changes in v2:
* Switch to GPL-2.0-only
* Rebase

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 .
42sh> find xen/arch/x86/ -name '*.c' -exec replace_license.py gpl-2.0.txt 
GPL-2.0-only {} \;
---
 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(-)

diff --git a/xen/arch/x86/cpu/mwait-idle.c b/xen/arch/x86/cpu/mwait-idle.c
index 9e981e7e26dc..ff5c808bc952 100644
--- a/xen/arch/x86/cpu/mwait-idle.c
+++ b/xen/arch/x86/cpu/mwait-idle.c
@@ -1,20 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * mwait_idle.c - native hardware idle loop for modern processors
  *
  * Copyright (c) 2013, Intel Corporation.
  * Len Brown 
- *
- * 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 .
  */
 
 /*
diff --git a/xen/arch/x86/cpu/vpmu.c b/xen/arch/x86/cpu/vpmu.c
index b6b7342fb466..f31c32bcf3a6 100644
--- a/xen/arch/x86/cpu/vpmu.c
+++ b/xen/arch/x86/cpu/vpmu.c
@@ -1,20 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * 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