summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-06-04 04:11:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-19 11:09:52 -0400
commit7a338472f225f18694cc4d9ad1f6f9428f4a88d0 (patch)
treeecbc6c7d0149225ce524ee74a2bb17e95e8552b3
parente500db3fa2d58f7091280db35d6bf6d4b717f20e (diff)
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 482
Based on 1 normalized pattern(s): this work is licensed under the terms of the gnu gpl version 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 48 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Enrico Weigelt <info@metux.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081204.624030236@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/sparc/include/asm/adi_64.h3
-rw-r--r--arch/sparc/kernel/adi_64.c3
-rw-r--r--arch/sparc/kernel/sun4v_mcd.S3
-rw-r--r--drivers/acpi/ec_sys.c3
-rw-r--r--drivers/vhost/net.c3
-rw-r--r--drivers/vhost/test.c3
-rw-r--r--drivers/vhost/vhost.c3
-rw-r--r--drivers/vhost/vsock.c3
-rw-r--r--mm/cleancache.c3
-rw-r--r--mm/frontswap.c3
-rw-r--r--mm/ksm.c3
-rw-r--r--net/vmw_vsock/virtio_transport.c3
-rw-r--r--net/vmw_vsock/virtio_transport_common.c3
-rw-r--r--tools/power/acpi/tools/ec/ec_access.c3
-rw-r--r--tools/testing/selftests/kvm/include/kvm_util.h4
-rw-r--r--tools/testing/selftests/kvm/include/sparsebit.h4
-rw-r--r--tools/testing/selftests/kvm/include/test_util.h4
-rw-r--r--tools/testing/selftests/kvm/include/x86_64/processor.h4
-rw-r--r--tools/testing/selftests/kvm/include/x86_64/vmx.h4
-rw-r--r--tools/testing/selftests/kvm/lib/assert.c3
-rw-r--r--tools/testing/selftests/kvm/lib/elf.c3
-rw-r--r--tools/testing/selftests/kvm/lib/io.c3
-rw-r--r--tools/testing/selftests/kvm/lib/kvm_util.c3
-rw-r--r--tools/testing/selftests/kvm/lib/kvm_util_internal.h3
-rw-r--r--tools/testing/selftests/kvm/lib/sparsebit.c3
-rw-r--r--tools/testing/selftests/kvm/lib/x86_64/processor.c3
-rw-r--r--tools/testing/selftests/kvm/lib/x86_64/vmx.c3
-rw-r--r--tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c3
-rw-r--r--tools/testing/selftests/kvm/x86_64/set_sregs_test.c4
-rw-r--r--tools/testing/selftests/kvm/x86_64/state_test.c3
-rw-r--r--tools/testing/selftests/kvm/x86_64/sync_regs_test.c3
-rw-r--r--tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c3
-rw-r--r--tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c3
-rw-r--r--tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c4
-rw-r--r--tools/virtio/ringtest/main.c2
-rw-r--r--tools/virtio/ringtest/main.h2
-rw-r--r--tools/virtio/ringtest/ring.c2
-rw-r--r--tools/virtio/ringtest/virtio_ring_0_9.c2
38 files changed, 38 insertions, 79 deletions
diff --git a/arch/sparc/include/asm/adi_64.h b/arch/sparc/include/asm/adi_64.h
index 85f7a763af85..4301c6fd87f7 100644
--- a/arch/sparc/include/asm/adi_64.h
+++ b/arch/sparc/include/asm/adi_64.h
@@ -1,9 +1,8 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* adi_64.h: ADI related data structures 2/* adi_64.h: ADI related data structures
2 * 3 *
3 * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 4 * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
4 * Author: Khalid Aziz (khalid.aziz@oracle.com) 5 * Author: Khalid Aziz (khalid.aziz@oracle.com)
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8#ifndef __ASM_SPARC64_ADI_H 7#ifndef __ASM_SPARC64_ADI_H
9#define __ASM_SPARC64_ADI_H 8#define __ASM_SPARC64_ADI_H
diff --git a/arch/sparc/kernel/adi_64.c b/arch/sparc/kernel/adi_64.c
index d0a2ac975b42..ce332942de2d 100644
--- a/arch/sparc/kernel/adi_64.c
+++ b/arch/sparc/kernel/adi_64.c
@@ -1,11 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* adi_64.c: support for ADI (Application Data Integrity) feature on 2/* adi_64.c: support for ADI (Application Data Integrity) feature on
2 * sparc m7 and newer processors. This feature is also known as 3 * sparc m7 and newer processors. This feature is also known as
3 * SSM (Silicon Secured Memory). 4 * SSM (Silicon Secured Memory).
4 * 5 *
5 * Copyright (C) 2016 Oracle and/or its affiliates. All rights reserved. 6 * Copyright (C) 2016 Oracle and/or its affiliates. All rights reserved.
6 * Author: Khalid Aziz (khalid.aziz@oracle.com) 7 * Author: Khalid Aziz (khalid.aziz@oracle.com)
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2.
9 */ 8 */
10#include <linux/init.h> 9#include <linux/init.h>
11#include <linux/slab.h> 10#include <linux/slab.h>
diff --git a/arch/sparc/kernel/sun4v_mcd.S b/arch/sparc/kernel/sun4v_mcd.S
index d6c69ebca110..a419b7318406 100644
--- a/arch/sparc/kernel/sun4v_mcd.S
+++ b/arch/sparc/kernel/sun4v_mcd.S
@@ -1,10 +1,9 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* sun4v_mcd.S: Sun4v memory corruption detected precise exception handler 2/* sun4v_mcd.S: Sun4v memory corruption detected precise exception handler
2 * 3 *
3 * Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. 4 * Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved.
4 * Authors: Bob Picco <bob.picco@oracle.com>, 5 * Authors: Bob Picco <bob.picco@oracle.com>,
5 * Khalid Aziz <khalid.aziz@oracle.com> 6 * Khalid Aziz <khalid.aziz@oracle.com>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2.
8 */ 7 */
9 .text 8 .text
10 .align 32 9 .align 32
diff --git a/drivers/acpi/ec_sys.c b/drivers/acpi/ec_sys.c
index 23faa66ea772..fd39c14493ab 100644
--- a/drivers/acpi/ec_sys.c
+++ b/drivers/acpi/ec_sys.c
@@ -1,11 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * ec_sys.c 3 * ec_sys.c
3 * 4 *
4 * Copyright (C) 2010 SUSE Products GmbH/Novell 5 * Copyright (C) 2010 SUSE Products GmbH/Novell
5 * Author: 6 * Author:
6 * Thomas Renninger <trenn@suse.de> 7 * Thomas Renninger <trenn@suse.de>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2.
9 */ 8 */
10 9
11#include <linux/kernel.h> 10#include <linux/kernel.h>
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 2d9df786a9d3..d57ebdd616d9 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -1,8 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* Copyright (C) 2009 Red Hat, Inc. 2/* Copyright (C) 2009 Red Hat, Inc.
2 * Author: Michael S. Tsirkin <mst@redhat.com> 3 * Author: Michael S. Tsirkin <mst@redhat.com>
3 * 4 *
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 *
6 * virtio-net server in host kernel. 5 * virtio-net server in host kernel.
7 */ 6 */
8 7
diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c
index 40589850eb33..9e90e969af55 100644
--- a/drivers/vhost/test.c
+++ b/drivers/vhost/test.c
@@ -1,8 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* Copyright (C) 2009 Red Hat, Inc. 2/* Copyright (C) 2009 Red Hat, Inc.
2 * Author: Michael S. Tsirkin <mst@redhat.com> 3 * Author: Michael S. Tsirkin <mst@redhat.com>
3 * 4 *
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 *
6 * test virtio server in host kernel. 5 * test virtio server in host kernel.
7 */ 6 */
8 7
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 3f3eac4bcc58..e995c12d8e24 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* Copyright (C) 2009 Red Hat, Inc. 2/* Copyright (C) 2009 Red Hat, Inc.
2 * Copyright (C) 2006 Rusty Russell IBM Corporation 3 * Copyright (C) 2006 Rusty Russell IBM Corporation
3 * 4 *
@@ -6,8 +7,6 @@
6 * Inspiration, some code, and most witty comments come from 7 * Inspiration, some code, and most witty comments come from
7 * Documentation/virtual/lguest/lguest.c, by Rusty Russell 8 * Documentation/virtual/lguest/lguest.c, by Rusty Russell
8 * 9 *
9 * This work is licensed under the terms of the GNU GPL, version 2.
10 *
11 * Generic code for virtio server in host kernel. 10 * Generic code for virtio server in host kernel.
12 */ 11 */
13 12
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 814bed72d793..6a50e1d0529c 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -1,11 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * vhost transport for vsock 3 * vhost transport for vsock
3 * 4 *
4 * Copyright (C) 2013-2015 Red Hat, Inc. 5 * Copyright (C) 2013-2015 Red Hat, Inc.
5 * Author: Asias He <asias@redhat.com> 6 * Author: Asias He <asias@redhat.com>
6 * Stefan Hajnoczi <stefanha@redhat.com> 7 * Stefan Hajnoczi <stefanha@redhat.com>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2.
9 */ 8 */
10#include <linux/miscdevice.h> 9#include <linux/miscdevice.h>
11#include <linux/atomic.h> 10#include <linux/atomic.h>
diff --git a/mm/cleancache.c b/mm/cleancache.c
index 2bf12da9baa0..2397f7c36cc7 100644
--- a/mm/cleancache.c
+++ b/mm/cleancache.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Cleancache frontend 3 * Cleancache frontend
3 * 4 *
@@ -7,8 +8,6 @@
7 * 8 *
8 * Copyright (C) 2009-2010 Oracle Corp. All rights reserved. 9 * Copyright (C) 2009-2010 Oracle Corp. All rights reserved.
9 * Author: Dan Magenheimer 10 * Author: Dan Magenheimer
10 *
11 * This work is licensed under the terms of the GNU GPL, version 2.
12 */ 11 */
13 12
14#include <linux/module.h> 13#include <linux/module.h>
diff --git a/mm/frontswap.c b/mm/frontswap.c
index 157e5bf63504..60bb20e8a951 100644
--- a/mm/frontswap.c
+++ b/mm/frontswap.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Frontswap frontend 3 * Frontswap frontend
3 * 4 *
@@ -7,8 +8,6 @@
7 * 8 *
8 * Copyright (C) 2009-2012 Oracle Corp. All rights reserved. 9 * Copyright (C) 2009-2012 Oracle Corp. All rights reserved.
9 * Author: Dan Magenheimer 10 * Author: Dan Magenheimer
10 *
11 * This work is licensed under the terms of the GNU GPL, version 2.
12 */ 11 */
13 12
14#include <linux/mman.h> 13#include <linux/mman.h>
diff --git a/mm/ksm.c b/mm/ksm.c
index 81c20ed57bf6..3dc4346411e4 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Memory merging support. 3 * Memory merging support.
3 * 4 *
@@ -10,8 +11,6 @@
10 * Andrea Arcangeli 11 * Andrea Arcangeli
11 * Chris Wright 12 * Chris Wright
12 * Hugh Dickins 13 * Hugh Dickins
13 *
14 * This work is licensed under the terms of the GNU GPL, version 2.
15 */ 14 */
16 15
17#include <linux/errno.h> 16#include <linux/errno.h>
diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
index 96ab344f17bb..9c287e3e393c 100644
--- a/net/vmw_vsock/virtio_transport.c
+++ b/net/vmw_vsock/virtio_transport.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * virtio transport for vsock 3 * virtio transport for vsock
3 * 4 *
@@ -7,8 +8,6 @@
7 * 8 *
8 * Some of the code is take from Gerd Hoffmann <kraxel@redhat.com>'s 9 * Some of the code is take from Gerd Hoffmann <kraxel@redhat.com>'s
9 * early virtio-vsock proof-of-concept bits. 10 * early virtio-vsock proof-of-concept bits.
10 *
11 * This work is licensed under the terms of the GNU GPL, version 2.
12 */ 11 */
13#include <linux/spinlock.h> 12#include <linux/spinlock.h>
14#include <linux/module.h> 13#include <linux/module.h>
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index f3f3d06cb6d8..5be105e98ed5 100644
--- a/net/vmw_vsock/virtio_transport_common.c
+++ b/net/vmw_vsock/virtio_transport_common.c
@@ -1,11 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * common code for virtio vsock 3 * common code for virtio vsock
3 * 4 *
4 * Copyright (C) 2013-2015 Red Hat, Inc. 5 * Copyright (C) 2013-2015 Red Hat, Inc.
5 * Author: Asias He <asias@redhat.com> 6 * Author: Asias He <asias@redhat.com>
6 * Stefan Hajnoczi <stefanha@redhat.com> 7 * Stefan Hajnoczi <stefanha@redhat.com>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2.
9 */ 8 */
10#include <linux/spinlock.h> 9#include <linux/spinlock.h>
11#include <linux/module.h> 10#include <linux/module.h>
diff --git a/tools/power/acpi/tools/ec/ec_access.c b/tools/power/acpi/tools/ec/ec_access.c
index 5f50642386db..8bb271b210d8 100644
--- a/tools/power/acpi/tools/ec/ec_access.c
+++ b/tools/power/acpi/tools/ec/ec_access.c
@@ -1,11 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * ec_access.c 3 * ec_access.c
3 * 4 *
4 * Copyright (C) 2010 SUSE Linux Products GmbH 5 * Copyright (C) 2010 SUSE Linux Products GmbH
5 * Author: 6 * Author:
6 * Thomas Renninger <trenn@suse.de> 7 * Thomas Renninger <trenn@suse.de>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2.
9 */ 8 */
10 9
11#include <fcntl.h> 10#include <fcntl.h>
diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h
index a5a4b28f14d8..87db5a5e025f 100644
--- a/tools/testing/selftests/kvm/include/kvm_util.h
+++ b/tools/testing/selftests/kvm/include/kvm_util.h
@@ -1,10 +1,8 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * tools/testing/selftests/kvm/include/kvm_util.h 3 * tools/testing/selftests/kvm/include/kvm_util.h
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 */ 6 */
9#ifndef SELFTEST_KVM_UTIL_H 7#ifndef SELFTEST_KVM_UTIL_H
10#define SELFTEST_KVM_UTIL_H 8#define SELFTEST_KVM_UTIL_H
diff --git a/tools/testing/selftests/kvm/include/sparsebit.h b/tools/testing/selftests/kvm/include/sparsebit.h
index 31e030915c1f..12a9a4b9cead 100644
--- a/tools/testing/selftests/kvm/include/sparsebit.h
+++ b/tools/testing/selftests/kvm/include/sparsebit.h
@@ -1,11 +1,9 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * tools/testing/selftests/kvm/include/sparsebit.h 3 * tools/testing/selftests/kvm/include/sparsebit.h
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 *
9 * Header file that describes API to the sparsebit library. 7 * Header file that describes API to the sparsebit library.
10 * This library provides a memory efficient means of storing 8 * This library provides a memory efficient means of storing
11 * the settings of bits indexed via a uint64_t. Memory usage 9 * the settings of bits indexed via a uint64_t. Memory usage
diff --git a/tools/testing/selftests/kvm/include/test_util.h b/tools/testing/selftests/kvm/include/test_util.h
index c7dafe8bd02c..a41db6fb7e24 100644
--- a/tools/testing/selftests/kvm/include/test_util.h
+++ b/tools/testing/selftests/kvm/include/test_util.h
@@ -1,10 +1,8 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * tools/testing/selftests/kvm/include/test_util.h 3 * tools/testing/selftests/kvm/include/test_util.h
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 */ 6 */
9 7
10#ifndef SELFTEST_KVM_TEST_UTIL_H 8#ifndef SELFTEST_KVM_TEST_UTIL_H
diff --git a/tools/testing/selftests/kvm/include/x86_64/processor.h b/tools/testing/selftests/kvm/include/x86_64/processor.h
index 6063d5b2f356..c54156479b93 100644
--- a/tools/testing/selftests/kvm/include/x86_64/processor.h
+++ b/tools/testing/selftests/kvm/include/x86_64/processor.h
@@ -1,10 +1,8 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * tools/testing/selftests/kvm/include/x86_64/processor.h 3 * tools/testing/selftests/kvm/include/x86_64/processor.h
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 */ 6 */
9 7
10#ifndef SELFTEST_KVM_PROCESSOR_H 8#ifndef SELFTEST_KVM_PROCESSOR_H
diff --git a/tools/testing/selftests/kvm/include/x86_64/vmx.h b/tools/testing/selftests/kvm/include/x86_64/vmx.h
index c9bd935b939c..69b17055f63d 100644
--- a/tools/testing/selftests/kvm/include/x86_64/vmx.h
+++ b/tools/testing/selftests/kvm/include/x86_64/vmx.h
@@ -1,10 +1,8 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * tools/testing/selftests/kvm/include/x86_64/vmx.h 3 * tools/testing/selftests/kvm/include/x86_64/vmx.h
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 */ 6 */
9 7
10#ifndef SELFTEST_KVM_VMX_H 8#ifndef SELFTEST_KVM_VMX_H
diff --git a/tools/testing/selftests/kvm/lib/assert.c b/tools/testing/selftests/kvm/lib/assert.c
index 6398efe67885..4911fc77d0f6 100644
--- a/tools/testing/selftests/kvm/lib/assert.c
+++ b/tools/testing/selftests/kvm/lib/assert.c
@@ -1,9 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * tools/testing/selftests/kvm/lib/assert.c 3 * tools/testing/selftests/kvm/lib/assert.c
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#define _GNU_SOURCE /* for getline(3) and strchrnul(3)*/ 8#define _GNU_SOURCE /* for getline(3) and strchrnul(3)*/
diff --git a/tools/testing/selftests/kvm/lib/elf.c b/tools/testing/selftests/kvm/lib/elf.c
index 5eb857584aa3..bc75a91e00a6 100644
--- a/tools/testing/selftests/kvm/lib/elf.c
+++ b/tools/testing/selftests/kvm/lib/elf.c
@@ -1,9 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * tools/testing/selftests/kvm/lib/elf.c 3 * tools/testing/selftests/kvm/lib/elf.c
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#include "test_util.h" 8#include "test_util.h"
diff --git a/tools/testing/selftests/kvm/lib/io.c b/tools/testing/selftests/kvm/lib/io.c
index cff869ffe6ee..eaf351cc7e7f 100644
--- a/tools/testing/selftests/kvm/lib/io.c
+++ b/tools/testing/selftests/kvm/lib/io.c
@@ -1,9 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * tools/testing/selftests/kvm/lib/io.c 3 * tools/testing/selftests/kvm/lib/io.c
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#include "test_util.h" 8#include "test_util.h"
diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c
index 633b22df46a4..a96476b8b811 100644
--- a/tools/testing/selftests/kvm/lib/kvm_util.c
+++ b/tools/testing/selftests/kvm/lib/kvm_util.c
@@ -1,9 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * tools/testing/selftests/kvm/lib/kvm_util.c 3 * tools/testing/selftests/kvm/lib/kvm_util.c
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#include "test_util.h" 8#include "test_util.h"
diff --git a/tools/testing/selftests/kvm/lib/kvm_util_internal.h b/tools/testing/selftests/kvm/lib/kvm_util_internal.h
index 4595e42c6e29..265b7822f591 100644
--- a/tools/testing/selftests/kvm/lib/kvm_util_internal.h
+++ b/tools/testing/selftests/kvm/lib/kvm_util_internal.h
@@ -1,9 +1,8 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * tools/testing/selftests/kvm/lib/kvm_util_internal.h 3 * tools/testing/selftests/kvm/lib/kvm_util_internal.h
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#ifndef SELFTEST_KVM_UTIL_INTERNAL_H 8#ifndef SELFTEST_KVM_UTIL_INTERNAL_H
diff --git a/tools/testing/selftests/kvm/lib/sparsebit.c b/tools/testing/selftests/kvm/lib/sparsebit.c
index b132bc95d183..031ba3c932ed 100644
--- a/tools/testing/selftests/kvm/lib/sparsebit.c
+++ b/tools/testing/selftests/kvm/lib/sparsebit.c
@@ -1,11 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Sparse bit array 3 * Sparse bit array
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 * Copyright (C) 2018, Red Hat, Inc. (code style cleanup and fuzzing driver) 6 * Copyright (C) 2018, Red Hat, Inc. (code style cleanup and fuzzing driver)
6 * 7 *
7 * This work is licensed under the terms of the GNU GPL, version 2.
8 *
9 * This library provides functions to support a memory efficient bit array, 8 * This library provides functions to support a memory efficient bit array,
10 * with an index size of 2^64. A sparsebit array is allocated through 9 * with an index size of 2^64. A sparsebit array is allocated through
11 * the use sparsebit_alloc() and free'd via sparsebit_free(), 10 * the use sparsebit_alloc() and free'd via sparsebit_free(),
diff --git a/tools/testing/selftests/kvm/lib/x86_64/processor.c b/tools/testing/selftests/kvm/lib/x86_64/processor.c
index 21f3040d90cb..f45c0f5e6737 100644
--- a/tools/testing/selftests/kvm/lib/x86_64/processor.c
+++ b/tools/testing/selftests/kvm/lib/x86_64/processor.c
@@ -1,9 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * tools/testing/selftests/kvm/lib/x86_64/processor.c 3 * tools/testing/selftests/kvm/lib/x86_64/processor.c
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#define _GNU_SOURCE /* for program_invocation_name */ 8#define _GNU_SOURCE /* for program_invocation_name */
diff --git a/tools/testing/selftests/kvm/lib/x86_64/vmx.c b/tools/testing/selftests/kvm/lib/x86_64/vmx.c
index 771ba6bf751c..fe56d159d65f 100644
--- a/tools/testing/selftests/kvm/lib/x86_64/vmx.c
+++ b/tools/testing/selftests/kvm/lib/x86_64/vmx.c
@@ -1,9 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * tools/testing/selftests/kvm/lib/x86_64/vmx.c 3 * tools/testing/selftests/kvm/lib/x86_64/vmx.c
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 */ 6 */
8 7
9#define _GNU_SOURCE /* for program_invocation_name */ 8#define _GNU_SOURCE /* for program_invocation_name */
diff --git a/tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c b/tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c
index 50e92996f918..6a3eec8da351 100644
--- a/tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c
+++ b/tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c
@@ -1,10 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * kvm_create_max_vcpus 3 * kvm_create_max_vcpus
3 * 4 *
4 * Copyright (C) 2019, Google LLC. 5 * Copyright (C) 2019, Google LLC.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 * Test for KVM_CAP_MAX_VCPUS and KVM_CAP_MAX_VCPU_ID. 7 * Test for KVM_CAP_MAX_VCPUS and KVM_CAP_MAX_VCPU_ID.
9 */ 8 */
10 9
diff --git a/tools/testing/selftests/kvm/x86_64/set_sregs_test.c b/tools/testing/selftests/kvm/x86_64/set_sregs_test.c
index 35640e8e95bc..9f7656184f31 100644
--- a/tools/testing/selftests/kvm/x86_64/set_sregs_test.c
+++ b/tools/testing/selftests/kvm/x86_64/set_sregs_test.c
@@ -1,16 +1,14 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * KVM_SET_SREGS tests 3 * KVM_SET_SREGS tests
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 * This is a regression test for the bug fixed by the following commit: 7 * This is a regression test for the bug fixed by the following commit:
9 * d3802286fa0f ("kvm: x86: Disallow illegal IA32_APIC_BASE MSR values") 8 * d3802286fa0f ("kvm: x86: Disallow illegal IA32_APIC_BASE MSR values")
10 * 9 *
11 * That bug allowed a user-mode program that called the KVM_SET_SREGS 10 * That bug allowed a user-mode program that called the KVM_SET_SREGS
12 * ioctl to put a VCPU's local APIC into an invalid state. 11 * ioctl to put a VCPU's local APIC into an invalid state.
13 *
14 */ 12 */
15#define _GNU_SOURCE /* for program_invocation_short_name */ 13#define _GNU_SOURCE /* for program_invocation_short_name */
16#include <fcntl.h> 14#include <fcntl.h>
diff --git a/tools/testing/selftests/kvm/x86_64/state_test.c b/tools/testing/selftests/kvm/x86_64/state_test.c
index 2a4121f4de01..1a23617f34d9 100644
--- a/tools/testing/selftests/kvm/x86_64/state_test.c
+++ b/tools/testing/selftests/kvm/x86_64/state_test.c
@@ -1,10 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * KVM_GET/SET_* tests 3 * KVM_GET/SET_* tests
3 * 4 *
4 * Copyright (C) 2018, Red Hat, Inc. 5 * Copyright (C) 2018, Red Hat, Inc.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 * Tests for vCPU state save/restore, including nested guest state. 7 * Tests for vCPU state save/restore, including nested guest state.
9 */ 8 */
10#define _GNU_SOURCE /* for program_invocation_short_name */ 9#define _GNU_SOURCE /* for program_invocation_short_name */
diff --git a/tools/testing/selftests/kvm/x86_64/sync_regs_test.c b/tools/testing/selftests/kvm/x86_64/sync_regs_test.c
index 25cacd3316f6..11c2a70a7b87 100644
--- a/tools/testing/selftests/kvm/x86_64/sync_regs_test.c
+++ b/tools/testing/selftests/kvm/x86_64/sync_regs_test.c
@@ -1,10 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Test for x86 KVM_CAP_SYNC_REGS 3 * Test for x86 KVM_CAP_SYNC_REGS
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 * Verifies expected behavior of x86 KVM_CAP_SYNC_REGS functionality, 7 * Verifies expected behavior of x86 KVM_CAP_SYNC_REGS functionality,
9 * including requesting an invalid register set, updates to/from values 8 * including requesting an invalid register set, updates to/from values
10 * in kvm_run.s.regs when kvm_valid_regs and kvm_dirty_regs are toggled. 9 * in kvm_run.s.regs when kvm_valid_regs and kvm_dirty_regs are toggled.
diff --git a/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c b/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
index 97182b47b10c..3b0ffe01dacd 100644
--- a/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
+++ b/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
@@ -1,10 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * vmx_close_while_nested 3 * vmx_close_while_nested
3 * 4 *
4 * Copyright (C) 2019, Red Hat, Inc. 5 * Copyright (C) 2019, Red Hat, Inc.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 * Verify that nothing bad happens if a KVM user exits with open 7 * Verify that nothing bad happens if a KVM user exits with open
9 * file descriptors while executing a nested guest. 8 * file descriptors while executing a nested guest.
10 */ 9 */
diff --git a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c
index 9d62e2c7e024..d0ae57aae1be 100644
--- a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c
+++ b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c
@@ -1,10 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * vmx_set_nested_state_test 3 * vmx_set_nested_state_test
3 * 4 *
4 * Copyright (C) 2019, Google LLC. 5 * Copyright (C) 2019, Google LLC.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 * This test verifies the integrity of calling the ioctl KVM_SET_NESTED_STATE. 7 * This test verifies the integrity of calling the ioctl KVM_SET_NESTED_STATE.
9 */ 8 */
10 9
diff --git a/tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c b/tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c
index 6d37a3173956..f36c10eba71e 100644
--- a/tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c
+++ b/tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c
@@ -1,11 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * vmx_tsc_adjust_test 3 * vmx_tsc_adjust_test
3 * 4 *
4 * Copyright (C) 2018, Google LLC. 5 * Copyright (C) 2018, Google LLC.
5 * 6 *
6 * This work is licensed under the terms of the GNU GPL, version 2.
7 *
8 *
9 * IA32_TSC_ADJUST test 7 * IA32_TSC_ADJUST test
10 * 8 *
11 * According to the SDM, "if an execution of WRMSR to the 9 * According to the SDM, "if an execution of WRMSR to the
diff --git a/tools/virtio/ringtest/main.c b/tools/virtio/ringtest/main.c
index 453ca3c21193..5a18b2301a63 100644
--- a/tools/virtio/ringtest/main.c
+++ b/tools/virtio/ringtest/main.c
@@ -1,7 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (C) 2016 Red Hat, Inc. 3 * Copyright (C) 2016 Red Hat, Inc.
3 * Author: Michael S. Tsirkin <mst@redhat.com> 4 * Author: Michael S. Tsirkin <mst@redhat.com>
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 * 5 *
6 * Command line processing and common functions for ring benchmarking. 6 * Command line processing and common functions for ring benchmarking.
7 */ 7 */
diff --git a/tools/virtio/ringtest/main.h b/tools/virtio/ringtest/main.h
index 301d59bfcd0a..6d1fccd3d86c 100644
--- a/tools/virtio/ringtest/main.h
+++ b/tools/virtio/ringtest/main.h
@@ -1,7 +1,7 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
1/* 2/*
2 * Copyright (C) 2016 Red Hat, Inc. 3 * Copyright (C) 2016 Red Hat, Inc.
3 * Author: Michael S. Tsirkin <mst@redhat.com> 4 * Author: Michael S. Tsirkin <mst@redhat.com>
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 * 5 *
6 * Common macros and functions for ring benchmarking. 6 * Common macros and functions for ring benchmarking.
7 */ 7 */
diff --git a/tools/virtio/ringtest/ring.c b/tools/virtio/ringtest/ring.c
index 5a41404aaef5..58e7d33bddfc 100644
--- a/tools/virtio/ringtest/ring.c
+++ b/tools/virtio/ringtest/ring.c
@@ -1,7 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (C) 2016 Red Hat, Inc. 3 * Copyright (C) 2016 Red Hat, Inc.
3 * Author: Michael S. Tsirkin <mst@redhat.com> 4 * Author: Michael S. Tsirkin <mst@redhat.com>
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 * 5 *
6 * Simple descriptor-based ring. virtio 0.9 compatible event index is used for 6 * Simple descriptor-based ring. virtio 0.9 compatible event index is used for
7 * signalling, unconditionally. 7 * signalling, unconditionally.
diff --git a/tools/virtio/ringtest/virtio_ring_0_9.c b/tools/virtio/ringtest/virtio_ring_0_9.c
index 5fd3fbcb9e57..13a035a390e9 100644
--- a/tools/virtio/ringtest/virtio_ring_0_9.c
+++ b/tools/virtio/ringtest/virtio_ring_0_9.c
@@ -1,7 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (C) 2016 Red Hat, Inc. 3 * Copyright (C) 2016 Red Hat, Inc.
3 * Author: Michael S. Tsirkin <mst@redhat.com> 4 * Author: Michael S. Tsirkin <mst@redhat.com>
4 * This work is licensed under the terms of the GNU GPL, version 2.
5 * 5 *
6 * Partial implementation of virtio 0.9. event index is used for signalling, 6 * Partial implementation of virtio 0.9. event index is used for signalling,
7 * unconditionally. Design roughly follows linux kernel implementation in order 7 * unconditionally. Design roughly follows linux kernel implementation in order