[edk2-devel] CcProbeLib not working for runtime calls
Gerd Hoffmann
kraxel at redhat.com
Wed Aug 17 11:04:57 UTC 2022
Hi,
https://bugzilla.redhat.com/show_bug.cgi?id=2114858
I think the call chain is:
-> linux does efi runtime call
-> some debug message printed
-> OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
-> MdePkg/Library/BaseIoLibIntrinsic (IoWriteFifo8)
-> OvmfPkg/Library/CcProbeLib (CcProbe)
-> page fault when trying to access WorkArea
Hmm.
We could probably reserve the workarea page and register it for a
runtime mapping etc. I suspect that'll only crash the in simliar ways a
little later because the tdx/sev code is not prepared to work on runtime
calls. I'm also not sure this is possible to make work at all given
that #vc/#ve faults are handled by the linux kernel not ovmf at this
point.
So have CcProbe just return CcGuestTypeNonEncrypted when called at
runtime, hoping that the linux kernel handles #vc / #ve faults properly
should they occur?
take care,
Gerd
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92515): https://edk2.groups.io/g/devel/message/92515
Mute This Topic: https://groups.io/mt/93078060/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list