]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-pci: add handling of PCI ATS and Device-TLB enable/disable
authorViktor Prutyanov <viktor@daynix.com>
Fri, 12 May 2023 13:51:20 +0000 (16:51 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 31 Jul 2023 06:10:51 +0000 (09:10 +0300)
commit5f3fe5657d820bd4b1055eface0d9805ec6005e6
treec6d015f53e03eba701deb967a59eb2d485b7b6a0
parent0827053612d51d43c94f517927918601599e546e
virtio-pci: add handling of PCI ATS and Device-TLB enable/disable

According to PCIe Address Translation Services specification 5.1.3.,
ATS Control Register has Enable bit to enable/disable ATS. Guest may
enable/disable PCI ATS and, accordingly, Device-TLB for the VirtIO PCI
device. So, raise/lower a flag and call a trigger function to pass this
event to a device implementation.

Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
Message-Id: <20230512135122.70403-2-viktor@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 206e91d143301414df2deb48a411e402414ba6db)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/virtio/virtio-pci.c
include/hw/virtio/virtio.h