On 3/2/26 08:57, Akihiko Odaki wrote:
> On 2026/03/02 5:48, Dmitry Osipenko wrote:
>> QEMU's display GL core is tied to main-loop thread and virtio-gpu
>> interacts with display while processing GPU commands.
>> virtio_gpu_ctrl_bh()
>> works in generic AIO context that can be processed from vCPU thread,
>> while
>> GL and UI toolkits are bound to the main-loop thread. Bounce the ctrl-bh
>> execution if running from a thread other than main to fix the problem.
> 
> I think you can make use of iohandler_get_aio_context() instead of
> bouncing.

Indeed, thanks for the suggestion.

Also noticed that virtio-gpu uses qemu_in_vcpu_thread() for the
virtio-gpu reset BH, but IIUC the BH still may be invoked from vCPU
unless BH is tied to iohandler context.

The same problem should affect the virtio-gpu cursor BH.

Will move all these BH's to use iohandler context.

-- 
Best regards,
Dmitry

Reply via email to