thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-linux-headers-Update-for-nested-KVM-HV-downstream-on.patch

26ba25
From d514010d4b0abc4eeae499f06c9c9443f85273c7 Mon Sep 17 00:00:00 2001
26ba25
From: David Gibson <dgibson@redhat.com>
26ba25
Date: Mon, 12 Nov 2018 01:28:33 +0000
26ba25
Subject: [PATCH 02/16] linux-headers: Update for nested KVM-HV [downstream
26ba25
 only]
26ba25
26ba25
RH-Author: David Gibson <dgibson@redhat.com>
26ba25
Message-id: <20181112012835.21863-3-dgibson@redhat.com>
26ba25
Patchwork-id: 82977
26ba25
O-Subject: [RHEL-8 qemu-kvm PATCH 2/4] linux-headers: Update for nested KVM-HV [downstream only]
26ba25
Bugzilla: 1639069
26ba25
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
26ba25
RH-Acked-by: Serhii Popovych <spopovyc@redhat.com>
26ba25
RH-Acked-by: Thomas Huth <thuth@redhat.com>
26ba25
26ba25
Update for the necessary pieces for nested KVM HV on POWER.  Not a full
26ba25
header update, just selected pieces, since that seems to be the norm
26ba25
downstream.
26ba25
26ba25
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1639069
26ba25
26ba25
Signed-off-by: David Gibson <dgibson@redhat.com>
26ba25
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
26ba25
---
26ba25
 linux-headers/asm-powerpc/kvm.h | 1 +
26ba25
 linux-headers/linux/kvm.h       | 1 +
26ba25
 2 files changed, 2 insertions(+)
26ba25
26ba25
diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-powerpc/kvm.h
26ba25
index 833ed9a..83a50df 100644
26ba25
--- a/linux-headers/asm-powerpc/kvm.h
26ba25
+++ b/linux-headers/asm-powerpc/kvm.h
26ba25
@@ -633,6 +633,7 @@ struct kvm_ppc_cpu_char {
26ba25
 #define KVM_REG_PPC_PSSCR	(KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbd)
26ba25
 
26ba25
 #define KVM_REG_PPC_DEC_EXPIRY	(KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbe)
26ba25
+#define KVM_REG_PPC_PTCR	(KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc0)
26ba25
 
26ba25
 /* Transactional Memory checkpointed state:
26ba25
  * This is all GPRs, all VSX regs and a subset of SPRs
26ba25
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
26ba25
index 9d2e44d..8be1232 100644
26ba25
--- a/linux-headers/linux/kvm.h
26ba25
+++ b/linux-headers/linux/kvm.h
26ba25
@@ -940,6 +940,7 @@ struct kvm_ppc_resize_hpt {
26ba25
 #define KVM_CAP_NESTED_STATE 157
26ba25
 #define KVM_CAP_ARM_INJECT_SERROR_ESR 158
26ba25
 #define KVM_CAP_MSR_PLATFORM_INFO 159
26ba25
+#define KVM_CAP_PPC_NESTED_HV 160
26ba25
 
26ba25
 #ifdef KVM_CAP_IRQ_ROUTING
26ba25
 
26ba25
-- 
26ba25
1.8.3.1
26ba25