> From: Sean Christopherson <seanjc@xxxxxxxxxx> > Sent: Friday, November 11, 2022 8:22 AM > > Always put the KVM reference when closing a vCPU device, as > intel_vgpu_open_device() succeeds if and only if the KVM pointer is > valid and a reference to KVM is acquired. And if that doesn't hold true, > the call to kvm_page_track_unregister_notifier() a few lines earlier is > doomed. > > Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>