]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: Cache the bus mastering status in the device
authorCLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com>
Tue, 20 May 2025 07:18:58 +0000 (07:18 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 1 Jun 2025 10:38:53 +0000 (06:38 -0400)
commit8ff9e1def0ef3388333b6cc639c9f958f97ebe05
tree72648308fd7873cbf9d9057ff081e31be2eeb23c
parent5be8cf79188a2a1c73d16f3a8b458d909ac976f4
pci: Cache the bus mastering status in the device

The cached is_master value is necessary to know if a device is
allowed to issue ATS/PRI requests or not as these operations do not go
through the master_enable memory region.

Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
Message-Id: <20250520071823.764266-7-clement.mathieu--drif@eviden.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c
include/hw/pci/pci_device.h