]> www.infradead.org Git - users/dwmw2/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 S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit206e91d143301414df2deb48a411e402414ba6db
tree3021030f8d513e9d6539d0cee5e45dcff3a52b4c
parent9e57b81861e05b2856ed1c4fbc2d991801c7c777
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>
hw/virtio/virtio-pci.c
include/hw/virtio/virtio.h