diff options
| author | Alex Williamson <alex.williamson@redhat.com> | 2025-02-25 14:52:29 -0700 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-03-06 06:47:33 +0100 |
| commit | 518a69a598916749338de3852d41d961d4503115 (patch) | |
| tree | 75e39a8207f7d6f9b73e793e3072aa5610c0db07 /hw/vfio/platform.c | |
| parent | 8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41 (diff) | |
| download | focaccia-qemu-518a69a598916749338de3852d41d961d4503115.tar.gz focaccia-qemu-518a69a598916749338de3852d41d961d4503115.zip | |
hw/vfio/pci: Re-order pre-reset
We want the device in the D0 power state going into reset, but the config write can enable the BARs in the address space, which are then removed from the address space once we clear the memory enable bit in the command register. Re-order to clear the command bit first, so the power state change doesn't enable the BARs. Cc: Cédric Le Goater <clg@redhat.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250225215237.3314011-6-alex.williamson@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/platform.c')
0 files changed, 0 insertions, 0 deletions