All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] intel-iommu and vhost: Do we need 'device-iotlb' and 'ats'?
@ 2018-02-21  4:03 Jintack Lim
  2018-02-23  3:55 ` Peter Xu
  2018-02-26 10:14 ` Auger Eric
  0 siblings, 2 replies; 11+ messages in thread
From: Jintack Lim @ 2018-02-21  4:03 UTC (permalink / raw)
  To: QEMU Devel Mailing List; +Cc: jasowang, Eric Auger, Peter Xu

Hi,

I'm using vhost with the virtual intel-iommu, and this page[1] shows
the QEMU command line example.

qemu-system-x86_64 -M q35,accel=kvm,kernel-irqchip=split -m 2G \
                   -device intel-iommu,intremap=on,device-iotlb=on \
                   -device ioh3420,id=pcie.1,chassis=1 \
                   -device
virtio-net-pci,bus=pcie.1,netdev=net0,disable-legacy=on,disable-modern=off,iommu_platform=on,ats=on
\
                   -netdev tap,id=net0,vhostforce \
                   $IMAGE_PATH

I wonder what's the impact of using device-iotlb and ats options as
they are described necessary.

In my understanding, vhost in the kernel only looks at
VIRTIO_F_IOMMU_PLATFORM, and when it is set, vhost uses a
device-iotlb. In addition, vhost and QEMU communicate using vhost_msg
basically to cache mappings correctly in the vhost, so I wonder what's
the role of ats in this case.

A related question is that if we use SMMU emulation[2] on ARM without
those options, does vhost cache mappings as if it has a device-iotlb?
(I guess this is the case.)

I'm pretty new to QEMU code, so I might be missing something. Can
somebody shed some light on it?

[1] https://wiki.qemu.org/Features/VT-d
[2] http://lists.nongnu.org/archive/html/qemu-devel/2018-02/msg04736.html

Thanks,
Jintack

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-26 20:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21  4:03 [Qemu-devel] intel-iommu and vhost: Do we need 'device-iotlb' and 'ats'? Jintack Lim
2018-02-23  3:55 ` Peter Xu
2018-02-23  5:32   ` Jintack Lim
2018-02-23  6:10     ` Peter Xu
2018-02-23  6:34       ` Jintack Lim
2018-02-23  7:09         ` Peter Xu
2018-02-23  7:34           ` Tian, Kevin
2018-02-23 14:58             ` Jintack Lim
2018-02-23 14:39           ` Jintack Lim
2018-02-26 10:14 ` Auger Eric
2018-02-26 20:44   ` Jintack Lim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.