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