On 2/1/23 7:42 AM, Liu, Yi L wrote: >> From: Matthew Rosato <mjrosato@xxxxxxxxxxxxx> ... >> + 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
On 2/1/23 7:42 AM, Liu, Yi L wrote: >> From: Matthew Rosato <mjrosato@xxxxxxxxxxxxx> ... >> + 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