]> 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:12:06 +0000 (09:12 +0300)
commit61693479d8ff6fff80b346eb7830a61a9db57634
tree8bd547ccee05d99800cefa194985eeb9a84393a9
parent0c8e6ac989581666b0fe4e0c8502000194152611
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>
(Mjt: include/hw/virtio/virtio.h: skip extra struct field added in 8.0)
hw/virtio/virtio-pci.c
include/hw/virtio/virtio.h