[PATCH 0/2] drm/i915/gvt: Fix for KVM refcounting bug

From: Sean Christopherson
Date: Thu Nov 10 2022 - 19:22:35 EST


Bug fix and cleanup related to KVM refcounting. Found by inspection while
attempting to clean up KVM's page-tracker APIs.

Compile tested only!

Sean Christopherson (2):
drm/i915/gvt: Get reference to KVM iff attachment to VM is successful
drm/i915/gvt: Unconditionally put reference to KVM when detaching vGPU

drivers/gpu/drm/i915/gvt/kvmgt.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)


base-commit: 1767a722a708f1fa3b9af39eb091d79101f8c086
--
2.38.1.431.g37b22c650d-goog