Am 01.10.25 um 17:39 schrieb Jaehoon Kim:
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 <[email protected]>
[...]
-static uint8_t set_ind_atomic(uint64_t ind_loc, uint8_t to_be_set)
[...] Not changing the name would have made the patch smaller, but it is probably a better name name. Reviewed-by: Christian Borntraeger <[email protected]>
