diff options
| author | Laszlo Ersek <lersek@redhat.com> | 2020-12-17 00:10:44 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-21 20:16:23 +0300 |
| commit | e8a74c9a0712f4d282807aca442a787afe4075ab (patch) | |
| tree | 8d5741831899cba01148e9f5ec172b80d4cde3c8 /BaseTools/Source/Python/GenPatchPcdTable/GenPatchPcdTable.py | |
| parent | 6a2dc768f058ce96479e7ed524d27fcf59657f5b (diff) | |
| download | edk2-e8a74c9a0712f4d282807aca442a787afe4075ab.tar.xz | |
OvmfPkg/VirtioFsDxe: map "errno" values to EFI_STATUS
The VirtioFsFuseCheckResponse() function dedicates the EFI_DEVICE_ERROR
status code to the case when the Virtio Filesystem device explicitly
returns an error via the "VIRTIO_FS_FUSE_RESPONSE.Error" field.
Said field effectively carries a Linux "errno" value. Introduce a helper
function for mapping "errno" values to (hopefully) reasonable EFI_STATUS
codes. This way we'll be able to propagate "errno" values as EFI_STATUS
return codes along the UEFI call stack -- in some detail anyway.
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-8-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/GenPatchPcdTable/GenPatchPcdTable.py')
0 files changed, 0 insertions, 0 deletions
