This patch series adds generic support for issuing device control related ioctls and supports creating the ARM KVM-accelerated VGIC using the device control API while maintaining backwards compatibility for older kernels.
This is an RFC patch set because it relies on kernel header changes that are not yet upstream. Changelogs in the individual patches. Christoffer Dall (4): kvm: Update headers for device control api kvm: Introduce kvm_arch_irqchip_create kvm: Common device control API functions arm: vgic device control api support hw/intc/arm_gic_kvm.c | 22 +++++++++++++++-- hw/intc/gic_internal.h | 1 + include/sysemu/kvm.h | 34 ++++++++++++++++++++++++++ kvm-all.c | 50 +++++++++++++++++++++++++++++++++++++-- linux-headers/asm-arm/kvm.h | 8 +++++++ linux-headers/linux/kvm.h | 1 + stubs/Makefile.objs | 1 + stubs/kvm.c | 7 ++++++ target-arm/kvm.c | 55 +++++++++++++++++++++++++++++++++++++------ target-arm/kvm_arm.h | 18 +++++++++----- trace-events | 1 + 11 files changed, 181 insertions(+), 17 deletions(-) create mode 100644 stubs/kvm.c -- 1.7.10.4