On Thu, Aug 12, 2021 at 2:57 PM Min Xu <min.m...@intel.com> wrote: > +UINT8 > +EFIAPI > +TdMmioRead8 ( > + IN UINTN Address > + ) > +{ > + UINT64 Value; > + UINT64 Status; > + > + Address |= TdSharedPageMask ();
Why is the SharedBit set? VMM does not care if the sharedbit is set. Actually it should not even be aware of it. > + MemoryFence (); > + Status = TdVmCall (TDVMCALL_MMIO, TDVMCALL_ACCESS_SIZE_1, > TDVMCALL_ACCESS_READ, Address, 0, &Value); > + if (Status != 0) { So for some reason, MMIO read fails, we are doing a memory read. Why should an MMIO read fail? Could you elaborate which use case this covers? -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#80524): https://edk2.groups.io/g/devel/message/80524 Mute This Topic: https://groups.io/mt/84837896/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-