Skip to contentSkip to conversation

KVM: PPC: Book3S HV: add a GET_TIMA_FD control to XIVE native device

RFC PATCH New Cédric Le Goater 1 participant 1 message Apr 23, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 8/16 KVM: PPC: Book3S HV: add a GET_TIMA_FD control to XIVE native device

This will let the guest create a memory mapping to expose the XIVE MMIO region (TIMA) used for interrupt management at the CPU level.

---
 arch/powerpc/include/uapi/asm/kvm.h   |  1 +
 arch/powerpc/kvm/book3s_xive_native.c | 49 +++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
arch/powerpc/include/uapi/asm/kvm.h +1 -0
index cf54fad1faf6..c564ee892cac 100644
@@ -677,6 +677,7 @@ struct kvm_ppc_cpu_char {
 #define KVM_DEV_XIVE_GRP_SOURCES	1	/* 64-bit source attributes */
 #define KVM_DEV_XIVE_GRP_CTRL		2
 #define   KVM_DEV_XIVE_GET_ESB_FD	1
+#define   KVM_DEV_XIVE_GET_TIMA_FD	2
 
 /* Layout of 64-bit XIVE source attribute values */
 #define  KVM_XIVE_LEVEL_SENSITIVE	(1ULL << 0)
arch/powerpc/kvm/book3s_xive_native.c +49 -0

67 lines not on this page · raw message

Signature · 1 line
2.13.6