[PATCH] drm/i915/gvt: Don't free opregion pages at vgpu destroy
Xiong Zhang
xiong.y.zhang at intel.com
Mon Nov 6 19:25:06 UTC 2017
As all gpu's opregion share a common gvt physical memory, this
memory couldn't be freed at vgpu destroy. It should be only
destroyed at gvt destroy.
Signed-off-by: Xiong Zhang <xiong.y.zhang at intel.com>
---
drivers/gpu/drm/i915/gvt/opregion.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gvt/opregion.c b/drivers/gpu/drm/i915/gvt/opregion.c
index c2d911e..1e8c16a 100644
--- a/drivers/gpu/drm/i915/gvt/opregion.c
+++ b/drivers/gpu/drm/i915/gvt/opregion.c
@@ -273,8 +273,6 @@ void intel_vgpu_clean_opregion(struct intel_vgpu *vgpu)
if (intel_gvt_host.hypervisor_type == INTEL_GVT_HYPERVISOR_XEN) {
map_vgpu_opregion(vgpu, false);
- free_pages((unsigned long)vgpu_opregion(vgpu)->va,
- get_order(INTEL_GVT_OPREGION_SIZE));
vgpu_opregion(vgpu)->va = NULL;
}
--
2.7.4
More information about the intel-gvt-dev
mailing list