Skip to contentSkip to conversation

KVM: PPC: Book3S HV: add a GET_ESB_FD control to the 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 7/16 KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

This will let the guest create a memory mapping to expose the ESB MMIO regions used to control the interrupt sources, to trigger events, to EOI or to turn off the sources.

---
 arch/powerpc/include/uapi/asm/kvm.h   |  2 +
 arch/powerpc/kvm/book3s_xive_native.c | 88 +++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)
arch/powerpc/include/uapi/asm/kvm.h +2 -0
index 84fde0295939..cf54fad1faf6 100644
@@ -675,6 +675,8 @@ struct kvm_ppc_cpu_char {
 
 /* POWER9 XIVE Native Interrupt Controller */
 #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
 
 /* Layout of 64-bit XIVE source attribute values */
 #define  KVM_XIVE_LEVEL_SENSITIVE	(1ULL << 0)
arch/powerpc/kvm/book3s_xive_native.c +88 -0

106 lines not on this page · raw message

Signature · 1 line
2.13.6