On 2/1/23 7:42 AM, Liu, Yi L wrote: >> From: Matthew Rosato <mjrosato at linux.ibm.com> ... >> + if (device->kvm) { >> + vfio_kvm_put_kvm(device); >> + device->put_kvm = NULL; > > Can "device->put_kvm = NULL;" be part of vfio_kvm_put_kvm()? Sure