diff options
author | Steve Rutherford <srutherford@google.com> | 2015-07-30 02:21:40 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 09:06:26 -0400 |
commit | 49df6397edfc5a8ba8ca813b51fb9729d8e94b40 (patch) | |
tree | b5cb29a28fff01c9c85c4f02961164532fa241b2 /include | |
parent | 4ca7dd8ce4b24e18f94eed90e80c6eb80fb48c9a (diff) |
KVM: x86: Split the APIC from the rest of IRQCHIP.
First patch in a series which enables the relocation of the
PIC/IOAPIC to userspace.
Adds capability KVM_CAP_SPLIT_IRQCHIP;
KVM_CAP_SPLIT_IRQCHIP enables the construction of LAPICs without the
rest of the irqchip.
Compile tested for x86.
Signed-off-by: Steve Rutherford <srutherford@google.com>
Suggested-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm_host.h | 1 | ||||
-rw-r--r-- | include/uapi/linux/kvm.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 1bef9e21e725..354f147647ab 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -1002,6 +1002,7 @@ static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq) | |||
1002 | #endif | 1002 | #endif |
1003 | 1003 | ||
1004 | int kvm_setup_default_irq_routing(struct kvm *kvm); | 1004 | int kvm_setup_default_irq_routing(struct kvm *kvm); |
1005 | int kvm_setup_empty_irq_routing(struct kvm *kvm); | ||
1005 | int kvm_set_irq_routing(struct kvm *kvm, | 1006 | int kvm_set_irq_routing(struct kvm *kvm, |
1006 | const struct kvm_irq_routing_entry *entries, | 1007 | const struct kvm_irq_routing_entry *entries, |
1007 | unsigned nr, | 1008 | unsigned nr, |
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index a9256f0331ae..ed00f8fc9ea2 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
@@ -824,6 +824,7 @@ struct kvm_ppc_smmu_info { | |||
824 | #define KVM_CAP_MULTI_ADDRESS_SPACE 118 | 824 | #define KVM_CAP_MULTI_ADDRESS_SPACE 118 |
825 | #define KVM_CAP_GUEST_DEBUG_HW_BPS 119 | 825 | #define KVM_CAP_GUEST_DEBUG_HW_BPS 119 |
826 | #define KVM_CAP_GUEST_DEBUG_HW_WPS 120 | 826 | #define KVM_CAP_GUEST_DEBUG_HW_WPS 120 |
827 | #define KVM_CAP_SPLIT_IRQCHIP 121 | ||
827 | 828 | ||
828 | #ifdef KVM_CAP_IRQ_ROUTING | 829 | #ifdef KVM_CAP_IRQ_ROUTING |
829 | 830 | ||