@@ -242,6 +242,30 @@ void hvm_isa_irq_deassert(
spin_unlock(&d->arch.hvm.irq_lock);
}
+void hvm_irq_raise(struct domain *d, unsigned int irq)
+{
+ if ( irq < NR_ISAIRQS )
+ {
+ hvm_isa_irq_assert(d, irq, NULL);
+ }
+ else
+ {
+ hvm_gsi_assert(d, irq);
+ }
+}
+
+void hvm_irq_lower(struct domain *d, unsigned int irq)
+{
+ if ( irq < NR_ISAIRQS )
+ {
+ hvm_isa_irq_deassert(d, irq);
+ }
+ else
+ {
+ hvm_gsi_deassert(d, irq);
+ }
+}
+
static void hvm_set_callback_irq_level(struct vcpu *v)
{
struct domain *d = v->domain;
@@ -210,6 +210,9 @@ void hvm_maybe_deassert_evtchn_irq(void);
void hvm_assert_evtchn_irq(struct vcpu *v);
void hvm_set_callback_via(struct domain *d, uint64_t via);
+void hvm_irq_raise(struct domain *d, unsigned int irq);
+void hvm_irq_lower(struct domain *d, unsigned int irq);
+
struct pirq;
bool hvm_domain_use_pirq(const struct domain *d, const struct pirq *pirq);