Re: [PATCH v3 2/2] spapr: Enable virtio iommu_platform=on by default

2020-03-12 Thread Greg Kurz
On Thu, 12 Mar 2020 15:14:06 +1100 Alexey Kardashevskiy wrote: > > > On 10/03/2020 21:43, Greg Kurz wrote: > > On Thu, 5 Mar 2020 12:59:03 +0100 > > Greg Kurz wrote: > > > >> On Thu, 5 Mar 2020 15:30:09 +1100 > >> David Gibson wrote: > >> > >>> Traditionally, virtio devices don't do DMA by

Re: [PATCH v3 2/2] spapr: Enable virtio iommu_platform=on by default

2020-03-11 Thread Alexey Kardashevskiy
On 10/03/2020 21:43, Greg Kurz wrote: > On Thu, 5 Mar 2020 12:59:03 +0100 > Greg Kurz wrote: > >> On Thu, 5 Mar 2020 15:30:09 +1100 >> David Gibson wrote: >> >>> Traditionally, virtio devices don't do DMA by the usual path on the >>> guest platform. In particular they usually bypass any vir

Re: [PATCH v3 2/2] spapr: Enable virtio iommu_platform=on by default

2020-03-10 Thread Greg Kurz
On Thu, 5 Mar 2020 12:59:03 +0100 Greg Kurz wrote: > On Thu, 5 Mar 2020 15:30:09 +1100 > David Gibson wrote: > > > Traditionally, virtio devices don't do DMA by the usual path on the > > guest platform. In particular they usually bypass any virtual IOMMU > > the guest has, using hypervisor ma

Re: [PATCH v3 2/2] spapr: Enable virtio iommu_platform=on by default

2020-03-05 Thread Greg Kurz
On Thu, 5 Mar 2020 15:30:09 +1100 David Gibson wrote: > Traditionally, virtio devices don't do DMA by the usual path on the > guest platform. In particular they usually bypass any virtual IOMMU > the guest has, using hypervisor magic to access untranslated guest > physical addresses. > > There

[PATCH v3 2/2] spapr: Enable virtio iommu_platform=on by default

2020-03-04 Thread David Gibson
Traditionally, virtio devices don't do DMA by the usual path on the guest platform. In particular they usually bypass any virtual IOMMU the guest has, using hypervisor magic to access untranslated guest physical addresses. There's now the optional iommu_platform flag which can tell virtio devices

[PATCH v2 2/2] spapr: Enable virtio iommu_platform=on by default

2020-02-12 Thread David Gibson
Traditionally, virtio devices don't do DMA by the usual path on the guest platform. In particular they usually bypass any virtual IOMMU the guest has, using hypervisor magic to access untranslated guest physical addresses. There's now the optional iommu_platform flag which can tell virtio devices

Re: [PATCH 2/2] spapr: Enable virtio iommu_platform=on by default

2020-02-06 Thread Michael S. Tsirkin
On Fri, Feb 07, 2020 at 03:30:55PM +1100, David Gibson wrote: > Traditionally, virtio devices don't do DMA by the usual path on the > guest platform. In particular they usually bypass any virtual IOMMU > the guest has, using hypervisor magic to access untranslated guest > physical addresses. > >

[PATCH 2/2] spapr: Enable virtio iommu_platform=on by default

2020-02-06 Thread David Gibson
Traditionally, virtio devices don't do DMA by the usual path on the guest platform. In particular they usually bypass any virtual IOMMU the guest has, using hypervisor magic to access untranslated guest physical addresses. There's now the optional iommu_platform flag which can tell virtio devices

Re: virtio,iommu_platform=on

2019-11-14 Thread Alexey Kardashevskiy
On 14/11/2019 19:42, Michael S. Tsirkin wrote: > On Thu, Nov 14, 2019 at 09:58:47AM +1100, Alexey Kardashevskiy wrote: >> >> >> On 13/11/2019 21:00, Michael S. Tsirkin wrote: >>> On Wed, Nov 13, 2019 at 03:44:28PM +1100, Alexey Kardashevskiy wrote: On 12/11/2019 18:08, Michael S.

Re: virtio,iommu_platform=on

2019-11-14 Thread Michael S. Tsirkin
On Thu, Nov 14, 2019 at 09:58:47AM +1100, Alexey Kardashevskiy wrote: > > > On 13/11/2019 21:00, Michael S. Tsirkin wrote: > > On Wed, Nov 13, 2019 at 03:44:28PM +1100, Alexey Kardashevskiy wrote: > >> > >> > >> On 12/11/2019 18:08, Michael S. Tsirkin wrote: > >>> On Tue, Nov 12, 2019 at 02:53:49

Re: virtio,iommu_platform=on

2019-11-13 Thread Alexey Kardashevskiy
On 13/11/2019 21:00, Michael S. Tsirkin wrote: > On Wed, Nov 13, 2019 at 03:44:28PM +1100, Alexey Kardashevskiy wrote: >> >> >> On 12/11/2019 18:08, Michael S. Tsirkin wrote: >>> On Tue, Nov 12, 2019 at 02:53:49PM +1100, Alexey Kardashevskiy wrote: Hi! I am enabling IOMMU for virt

Re: virtio,iommu_platform=on

2019-11-13 Thread Michael S. Tsirkin
On Wed, Nov 13, 2019 at 03:44:28PM +1100, Alexey Kardashevskiy wrote: > > > On 12/11/2019 18:08, Michael S. Tsirkin wrote: > > On Tue, Nov 12, 2019 at 02:53:49PM +1100, Alexey Kardashevskiy wrote: > >> Hi! > >> > >> I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing > >> pro

Re: virtio,iommu_platform=on

2019-11-12 Thread Alexey Kardashevskiy
On 13/11/2019 17:23, Alexey Kardashevskiy wrote: > > > On 13/11/2019 16:54, Michael Roth wrote: >> Quoting Alexey Kardashevskiy (2019-11-11 21:53:49) >>> Hi! >>> >>> I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing >>> problems, one of them is SLOF does SCSI bus scan, t

Re: virtio,iommu_platform=on

2019-11-12 Thread Alexey Kardashevskiy
On 13/11/2019 16:54, Michael Roth wrote: > Quoting Alexey Kardashevskiy (2019-11-11 21:53:49) >> Hi! >> >> I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing >> problems, one of them is SLOF does SCSI bus scan, then it stops the >> virtio-scsi by clearing MMIO|IO|BUSMASTER

Re: virtio,iommu_platform=on

2019-11-12 Thread Michael Roth
Quoting Alexey Kardashevskiy (2019-11-11 21:53:49) > Hi! > > I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing > problems, one of them is SLOF does SCSI bus scan, then it stops the > virtio-scsi by clearing MMIO|IO|BUSMASTER from PCI_COMMAND (as SLOF > stopped using the devi

Re: virtio,iommu_platform=on

2019-11-12 Thread Alexey Kardashevskiy
On 12/11/2019 20:06, Laszlo Ersek wrote: > On 11/12/19 04:53, Alexey Kardashevskiy wrote: >> Hi! >> >> I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing >> problems, one of them is SLOF does SCSI bus scan, then it stops the >> virtio-scsi by clearing MMIO|IO|BUSMASTER from

Re: virtio,iommu_platform=on

2019-11-12 Thread Alexey Kardashevskiy
On 12/11/2019 18:08, Michael S. Tsirkin wrote: > On Tue, Nov 12, 2019 at 02:53:49PM +1100, Alexey Kardashevskiy wrote: >> Hi! >> >> I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing >> problems, one of them is SLOF does SCSI bus scan, then it stops the >> virtio-scsi by cl

Re: virtio,iommu_platform=on

2019-11-12 Thread Laszlo Ersek
On 11/12/19 04:53, Alexey Kardashevskiy wrote: > Hi! > > I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing > problems, one of them is SLOF does SCSI bus scan, then it stops the > virtio-scsi by clearing MMIO|IO|BUSMASTER from PCI_COMMAND (as SLOF > stopped using the devices)

Re: virtio,iommu_platform=on

2019-11-11 Thread Michael S. Tsirkin
On Tue, Nov 12, 2019 at 02:53:49PM +1100, Alexey Kardashevskiy wrote: > Hi! > > I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing > problems, one of them is SLOF does SCSI bus scan, then it stops the > virtio-scsi by clearing MMIO|IO|BUSMASTER from PCI_COMMAND (as SLOF > sto

virtio,iommu_platform=on

2019-11-11 Thread Alexey Kardashevskiy
Hi! I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing problems, one of them is SLOF does SCSI bus scan, then it stops the virtio-scsi by clearing MMIO|IO|BUSMASTER from PCI_COMMAND (as SLOF stopped using the devices) and when this happens, I see unassigned memory access (see