]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/VirtioGpuDxe/Commands.c
OvmfPkg/VirtioGpuDxe: don't unmap VRING & BackingStore at ExitBootServices
[mirror_edk2.git] / OvmfPkg / VirtioGpuDxe / Commands.c
index 6e70b1c33f6508a800107578dc33dcaf8cb3d53c..6ce21976c9183d735893eef37bd1cb09833517fa 100644 (file)
@@ -353,30 +353,9 @@ VirtioGpuExitBoot (
 {\r
   VGPU_DEV *VgpuDev;\r
 \r
+  DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __FUNCTION__, Context));\r
   VgpuDev = Context;\r
   VgpuDev->VirtIo->SetDeviceStatus (VgpuDev->VirtIo, 0);\r
-\r
-  //\r
-  // If VirtioGpuDriverBindingStart() and VirtioGpuDriverBindingStop() have\r
-  // been called thus far in such a sequence that right now our (sole) child\r
-  // handle exists -- with the GOP on it standing for head (scanout) #0 --,\r
-  // then we have to unmap the current video mode's backing store.\r
-  //\r
-  if (VgpuDev->Child != NULL) {\r
-    //\r
-    // The current video mode is guaranteed to have a valid and mapped backing\r
-    // store, due to the first Gop.SetMode() call, made internally in\r
-    // InitVgpuGop().\r
-    //\r
-    ASSERT (VgpuDev->Child->BackingStore != NULL);\r
-\r
-    VgpuDev->VirtIo->UnmapSharedBuffer (\r
-                       VgpuDev->VirtIo,\r
-                       VgpuDev->Child->BackingStoreMap\r
-                       );\r
-  }\r
-\r
-  VgpuDev->VirtIo->UnmapSharedBuffer (VgpuDev->VirtIo, VgpuDev->RingMap);\r
 }\r
 \r
 /**\r