diff options
author | Laszlo Ersek <lersek@redhat.com> | 2020-12-16 22:10:41 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-21 17:16:23 +0000 |
commit | eaa7115d60e9a2f56ead85275870700edf852ed2 (patch) | |
tree | a84dc92a41d89a8fdfbc91edb106df620e993fe5 /OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf | |
parent | b55d6622d4f4d795d71e930da1fcda7c78a7fe96 (diff) | |
download | edk2-eaa7115d60e9a2f56ead85275870700edf852ed2.tar.gz edk2-eaa7115d60e9a2f56ead85275870700edf852ed2.tar.bz2 edk2-eaa7115d60e9a2f56ead85275870700edf852ed2.zip |
OvmfPkg/VirtioFsDxe: implement virtio device (un)initialization
Add the VirtioFsInit(), VirtioFsUninit(), and VirtioFsExitBoot()
functions.
In VirtioFsInit():
- Verify the host-side config of the virtio-fs device.
- Save the filesystem label ("tag") for later, from the configuration area
of the virtio-fs device.
- Save the virtio queue size for later as well.
- Set up the virtio ring for sending requests.
In VirtioFsUninit():
- Reset the device.
- Tear down the virtio ring.
In VirtioFsExitBoot():
- Reset the device.
With this patch, the UEFI connect / disconnect controller operations
involve virtio setup / teardown; they are visible in the virtio-fs
daemon's log file. The virtiofsd log also confirms the device reset in
VirtioFsExitBoot(), when an OS is booted while the virtio-fs device is
bound.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20201216211125.19496-5-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf')
-rw-r--r-- | OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf b/OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf index ff9b1c6178..f6eebdb6bc 100644 --- a/OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf +++ b/OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf @@ -82,6 +82,7 @@ [Sources]
DriverBinding.c
+ Helpers.c
SimpleFsOpenVolume.c
VirtioFsDxe.h
@@ -91,6 +92,7 @@ MemoryAllocationLib
UefiBootServicesTableLib
UefiDriverEntryPoint
+ VirtioLib
[Protocols]
gEfiComponentName2ProtocolGuid ## PRODUCES
|