From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web10.45371.1658260045152640449 for ; Tue, 19 Jul 2022 12:47:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YKCSb9JS; spf=pass (domain: gmail.com, ip: 209.85.216.52, mailfrom: ayushdevel1325@gmail.com) Received: by mail-pj1-f52.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so15325pjl.0 for ; Tue, 19 Jul 2022 12:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:cc:from :subject:content-transfer-encoding; bh=LnLAiTVbbfNwHrVvwDacsqa+LhB2CR56UT3gangjA1g=; b=YKCSb9JSU8ls4kTi9eaJbAxWgE2fzPgtgo5fEJ9m84X/JHJZdFWIsssjWB/r4X+KaU nbrR9glNC/RNIHqTuTEItj8Az07vZehbRt8cHsR1UmjUbc9rtQFvpUrwx+2nwHYTc7Cn Pm/v4TI09nxYxxZ9+MpVcnBXm+9BT8Eq21LTt1IQzfMYOIihVBefMh59U0gLcIwLj/8l IXMwGCejffCWr5i8RZnMy7gTV77YPXJnBqTRcpevSGJ6Mbfp8hhf/6tguDM0/0VIS1N5 Nz4mVqnGj23Eth4oDPTeUpNLaZ3togvvR2ecEn+OR/LGeGtzI6ngTsImNb0C3ndHPJ9+ x+8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:from:subject:content-transfer-encoding; bh=LnLAiTVbbfNwHrVvwDacsqa+LhB2CR56UT3gangjA1g=; b=nhAspjFsPJ1KBTrG2jlTjwfwv6Fe0FjkWS2TS1g6M4ZlmaBheRxo5hZfdNj2uKrVBs Kx1nDQmKPFb0oJoo3X4RgyDbTnaMTUUc4aZjOauKBhidhMkXQb5KBWTZbpmv7S27uCG3 gV3de9kFV0wFDxhF9MlEEU1GKf+vLNFPOTJB2zd32HtuBmiQjGdMsI4z7ZJGdVt/mNVC 7/oFV+PiRiZPb3O3M/t6q8TdVq0usPNoLuCbfEtnh3SQO0eGF9IIzNIVTOIlpVb3yzvX Q5FABXVa3Tb45hEmRdhdV2HqaBmq6VxO2sq+DdVK6U7HzdlhPSy2bcpO0OkqqFj62fQf y4ag== X-Gm-Message-State: AJIora8IqcZQvM+ZFeJkUGlopElrCiwSY56kDQ2I70AKqEi2h20Pqzgl J0abh1Jb42KsDauceEMEZm0bCcVA7Yc= X-Google-Smtp-Source: AGRyM1u2eYPWM2FNqu7FcA0PRbebyGgqY1nDRrUU90g0XOH9sk72yVl2lhvw68kAsHnWTCiJV6ny/Q== X-Received: by 2002:a17:902:cece:b0:16c:3683:8830 with SMTP id d14-20020a170902cece00b0016c36838830mr34265744plg.107.1658260044316; Tue, 19 Jul 2022 12:47:24 -0700 (PDT) Return-Path: Received: from ?IPV6:2401:4900:1f3f:753c:8e46:6ac9:a824:242d? ([2401:4900:1f3f:753c:8e46:6ac9:a824:242d]) by smtp.gmail.com with ESMTPSA id nb4-20020a17090b35c400b001efeb4c813csm11915835pjb.13.2022.07.19.12.47.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jul 2022 12:47:23 -0700 (PDT) Message-ID: <8f1daa8e-192c-4afd-8350-cebf41794936@gmail.com> Date: Wed, 20 Jul 2022 01:17:19 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 To: "devel@edk2.groups.io" Cc: "Kinney, Michael D" , "mikuback@linux.microsoft.com" , "Gaibusab, Jabeena B" , "Yao, Jiewen" From: "Ayush Singh" Subject: Capturing Stdio of an image loaded using EFI_BOOT_SERVICES.LoadImage() Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello everyone. So while trying to make Rust `remote-test-server`, I found out that it also needs to be able to launch other UEFI applications (which will be the tests themselves). The Stdout and Stderr of these tests is supposed to be captured and sent back to the `remote-test-client` over TCP. I can now launch the `remote-test-server` under UEFI and get it to connect to the `remote-test-client`, however the application launch stuff isn't implemented yet. While I think I can implement the launching application portion using the `EFI_BOOT_SERVICES.LoadImage()` and `EFI_BOOT_SERVICES.StartImage()` functions, I do not know how to capture the input/output of these applications. So is there a way to do it normally? I think UefiShell must do this, but I am not sure how. Currently I do have a way to capture output when specifically running tests (basically writing the output and errors to a file and reading from it). However, that seems more like a hack, and so I wanted to know if there was a better way to do this. Yours Sincerely Ayush Singh