File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
OvmfPkg/VirtMmCommunicationDxe Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -396,5 +396,15 @@ VirtMmCommunication2Initialize (
396
396
FreePages (mCommunicateBuffer , EFI_SIZE_TO_PAGES (MAX_BUFFER_SIZE ));
397
397
398
398
ReturnErrorStatus :
399
+ if (FeaturePcdGet (PcdQemuVarsRequire )) {
400
+ DEBUG ((
401
+ DEBUG_ERROR ,
402
+ "ERROR: qemu uefi variable service is not available, use \n"
403
+ " 'qemu-system-x86_64 -device uefi-vars-x64' or\n"
404
+ " 'qemu-system-aarch64 -device uefi-vars-sysbus'\n"
405
+ ));
406
+ CpuDeadLoop ();
407
+ }
408
+
399
409
return EFI_INVALID_PARAMETER ;
400
410
}
Original file line number Diff line number Diff line change 52
52
[FeaturePcd]
53
53
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache ## CONSUMES
54
54
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES
55
+ gUefiOvmfPkgTokenSpaceGuid.PcdQemuVarsRequire ## CONSUMES
55
56
56
57
[Protocols]
57
58
gEfiMmCommunication2ProtocolGuid ## PRODUCES
You can’t perform that action at this time.
0 commit comments