/* For Td guest TDVMCALL_IO is invoked to read I/O port. */
UINT8 EFIAPI IoRead8(IN UINTN Port)
/* For Td guest TDVMCALL_IO is invoked to read I/O port. */
UINT8 EFIAPI IoRead8(IN UINTN Port)
{
  UINT8    Value;
  BOOLEAN  Flag;
  Flag = FilterBeforeIoRead (FilterWidth8, Port, &Value);
  if (Flag) {
    if (IsTdxGuest ()) {
      Value = TdIoRead8 (Port);
    } else {
      _ReadWriteBarrier ();
      Value = (UINT8)_inp ((UINT16)Port);
      _ReadWriteBarrier ();
    }
  }
  FilterAfterIoRead (FilterWidth8, Port, &Value);
  return Value;
}