RE: [PATCH 2/2] drm/i915/gvt: Unconditionally put reference to KVM when detaching vGPU

From: Tian, Kevin
Date: Thu Nov 10 2022 - 21:51:03 EST


> 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>