diff options
author | Jaehoon Kim <jhkim@linux.ibm.com> | 2025-10-01 10:39:38 -0500 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2025-10-10 10:02:51 +0200 |
commit | 8dd912b042f47bb0468f097df708cf2fab2af614 (patch) | |
tree | 785e64ca77e291310c15767c58f91342f1162590 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 314a31ea0ba06160a54972ecf08ae56bc0c6b094 (diff) | |
download | qemu-8dd912b042f47bb0468f097df708cf2fab2af614.zip qemu-8dd912b042f47bb0468f097df708cf2fab2af614.tar.gz qemu-8dd912b042f47bb0468f097df708cf2fab2af614.tar.bz2 |
s390x/pci: fix interrupt blocking by returning only the device's summary bit
Previously, set_ind_atomic() returned the entire byte containing
multiple summary bits. This meant that if any other summary bit in the
byte was set, interrupt injection could be incorrectly blocked, even
when the current device's summary bit was not set. As a result, the
guest could remain blocked after I/O completion during FIO tests.
This patch replaces set_ind_atomic() with set_ind_bit_atomic(), which
returns true if the bit was set by this function, and false if it was
already set or mapping failed. Interrupts are now blocked only when
the device's own summary bit was not previously set, avoiding
unintended blocking when multiple PCI summary bits exist within the
same byte.
Signed-off-by: Jaehoon Kim <jhkim@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Message-ID: <20251001154004.71917-1-jhkim@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions