efi_loader: device path for virtio block devices
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 20 May 2020 20:39:35 +0000 (22:39 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 21 May 2020 08:00:17 +0000 (10:00 +0200)
commit19ecced71cfb92519e8ef7dddbc4138d871fe97c
treeb9c7bfd5087fbc78f40ba75de8aaf9cffb56247a
parentc067cef695d8909f2c453eb9fedb718206d906a4
efi_loader: device path for virtio block devices

The UEFI specification does not define a device sub-type for virtio.
Let's use a vendor hardware node here.

This avoids creation of two handles with the same device path indicating
our root node.

Reported-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/efi_device_path.c