s390x/pci: avoid double enable/disable of aif
commit07b2c8e034d80ff92e202405c494d2ff80fcf848
authorMatthew Rosato <mjrosato@linux.ibm.com>
Thu, 18 Jan 2024 18:51:49 +0000 (18 13:51 -0500)
committerThomas Huth <thuth@redhat.com>
Fri, 19 Jan 2024 10:38:32 +0000 (19 11:38 +0100)
tree493c6acbde53aaae3dd82cec475a96cc7d6235f4
parent88cf5fec91e50cd34bc002b633b4116228db0bc8
s390x/pci: avoid double enable/disable of aif

Use a flag to keep track of whether AIF is currently enabled.  This can be
used to avoid enabling/disabling AIF multiple times as well as to determine
whether or not it should be disabled during reset processing.

Fixes: d0bc7091c2 ("s390x/pci: enable adapter event notification for interpreted devices")
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-2-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
include/hw/s390x/s390-pci-bus.h