Skip to content

Commit

Permalink
x86/dom0: propagate PVH vlapic EOIs to hardware
Browse files Browse the repository at this point in the history
Current check for MSI EIO is missing a special case for PVH Dom0,
which doesn't have a hvm_irq_dpci struct but requires EIOs to be
forwarded to the physical lapic for passed-through devices.

Add a short-circuit to allow EOIs from PVH Dom0 to be propagated.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
  • Loading branch information
royger authored and jbeulich committed Mar 5, 2019
1 parent 2215a8b commit 7b653a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xen/drivers/passthrough/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,8 @@ static int _hvm_dpci_msi_eoi(struct domain *d,

void hvm_dpci_msi_eoi(struct domain *d, int vector)
{
if ( !iommu_enabled || !hvm_domain_irq(d)->dpci )
if ( !iommu_enabled ||
(!hvm_domain_irq(d)->dpci && !is_hardware_domain(d)) )
return;

spin_lock(&d->event_lock);
Expand Down

0 comments on commit 7b653a2

Please sign in to comment.