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