vmm: Deprecate non-PVH firmware loading

Curently all the firmware blobs we support can use PVH loading.

See: #4511

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2022-08-18 15:41:13 +01:00
parent b49f8b9248
commit 396f9ce2c6

View File

@ -993,6 +993,8 @@ impl Vm {
mut firmware: File,
memory_manager: &Arc<Mutex<MemoryManager>>,
) -> Result<EntryPoint> {
warn!("Loading of legacy (non-PVH) firmware is deprecated and will be removed in a future version.");
// Not an ELF header - assume raw binary data / firmware
let size = firmware
.seek(SeekFrom::End(0))