search for: cpu_to_virtio_addr

Displaying 3 results from an estimated 3 matches for "cpu_to_virtio_addr".

2015 Dec 07
0
[PATCH RFC 3/3] xen/virtio_ring: introduce cpu_to_virtio_addr and virtio_addr_to_cpu
When running on Xen inside as virtual machine (nested virt scenario), addresses need to be translated from phys to machine to get the actual guest pseudo-physical address. Introduce a new pair of functions, cpu_to_virtio_addr and virtio_addr_to_cpu, which call the appriopriate __virtio64_to_cpu and __cpu_to_virtio64 functions after doing the phys_to_bus and bus_to_phys translations for Xen. No changes in behavior for the non-Xen case. Signed-off-by: Stefano Stabellini <stefano.stabellini at eu.citrix.com> ---...
2015 Dec 07
6
[PATCH RFC 0/3] Xen on Virtio
...paths. You are welcome to suggest improvements or alternative implementations. Thanks, Stefano Stefano Stabellini (3): xen: export xen_phys_to_bus, xen_bus_to_phys and xen_virt_to_bus xen/virtio: allocate a contiguous region to be use as virtio queue xen/virtio_ring: introduce cpu_to_virtio_addr and virtio_addr_to_cpu drivers/virtio/virtio_pci_legacy.c | 19 +++++++++++++++---- drivers/virtio/virtio_ring.c | 9 +++++---- drivers/xen/swiotlb-xen.c | 31 ------------------------------- include/linux/virtio_config.h | 14 ++++++++++++++ include/xen/swiotlb-xen.h...
2015 Dec 07
6
[PATCH RFC 0/3] Xen on Virtio
...paths. You are welcome to suggest improvements or alternative implementations. Thanks, Stefano Stefano Stabellini (3): xen: export xen_phys_to_bus, xen_bus_to_phys and xen_virt_to_bus xen/virtio: allocate a contiguous region to be use as virtio queue xen/virtio_ring: introduce cpu_to_virtio_addr and virtio_addr_to_cpu drivers/virtio/virtio_pci_legacy.c | 19 +++++++++++++++---- drivers/virtio/virtio_ring.c | 9 +++++---- drivers/xen/swiotlb-xen.c | 31 ------------------------------- include/linux/virtio_config.h | 14 ++++++++++++++ include/xen/swiotlb-xen.h...