]> git.proxmox.com Git - mirror_qemu.git/commit
s390x/pci: refresh fh before disabling aif
authorMatthew Rosato <mjrosato@linux.ibm.com>
Thu, 18 Jan 2024 18:51:50 +0000 (13:51 -0500)
committerThomas Huth <thuth@redhat.com>
Fri, 19 Jan 2024 10:38:32 +0000 (11:38 +0100)
commit30e35258e25c75c9d799c34fd89afcafffb37084
tree9c328e954c484205981130b8e4f96ec97ed0fdef
parent07b2c8e034d80ff92e202405c494d2ff80fcf848
s390x/pci: refresh fh before disabling aif

Typically we refresh the host fh during CLP enable, however it's possible
that the device goes through multiple reset events before the guest
performs another CLP enable.  Let's handle this for now by refreshing the
host handle from vfio before disabling aif.

Fixes: 03451953c7 ("s390x/pci: reset ISM passthrough devices on shutdown and system reset")
Reported-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Message-ID: <20240118185151.265329-3-mjrosato@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-pci-kvm.c