]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/VirtioRngDxe/VirtioRng.c
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / OvmfPkg / VirtioRngDxe / VirtioRng.c
index 80380bcdf8bf9bec35cb556db4b4fbf185c5a57a..3c733ea4db6666b8a7e29dfd5be42cd1ee3e7bfb 100644 (file)
@@ -435,6 +435,7 @@ VirtioRngExitBoot (
 {\r
   VIRTIO_RNG_DEV *Dev;\r
 \r
+  DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __FUNCTION__, Context));\r
   //\r
   // Reset the device. This causes the hypervisor to forget about the virtio\r
   // ring.\r
@@ -444,12 +445,6 @@ VirtioRngExitBoot (
   //\r
   Dev = Context;\r
   Dev->VirtIo->SetDeviceStatus (Dev->VirtIo, 0);\r
-\r
-  //\r
-  // Unmap the ring buffer so that hypervisor will not be able to get readable\r
-  // data after device reset.\r
-  //\r
-  Dev->VirtIo->UnmapSharedBuffer (Dev->VirtIo, Dev->RingMap);\r
 }\r
 \r
 \r