KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device
Subsystems (2)
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.
Signed-off-by Cédric Le Goater <[email protected]>
--- 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
@@ -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