Re: [PATCH 13/17] hw/scsi: Convert to new bh API

2024-12-20 Thread Nicholas Piggin
On Sat Dec 21, 2024 at 9:54 AM AEST, Paolo Bonzini wrote: > Il ven 20 dic 2024, 11:44 Nicholas Piggin ha scritto: > > > Convert aio_bh_schedule_oneshot() to aio_bh_schedule_oneshot_event(), > > which can specify the clock type, making it compatible with > > record-replay. > > > > Operations on SCS

Re: [PATCH 13/17] hw/scsi: Convert to new bh API

2024-12-20 Thread Paolo Bonzini
Il ven 20 dic 2024, 11:44 Nicholas Piggin ha scritto: > Convert aio_bh_schedule_oneshot() to aio_bh_schedule_oneshot_event(), > which can specify the clock type, making it compatible with > record-replay. > > Operations on SCSI reqs do affect target machine state, so it should > use QEMU_CLOCK_VI

[PATCH 13/17] hw/scsi: Convert to new bh API

2024-12-20 Thread Nicholas Piggin
Convert aio_bh_schedule_oneshot() to aio_bh_schedule_oneshot_event(), which can specify the clock type, making it compatible with record-replay. Operations on SCSI reqs do affect target machine state, so it should use QEMU_CLOCK_VIRTUAL to recorded and replay the bh. This fixes hangs in record/re