Re: Question about graph locking preconditions regarding qemu_in_main_thread()

2023-05-09 Thread Fiona Ebner
Am 09.05.23 um 15:53 schrieb Kevin Wolf: > Am 09.05.2023 um 12:26 hat Fiona Ebner geschrieben: >> Am 08.05.23 um 12:40 schrieb Kevin Wolf: >>> Am 05.05.2023 um 11:35 hat Fiona Ebner geschrieben: Hi, I noticed that the bdrv_graph_co_rd_lock() and bdrv_graph_co_rd_unlock() functions

Re: Question about graph locking preconditions regarding qemu_in_main_thread()

2023-05-09 Thread Kevin Wolf
Am 09.05.2023 um 12:26 hat Fiona Ebner geschrieben: > Am 08.05.23 um 12:40 schrieb Kevin Wolf: > > Am 05.05.2023 um 11:35 hat Fiona Ebner geschrieben: > >> Hi, > >> I noticed that the bdrv_graph_co_rd_lock() and bdrv_graph_co_rd_unlock() > >> functions use qemu_in_main_thread() as a conditional to

Re: Question about graph locking preconditions regarding qemu_in_main_thread()

2023-05-09 Thread Fiona Ebner
Am 08.05.23 um 12:40 schrieb Kevin Wolf: > Am 05.05.2023 um 11:35 hat Fiona Ebner geschrieben: >> Hi, >> I noticed that the bdrv_graph_co_rd_lock() and bdrv_graph_co_rd_unlock() >> functions use qemu_in_main_thread() as a conditional to return early. >> What high-level requirements ensure that

Re: Question about graph locking preconditions regarding qemu_in_main_thread()

2023-05-08 Thread Kevin Wolf
Am 05.05.2023 um 11:35 hat Fiona Ebner geschrieben: > Hi, > I noticed that the bdrv_graph_co_rd_lock() and bdrv_graph_co_rd_unlock() > functions use qemu_in_main_thread() as a conditional to return early. > What high-level requirements ensure that qemu_in_main_thread() will > evaluate to the same

Question about graph locking preconditions regarding qemu_in_main_thread()

2023-05-05 Thread Fiona Ebner
Hi, I noticed that the bdrv_graph_co_rd_lock() and bdrv_graph_co_rd_unlock() functions use qemu_in_main_thread() as a conditional to return early. What high-level requirements ensure that qemu_in_main_thread() will evaluate to the same value during locking and unlocking? This paragraph assumes no