Commit 7a338472 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Greg Kroah-Hartman

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: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarAllison Randal <allison@lohutok.net>
Reviewed-by: default avatarEnrico Weigelt <info@metux.net>
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081204.624030236@linutronix.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e500db3f
/* SPDX-License-Identifier: GPL-2.0-only */
/* adi_64.h: ADI related data structures /* adi_64.h: ADI related data structures
* *
* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
* Author: Khalid Aziz (khalid.aziz@oracle.com) * Author: Khalid Aziz (khalid.aziz@oracle.com)
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#ifndef __ASM_SPARC64_ADI_H #ifndef __ASM_SPARC64_ADI_H
#define __ASM_SPARC64_ADI_H #define __ASM_SPARC64_ADI_H
......
// SPDX-License-Identifier: GPL-2.0-only
/* adi_64.c: support for ADI (Application Data Integrity) feature on /* adi_64.c: support for ADI (Application Data Integrity) feature on
* sparc m7 and newer processors. This feature is also known as * sparc m7 and newer processors. This feature is also known as
* SSM (Silicon Secured Memory). * SSM (Silicon Secured Memory).
* *
* Copyright (C) 2016 Oracle and/or its affiliates. All rights reserved. * Copyright (C) 2016 Oracle and/or its affiliates. All rights reserved.
* Author: Khalid Aziz (khalid.aziz@oracle.com) * Author: Khalid Aziz (khalid.aziz@oracle.com)
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* sun4v_mcd.S: Sun4v memory corruption detected precise exception handler /* sun4v_mcd.S: Sun4v memory corruption detected precise exception handler
* *
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved.
* Authors: Bob Picco <bob.picco@oracle.com>, * Authors: Bob Picco <bob.picco@oracle.com>,
* Khalid Aziz <khalid.aziz@oracle.com> * Khalid Aziz <khalid.aziz@oracle.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
.text .text
.align 32 .align 32
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* ec_sys.c * ec_sys.c
* *
* Copyright (C) 2010 SUSE Products GmbH/Novell * Copyright (C) 2010 SUSE Products GmbH/Novell
* Author: * Author:
* Thomas Renninger <trenn@suse.de> * Thomas Renninger <trenn@suse.de>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2009 Red Hat, Inc. /* Copyright (C) 2009 Red Hat, Inc.
* Author: Michael S. Tsirkin <mst@redhat.com> * Author: Michael S. Tsirkin <mst@redhat.com>
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* virtio-net server in host kernel. * virtio-net server in host kernel.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2009 Red Hat, Inc. /* Copyright (C) 2009 Red Hat, Inc.
* Author: Michael S. Tsirkin <mst@redhat.com> * Author: Michael S. Tsirkin <mst@redhat.com>
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* test virtio server in host kernel. * test virtio server in host kernel.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2009 Red Hat, Inc. /* Copyright (C) 2009 Red Hat, Inc.
* Copyright (C) 2006 Rusty Russell IBM Corporation * Copyright (C) 2006 Rusty Russell IBM Corporation
* *
...@@ -6,8 +7,6 @@ ...@@ -6,8 +7,6 @@
* Inspiration, some code, and most witty comments come from * Inspiration, some code, and most witty comments come from
* Documentation/virtual/lguest/lguest.c, by Rusty Russell * Documentation/virtual/lguest/lguest.c, by Rusty Russell
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* Generic code for virtio server in host kernel. * Generic code for virtio server in host kernel.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* vhost transport for vsock * vhost transport for vsock
* *
* Copyright (C) 2013-2015 Red Hat, Inc. * Copyright (C) 2013-2015 Red Hat, Inc.
* Author: Asias He <asias@redhat.com> * Author: Asias He <asias@redhat.com>
* Stefan Hajnoczi <stefanha@redhat.com> * Stefan Hajnoczi <stefanha@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/atomic.h> #include <linux/atomic.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Cleancache frontend * Cleancache frontend
* *
...@@ -7,8 +8,6 @@ ...@@ -7,8 +8,6 @@
* *
* Copyright (C) 2009-2010 Oracle Corp. All rights reserved. * Copyright (C) 2009-2010 Oracle Corp. All rights reserved.
* Author: Dan Magenheimer * Author: Dan Magenheimer
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/module.h> #include <linux/module.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Frontswap frontend * Frontswap frontend
* *
...@@ -7,8 +8,6 @@ ...@@ -7,8 +8,6 @@
* *
* Copyright (C) 2009-2012 Oracle Corp. All rights reserved. * Copyright (C) 2009-2012 Oracle Corp. All rights reserved.
* Author: Dan Magenheimer * Author: Dan Magenheimer
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/mman.h> #include <linux/mman.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Memory merging support. * Memory merging support.
* *
...@@ -10,8 +11,6 @@ ...@@ -10,8 +11,6 @@
* Andrea Arcangeli * Andrea Arcangeli
* Chris Wright * Chris Wright
* Hugh Dickins * Hugh Dickins
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/errno.h> #include <linux/errno.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* virtio transport for vsock * virtio transport for vsock
* *
...@@ -7,8 +8,6 @@ ...@@ -7,8 +8,6 @@
* *
* Some of the code is take from Gerd Hoffmann <kraxel@redhat.com>'s * Some of the code is take from Gerd Hoffmann <kraxel@redhat.com>'s
* early virtio-vsock proof-of-concept bits. * early virtio-vsock proof-of-concept bits.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/module.h> #include <linux/module.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* common code for virtio vsock * common code for virtio vsock
* *
* Copyright (C) 2013-2015 Red Hat, Inc. * Copyright (C) 2013-2015 Red Hat, Inc.
* Author: Asias He <asias@redhat.com> * Author: Asias He <asias@redhat.com>
* Stefan Hajnoczi <stefanha@redhat.com> * Stefan Hajnoczi <stefanha@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/module.h> #include <linux/module.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* ec_access.c * ec_access.c
* *
* Copyright (C) 2010 SUSE Linux Products GmbH * Copyright (C) 2010 SUSE Linux Products GmbH
* Author: * Author:
* Thomas Renninger <trenn@suse.de> * Thomas Renninger <trenn@suse.de>
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include <fcntl.h> #include <fcntl.h>
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* tools/testing/selftests/kvm/include/kvm_util.h * tools/testing/selftests/kvm/include/kvm_util.h
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*
*/ */
#ifndef SELFTEST_KVM_UTIL_H #ifndef SELFTEST_KVM_UTIL_H
#define SELFTEST_KVM_UTIL_H #define SELFTEST_KVM_UTIL_H
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* tools/testing/selftests/kvm/include/sparsebit.h * tools/testing/selftests/kvm/include/sparsebit.h
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
*
* Header file that describes API to the sparsebit library. * Header file that describes API to the sparsebit library.
* This library provides a memory efficient means of storing * This library provides a memory efficient means of storing
* the settings of bits indexed via a uint64_t. Memory usage * the settings of bits indexed via a uint64_t. Memory usage
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* tools/testing/selftests/kvm/include/test_util.h * tools/testing/selftests/kvm/include/test_util.h
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*
*/ */
#ifndef SELFTEST_KVM_TEST_UTIL_H #ifndef SELFTEST_KVM_TEST_UTIL_H
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* tools/testing/selftests/kvm/include/x86_64/processor.h * tools/testing/selftests/kvm/include/x86_64/processor.h
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*
*/ */
#ifndef SELFTEST_KVM_PROCESSOR_H #ifndef SELFTEST_KVM_PROCESSOR_H
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* tools/testing/selftests/kvm/include/x86_64/vmx.h * tools/testing/selftests/kvm/include/x86_64/vmx.h
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*
*/ */
#ifndef SELFTEST_KVM_VMX_H #ifndef SELFTEST_KVM_VMX_H
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* tools/testing/selftests/kvm/lib/assert.c * tools/testing/selftests/kvm/lib/assert.c
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#define _GNU_SOURCE /* for getline(3) and strchrnul(3)*/ #define _GNU_SOURCE /* for getline(3) and strchrnul(3)*/
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* tools/testing/selftests/kvm/lib/elf.c * tools/testing/selftests/kvm/lib/elf.c
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include "test_util.h" #include "test_util.h"
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* tools/testing/selftests/kvm/lib/io.c * tools/testing/selftests/kvm/lib/io.c
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include "test_util.h" #include "test_util.h"
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* tools/testing/selftests/kvm/lib/kvm_util.c * tools/testing/selftests/kvm/lib/kvm_util.c
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#include "test_util.h" #include "test_util.h"
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* tools/testing/selftests/kvm/lib/kvm_util_internal.h * tools/testing/selftests/kvm/lib/kvm_util_internal.h
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#ifndef SELFTEST_KVM_UTIL_INTERNAL_H #ifndef SELFTEST_KVM_UTIL_INTERNAL_H
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Sparse bit array * Sparse bit array
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
* Copyright (C) 2018, Red Hat, Inc. (code style cleanup and fuzzing driver) * Copyright (C) 2018, Red Hat, Inc. (code style cleanup and fuzzing driver)
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* This library provides functions to support a memory efficient bit array, * This library provides functions to support a memory efficient bit array,
* with an index size of 2^64. A sparsebit array is allocated through * with an index size of 2^64. A sparsebit array is allocated through
* the use sparsebit_alloc() and free'd via sparsebit_free(), * the use sparsebit_alloc() and free'd via sparsebit_free(),
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* tools/testing/selftests/kvm/lib/x86_64/processor.c * tools/testing/selftests/kvm/lib/x86_64/processor.c
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#define _GNU_SOURCE /* for program_invocation_name */ #define _GNU_SOURCE /* for program_invocation_name */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* tools/testing/selftests/kvm/lib/x86_64/vmx.c * tools/testing/selftests/kvm/lib/x86_64/vmx.c
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*/ */
#define _GNU_SOURCE /* for program_invocation_name */ #define _GNU_SOURCE /* for program_invocation_name */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* kvm_create_max_vcpus * kvm_create_max_vcpus
* *
* Copyright (C) 2019, Google LLC. * Copyright (C) 2019, Google LLC.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* Test for KVM_CAP_MAX_VCPUS and KVM_CAP_MAX_VCPU_ID. * Test for KVM_CAP_MAX_VCPUS and KVM_CAP_MAX_VCPU_ID.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* KVM_SET_SREGS tests * KVM_SET_SREGS tests
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* This is a regression test for the bug fixed by the following commit: * This is a regression test for the bug fixed by the following commit:
* d3802286fa0f ("kvm: x86: Disallow illegal IA32_APIC_BASE MSR values") * d3802286fa0f ("kvm: x86: Disallow illegal IA32_APIC_BASE MSR values")
* *
* That bug allowed a user-mode program that called the KVM_SET_SREGS * That bug allowed a user-mode program that called the KVM_SET_SREGS
* ioctl to put a VCPU's local APIC into an invalid state. * ioctl to put a VCPU's local APIC into an invalid state.
*
*/ */
#define _GNU_SOURCE /* for program_invocation_short_name */ #define _GNU_SOURCE /* for program_invocation_short_name */
#include <fcntl.h> #include <fcntl.h>
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* KVM_GET/SET_* tests * KVM_GET/SET_* tests
* *
* Copyright (C) 2018, Red Hat, Inc. * Copyright (C) 2018, Red Hat, Inc.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* Tests for vCPU state save/restore, including nested guest state. * Tests for vCPU state save/restore, including nested guest state.
*/ */
#define _GNU_SOURCE /* for program_invocation_short_name */ #define _GNU_SOURCE /* for program_invocation_short_name */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Test for x86 KVM_CAP_SYNC_REGS * Test for x86 KVM_CAP_SYNC_REGS
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* Verifies expected behavior of x86 KVM_CAP_SYNC_REGS functionality, * Verifies expected behavior of x86 KVM_CAP_SYNC_REGS functionality,
* including requesting an invalid register set, updates to/from values * including requesting an invalid register set, updates to/from values
* in kvm_run.s.regs when kvm_valid_regs and kvm_dirty_regs are toggled. * in kvm_run.s.regs when kvm_valid_regs and kvm_dirty_regs are toggled.
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* vmx_close_while_nested * vmx_close_while_nested
* *
* Copyright (C) 2019, Red Hat, Inc. * Copyright (C) 2019, Red Hat, Inc.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* Verify that nothing bad happens if a KVM user exits with open * Verify that nothing bad happens if a KVM user exits with open
* file descriptors while executing a nested guest. * file descriptors while executing a nested guest.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* vmx_set_nested_state_test * vmx_set_nested_state_test
* *
* Copyright (C) 2019, Google LLC. * Copyright (C) 2019, Google LLC.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
* This test verifies the integrity of calling the ioctl KVM_SET_NESTED_STATE. * This test verifies the integrity of calling the ioctl KVM_SET_NESTED_STATE.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* vmx_tsc_adjust_test * vmx_tsc_adjust_test
* *
* Copyright (C) 2018, Google LLC. * Copyright (C) 2018, Google LLC.
* *
* This work is licensed under the terms of the GNU GPL, version 2.
*
*
* IA32_TSC_ADJUST test * IA32_TSC_ADJUST test
* *
* According to the SDM, "if an execution of WRMSR to the * According to the SDM, "if an execution of WRMSR to the
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (C) 2016 Red Hat, Inc. * Copyright (C) 2016 Red Hat, Inc.
* Author: Michael S. Tsirkin <mst@redhat.com> * Author: Michael S. Tsirkin <mst@redhat.com>
* This work is licensed under the terms of the GNU GPL, version 2.
* *
* Command line processing and common functions for ring benchmarking. * Command line processing and common functions for ring benchmarking.
*/ */
......
/* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* Copyright (C) 2016 Red Hat, Inc. * Copyright (C) 2016 Red Hat, Inc.
* Author: Michael S. Tsirkin <mst@redhat.com> * Author: Michael S. Tsirkin <mst@redhat.com>
* This work is licensed under the terms of the GNU GPL, version 2.
* *
* Common macros and functions for ring benchmarking. * Common macros and functions for ring benchmarking.
*/ */
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (C) 2016 Red Hat, Inc. * Copyright (C) 2016 Red Hat, Inc.
* Author: Michael S. Tsirkin <mst@redhat.com> * Author: Michael S. Tsirkin <mst@redhat.com>
* This work is licensed under the terms of the GNU GPL, version 2.
* *
* Simple descriptor-based ring. virtio 0.9 compatible event index is used for * Simple descriptor-based ring. virtio 0.9 compatible event index is used for
* signalling, unconditionally. * signalling, unconditionally.
......
// SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (C) 2016 Red Hat, Inc. * Copyright (C) 2016 Red Hat, Inc.
* Author: Michael S. Tsirkin <mst@redhat.com> * Author: Michael S. Tsirkin <mst@redhat.com>
* This work is licensed under the terms of the GNU GPL, version 2.
* *
* Partial implementation of virtio 0.9. event index is used for signalling, * Partial implementation of virtio 0.9. event index is used for signalling,
* unconditionally. Design roughly follows linux kernel implementation in order * unconditionally. Design roughly follows linux kernel implementation in order
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment