Displaying 12 results from an estimated 12 matches for "virtio_f_use_bus_map".
2014 Sep 03
2
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...rtio spec. Since virtio_pci can be
> a module, obvious hacks like having xen_arch_setup initialize a dma_ops pointer
> exposed by virtio_pci.c is out.
Well virtio could probe for xen, it's not a lot of code.
> I think the best approach is to have a new feature bit (25 is free),
> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
> use the mapping for the bus it is on. A real device would set this,
> or it won't work behind an IOMMU. A Xen device would also set this.
>
> Thoughts?
> Rusty.
OK and it should then be active even if guest does not ack
the...
2014 Sep 03
2
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...rtio spec. Since virtio_pci can be
> a module, obvious hacks like having xen_arch_setup initialize a dma_ops pointer
> exposed by virtio_pci.c is out.
Well virtio could probe for xen, it's not a lot of code.
> I think the best approach is to have a new feature bit (25 is free),
> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
> use the mapping for the bus it is on. A real device would set this,
> or it won't work behind an IOMMU. A Xen device would also set this.
>
> Thoughts?
> Rusty.
OK and it should then be active even if guest does not ack
the...
2014 Sep 03
4
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...ec. Since virtio_pci can be
> a module, obvious hacks like having xen_arch_setup initialize a dma_ops pointer
> exposed by virtio_pci.c is out.
Xen does expose dma_ops. The trick is knowing when to use it.
>
> I think the best approach is to have a new feature bit (25 is free),
> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
> use the mapping for the bus it is on. A real device would set this,
> or it won't work behind an IOMMU. A Xen device would also set this.
The devices I care about aren't actually Xen devices. They're devices
supplied by QEMU/...
2014 Sep 03
4
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...ec. Since virtio_pci can be
> a module, obvious hacks like having xen_arch_setup initialize a dma_ops pointer
> exposed by virtio_pci.c is out.
Xen does expose dma_ops. The trick is knowing when to use it.
>
> I think the best approach is to have a new feature bit (25 is free),
> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
> use the mapping for the bus it is on. A real device would set this,
> or it won't work behind an IOMMU. A Xen device would also set this.
The devices I care about aren't actually Xen devices. They're devices
supplied by QEMU/...
2014 Sep 02
5
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
On Tue, Sep 2, 2014 at 1:53 PM, Benjamin Herrenschmidt
<benh at kernel.crashing.org> wrote:
> On Mon, 2014-09-01 at 22:55 -0700, Andy Lutomirski wrote:
>>
>> On x86, at least, I doubt that we'll ever see a physically addressed
>> PCI virtio device for which ACPI advertises an IOMMU, since any sane
>> hypervisor will just not advertise an IOMMU for the virtio
2014 Sep 02
5
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
On Tue, Sep 2, 2014 at 1:53 PM, Benjamin Herrenschmidt
<benh at kernel.crashing.org> wrote:
> On Mon, 2014-09-01 at 22:55 -0700, Andy Lutomirski wrote:
>>
>> On x86, at least, I doubt that we'll ever see a physically addressed
>> PCI virtio device for which ACPI advertises an IOMMU, since any sane
>> hypervisor will just not advertise an IOMMU for the virtio
2014 Sep 03
0
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...ce if Linux virtio Just Worked under Xen,
though Xen's IOMMU is outside the virtio spec. Since virtio_pci can be
a module, obvious hacks like having xen_arch_setup initialize a dma_ops pointer
exposed by virtio_pci.c is out.
I think the best approach is to have a new feature bit (25 is free),
VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
use the mapping for the bus it is on. A real device would set this,
or it won't work behind an IOMMU. A Xen device would also set this.
Thoughts?
Rusty.
PS. I cc'd OASIS virtio-dev: it's subscriber only for IP reasons (to
subsc...
2014 Sep 05
0
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...rtio could probe for xen, it's not a lot of code.
We could, but I think this is going to be a more general problem in
future. x86 is heading down the IOMMU path, and they're likely to
suffer similarly.
>> I think the best approach is to have a new feature bit (25 is free),
>> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
>> use the mapping for the bus it is on. A real device would set this,
>> or it won't work behind an IOMMU. A Xen device would also set this.
>>
>> Thoughts?
>> Rusty.
>
> OK and it should then be active ev...
2014 Sep 05
4
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...like having xen_arch_setup initialize a dma_ops pointer
>>> exposed by virtio_pci.c is out.
>>
>> Xen does expose dma_ops. The trick is knowing when to use it.
>>
>>>
>>> I think the best approach is to have a new feature bit (25 is free),
>>> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
>>> use the mapping for the bus it is on. A real device would set this,
>>> or it won't work behind an IOMMU. A Xen device would also set this.
>>
>> The devices I care about aren't actually Xen devices. They...
2014 Sep 05
4
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...like having xen_arch_setup initialize a dma_ops pointer
>>> exposed by virtio_pci.c is out.
>>
>> Xen does expose dma_ops. The trick is knowing when to use it.
>>
>>>
>>> I think the best approach is to have a new feature bit (25 is free),
>>> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
>>> use the mapping for the bus it is on. A real device would set this,
>>> or it won't work behind an IOMMU. A Xen device would also set this.
>>
>> The devices I care about aren't actually Xen devices. They...
2014 Sep 05
0
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...> a module, obvious hacks like having xen_arch_setup initialize a dma_ops pointer
>> exposed by virtio_pci.c is out.
>
> Xen does expose dma_ops. The trick is knowing when to use it.
>
>>
>> I think the best approach is to have a new feature bit (25 is free),
>> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
>> use the mapping for the bus it is on. A real device would set this,
>> or it won't work behind an IOMMU. A Xen device would also set this.
>
> The devices I care about aren't actually Xen devices. They're devices...
2014 Sep 10
0
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...initialize a dma_ops pointer
>>>> exposed by virtio_pci.c is out.
>>>
>>> Xen does expose dma_ops. The trick is knowing when to use it.
>>>
>>>>
>>>> I think the best approach is to have a new feature bit (25 is free),
>>>> VIRTIO_F_USE_BUS_MAPPING which indicates that a device really wants to
>>>> use the mapping for the bus it is on. A real device would set this,
>>>> or it won't work behind an IOMMU. A Xen device would also set this.
>>>
>>> The devices I care about aren't actually Xe...