Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost

Pull virtio/vhost fixes from Michael S. Tsirkin:
"Last minute fixes:

- ARM DMA fix revert

- vhost endian-ness fix

- MAINTAINERS: email address change for Amit"

* tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
MAINTAINERS: update email address for Amit Shah
vhost: fix initialization for vq->is_le
Revert "vring: Force use of DMA API for ARM-based systems with legacy devices"

+5 -14
+1 -1
MAINTAINERS
··· 13065 13065 F: include/uapi/linux/userio.h 13066 13066 13067 13067 VIRTIO CONSOLE DRIVER 13068 - M: Amit Shah <amit.shah@redhat.com> 13068 + M: Amit Shah <amit@kernel.org> 13069 13069 L: virtualization@lists.linux-foundation.org 13070 13070 S: Maintained 13071 13071 F: drivers/char/virtio_console.c
+4 -6
drivers/vhost/vhost.c
··· 130 130 131 131 static void vhost_init_is_le(struct vhost_virtqueue *vq) 132 132 { 133 - if (vhost_has_feature(vq, VIRTIO_F_VERSION_1)) 134 - vq->is_le = true; 133 + vq->is_le = vhost_has_feature(vq, VIRTIO_F_VERSION_1) 134 + || virtio_legacy_is_little_endian(); 135 135 } 136 136 #endif /* CONFIG_VHOST_CROSS_ENDIAN_LEGACY */ 137 137 138 138 static void vhost_reset_is_le(struct vhost_virtqueue *vq) 139 139 { 140 - vq->is_le = virtio_legacy_is_little_endian(); 140 + vhost_init_is_le(vq); 141 141 } 142 142 143 143 struct vhost_flush_struct { ··· 1714 1714 int r; 1715 1715 bool is_le = vq->is_le; 1716 1716 1717 - if (!vq->private_data) { 1718 - vhost_reset_is_le(vq); 1717 + if (!vq->private_data) 1719 1718 return 0; 1720 - } 1721 1719 1722 1720 vhost_init_is_le(vq); 1723 1721
-7
drivers/virtio/virtio_ring.c
··· 159 159 if (xen_domain()) 160 160 return true; 161 161 162 - /* 163 - * On ARM-based machines, the DMA ops will do the right thing, 164 - * so always use them with legacy devices. 165 - */ 166 - if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64)) 167 - return !virtio_has_feature(vdev, VIRTIO_F_VERSION_1); 168 - 169 162 return false; 170 163 } 171 164