Hi, > Ah, I forget to reserve the work-area as RT_Data in below code: > BuildMemoryAllocationHob ( > (EFI_PHYSICAL_ADDRESS)(UINTN)FixedPcdGet32 (PcdOvmfWorkAreaBase), > (UINT64)(UINTN)FixedPcdGet32 (PcdOvmfWorkAreaSize), > PlatformInfoHob->S3Supported ? EfiACPIMemoryNVS : > EfiRuntimeServicesData <-- ACPI_NVS is not accessible either in OS-Runtime. > ); > https://github.com/tianocore/edk2/blob/master/OvmfPkg/Library/PlatformInitLib/MemDetect.c#L1022-L1026
With that changed to use EfiRuntimeServicesData unconditionally the page fault is gone. > Gerd, do you think we can reserve Ovmf WorkArea as RT_Data even when S3 is > supported? Hmm, not fully sure how the various memory types are handled when the VM is suspended. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#92661): https://edk2.groups.io/g/devel/message/92661 Mute This Topic: https://groups.io/mt/93173995/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-