Skip to content

Commit f25e3d0

Browse files
osteffenrhmergify[bot]
authored andcommitted
OvmfPkg/HardwareInfoLib: Reserve device type ID for SVSM
Reserve a new device type ID for Virtio MMIO devices intended to be used by the Secure VM Service Module (SVSM). Coconut SVSM will be using a Virtio-Blk device via the MMIO transport to persist state, when running under Qemu. The guest OS shall not try to use the device. The HardwareInfoLib is an ideal channel to communicate the device information to the SVSM, due to its simplicity and flexibility to include arbitrary information, and since it does not interfere with regular hardware configuration mechanisms of the guest OS. This device type is intended for the SVSM only and no code is added to EDK2 that makes use of it. Signed-off-by: Oliver Steffen <[email protected]>
1 parent e489721 commit f25e3d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OvmfPkg/Library/HardwareInfoLib/HardwareInfoTypesLib.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
// types which have an associated type definition
1919
//
2020
typedef enum {
21-
HardwareInfoTypeUndefined = 0,
22-
HardwareInfoTypeHostBridge = 1,
21+
HardwareInfoTypeUndefined = 0,
22+
HardwareInfoTypeHostBridge = 1,
23+
HardwareInfoTypeSvsmVirtioMmio = 0x1000,
2324

2425
HardwareInfoTypeMax
2526
} HARDWARE_INFO_TYPE;

0 commit comments

Comments
 (0)