KVM: PPC: Book3S HV: XIVE: Add passthrough support
[sfrench/cifs-2.6.git] / arch / powerpc / kvm / book3s_xive.h
index 622f594d93e1de20be3888b3cd7ca9a588e2d10a..e011622dc0384959c50ac956d823f22dac17e3dd 100644 (file)
@@ -94,6 +94,11 @@ struct kvmppc_xive_src_block {
        struct kvmppc_xive_irq_state irq_state[KVMPPC_XICS_IRQ_PER_ICS];
 };
 
+struct kvmppc_xive;
+
+struct kvmppc_xive_ops {
+       int (*reset_mapped)(struct kvm *kvm, unsigned long guest_irq);
+};
 
 struct kvmppc_xive {
        struct kvm *kvm;
@@ -132,6 +137,10 @@ struct kvmppc_xive {
 
        /* Flags */
        u8      single_escalation;
+
+       struct kvmppc_xive_ops *ops;
+       struct address_space   *mapping;
+       struct mutex mapping_lock;
 };
 
 #define KVMPPC_XIVE_Q_COUNT    8