audk/OvmfPkg/VirtioGpuDxe
Laszlo Ersek 5c8f091bd8 OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping
Introduce the VirtioGpuAllocateZeroAndMapBackingStore() and
VirtioGpuUnmapAndFreeBackingStore() helper functions. These functions tie
together the allocation, zeroing and mapping, and unmapping and
deallocation, respectively, of memory that the virtio GPU will permanently
reference after receiving the RESOURCE_ATTACH_BACKING command.

With these functions we can keep the next patch simpler -- the GOP
implementation in "Gop.c" retains its error handling structure, and
remains oblivious to VIRTIO_DEVICE_PROTOCOL and VirtioLib.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Brijesh Singh <brijesh.singh@amd.com>
2017-09-01 14:28:20 +02:00
..
Commands.c OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping 2017-09-01 14:28:20 +02:00
DriverBinding.c OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping 2017-09-01 14:28:20 +02:00
Gop.c OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping 2017-09-01 14:28:20 +02:00
VirtioGpu.h OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping 2017-09-01 14:28:20 +02:00
VirtioGpu.inf OvmfPkg/VirtioGpuDxe: implement EFI_GRAPHICS_OUTPUT_PROTOCOL 2016-09-01 22:55:53 +02:00