Re: [PATCH for-9.2] vfio/container: Fix container object destruction

2024-11-15 Thread Cédric Le Goater
Zhenzhong On 11/15/24 08:45, Duan, Zhenzhong wrote: Hi Cédric, -Original Message- From: Cédric Le Goater Sent: Friday, November 15, 2024 2:53 PM Subject: [PATCH for-9.2] vfio/container: Fix container object destruction When commit 96b7af4388b3 intoduced a .instance_finalize

RE: [PATCH for-9.2] vfio/container: Fix container object destruction

2024-11-14 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Friday, November 15, 2024 2:53 PM >Subject: [PATCH for-9.2] vfio/container: Fix container object destruction > >When commit 96b7af4388b3 intoduced a .instance_finalize() handler, >it did not take

[PATCH for-9.2] vfio/container: Fix container object destruction

2024-11-14 Thread Cédric Le Goater
When commit 96b7af4388b3 intoduced a .instance_finalize() handler, it did not take into account that the container was not necessarily inserted into the container list of the address space. Hence, if the container object is destroyed, by calling object_unref() for example, before vfio_address_space