summaryrefslogtreecommitdiff
path: root/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-08-18 01:31:27 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-09-01 22:55:53 +0200
commitc5f235bbf2ac6ecf9acec023a1840b03cbfb5efd (patch)
tree3180e93cbec050e1cd4dd48968a5e4bc1c582f4f /OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
parent92f200c2d63c5d27dffbf8d85087028a3fd62ef6 (diff)
downloadedk2-c5f235bbf2ac6ecf9acec023a1840b03cbfb5efd.zip
edk2-c5f235bbf2ac6ecf9acec023a1840b03cbfb5efd.tar.gz
edk2-c5f235bbf2ac6ecf9acec023a1840b03cbfb5efd.tar.bz2
OvmfPkg/VirtioGpuDxe: initialize and tear down VirtIo GPU device
This patch implements the steps listed in section "3.1.1 Driver Requirements: Device Initialization" of the Virtio V1.0 Committee Spec 04. The VirtIo GPU is brought up in VirtioGpuDriverBindingStart(), and down in VirtioGpuDriverBindingStop(). We also add an ExitBootServices() callback that resets the device. This ensures that the device model abandons any guest memory areas when we transfer control to the guest OS. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Ref: https://tianocore.acgmultimedia.com/show_bug.cgi?id=66 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/VirtioGpuDxe/VirtioGpu.inf')
-rw-r--r--OvmfPkg/VirtioGpuDxe/VirtioGpu.inf2
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf b/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
index 948350d..7a6269e 100644
--- a/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
+++ b/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
@@ -24,6 +24,7 @@
ENTRY_POINT = VirtioGpuEntryPoint
[Sources]
+ Commands.c
DriverBinding.c
VirtioGpu.h
@@ -40,6 +41,7 @@
UefiBootServicesTableLib
UefiDriverEntryPoint
UefiLib
+ VirtioLib
[Protocols]
gEfiDevicePathProtocolGuid ## TO_START ## BY_START