RE: [v7 4/8] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2015-05-26 Thread Wu, Feng
Subject: RE: [v7 4/8] iommu, x86: No need to migrating irq for VT-d > Posted-Interrupts > > On Tue, 26 May 2015, Wu, Feng wrote: > > > On Mon, 25 May 2015, Feng Wu wrote: > > > > + > > > > + /* We don't need to modify irte if the inte

RE: [v7 4/8] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2015-05-26 Thread Thomas Gleixner
On Tue, 26 May 2015, Wu, Feng wrote: > > On Mon, 25 May 2015, Feng Wu wrote: > > > + > > > + /* We don't need to modify irte if the interrupt is for posting. */ > > > + if (irte->pst != 1) > > > + modify_irte(&ir_data->irq_2_iommu, irte); > > > > I don't think this is correct. ir_data->irt

RE: [v7 4/8] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2015-05-25 Thread Wu, Feng
Subject: Re: [v7 4/8] iommu, x86: No need to migrating irq for VT-d > Posted-Interrupts > > On Mon, 25 May 2015, Feng Wu wrote: > > > We don't need to migrate the irqs for VT-d Posted-Interrupts here. > > When 'pst' is set in IRTE, the associated irq will

Re: [v7 4/8] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2015-05-25 Thread Thomas Gleixner
On Mon, 25 May 2015, Feng Wu wrote: > We don't need to migrate the irqs for VT-d Posted-Interrupts here. > When 'pst' is set in IRTE, the associated irq will be posted to > guests instead of interrupt remapping. The destination of the > interrupt is set in Posted-Interrupts Descriptor, and the mig

[v7 4/8] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2015-05-24 Thread Feng Wu
We don't need to migrate the irqs for VT-d Posted-Interrupts here. When 'pst' is set in IRTE, the associated irq will be posted to guests instead of interrupt remapping. The destination of the interrupt is set in Posted-Interrupts Descriptor, and the migration happens during vCPU scheduling. Howev