Re: [PATCH RFC 5/6] amd/iommu: atomically update remapping entries when possible

2022-07-05 Thread Jan Beulich
On 21.04.2022 15:21, Roger Pau Monne wrote: > @@ -366,8 +383,11 @@ void cf_check amd_iommu_ioapic_update_ire( > fresh = true; > } > > -/* mask the interrupt while we change the intremap table */ > -if ( !saved_mask ) > +/* > + * Mask the interrupt while we change the

[PATCH RFC 5/6] amd/iommu: atomically update remapping entries when possible

2022-04-21 Thread Roger Pau Monne
Doing so matches existing VT-d behavior, and does prevent having to disable the remapping entry or mask the IO-APIC pin prior to being updated, as the remap entry content is always consistent. Signed-off-by: Roger Pau Monné --- xen/drivers/passthrough/amd/iommu_intr.c | 31 +-