From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) by mx.groups.io with SMTP id smtpd.web12.1949.1660570141092467473 for ; Mon, 15 Aug 2022 06:29:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V6dRajCd; spf=pass (domain: gmail.com, ip: 209.85.128.175, mailfrom: ayushdevel1325@gmail.com) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-3246910dac3so71866307b3.12 for ; Mon, 15 Aug 2022 06:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc; bh=7sg84VnnUYtiJcMChFCR6VDf1wEdjQOiVnwpdkVmEYA=; b=V6dRajCdpeBxnD7Q1OpTcIYH0PuzpPxFkJJPYqs7++BJ5FWvx88O4khwl8emoYOFqe M6yMiN+M8PGX4i8S6N+WQiqhmVAilp1m/47OA35c8fYN/i6s9yqUXZSQBSLhkaj65OSX N9IZC2awdhzvK0reQBpsdWdmEeV23XCUzNtvrrvoKgBbOhA8e5xg+5Gw/3KZKfKniZyo Jc6fFtMC1W4k1ow8H7IdodsCuyB5kymMtjACSKnYO2xEpim8qKoE5jy0e0R8W9N315bg S91u0IInfXHq12BA40GguEU1o/iSJ+8UO21PyWGEKZZiTmmTzQ46XjAfeq53pyGaUocu /oLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=7sg84VnnUYtiJcMChFCR6VDf1wEdjQOiVnwpdkVmEYA=; b=ch4FZbgr9twA/W+sNYwV5RrHpGBXGBLEYREPols2DC3Zo9p3D2I5zEG8u+hGRR4Wu1 CsnJAYn0ThQYlEWz9LJilyO8WLEPQva5e6y/c2EmdNXDFYOKifK11D3CDpWw8k+WnvfT gCb5LVk7/bQPRpFxIrgNM6aBt00iXg2f0LrANC4aU0dTAPIBHyp+C4lMXLxgQA331aIB hUywBvKOoWiRDBG1KTlYgkEvJG37s8mq23k0F15Y9VZg5sRHXcg4RCff5ViHwRNC5FZ1 fKHWzMv4AVSR812j2l7/TeMb5gvSOIL8l2G75f3krNOQ550/SiLu/3XZZVESce/rdfAL vjWw== X-Gm-Message-State: ACgBeo3DtN8eTTfh5GTXPwVwFSzOk74dom10AyWioAt3U39I/RKqcfZc djDIPEQnoANujAdEYnSjj3WcjuFpFc94xlLh4kuH5VUUt5M= X-Google-Smtp-Source: AA6agR4oKL775VHZw9smLlDggfk89+Ad1sAE+N/WmvkvGmqiPlKdTC//uhFpDF4mAzFUDfrlaNwxmhgERRma1p3a6pY= X-Received: by 2002:a81:574c:0:b0:328:6886:3e5a with SMTP id l73-20020a81574c000000b0032868863e5amr13253292ywb.57.1660570140156; Mon, 15 Aug 2022 06:29:00 -0700 (PDT) MIME-Version: 1.0 From: "Ayush Singh" Date: Mon, 15 Aug 2022 18:58:49 +0530 Message-ID: Subject: [OVMF] Using EFI_TIMESTAMP_PROTOCOL in OVMF To: edk2-devel-groups-io Cc: Michael Kubacki , "Kinney, Michael D" , "Gaibusab, Jabeena B" , Jiewen Yao Content-Type: multipart/alternative; boundary="00000000000054270f05e6479db7" --00000000000054270f05e6479db7 Content-Type: text/plain; charset="UTF-8" Hello everyone. I wanted to ask if there was a device/parameter to have `EFI_TIMESTAMP_PROTOCOL` in OVMF. I would like to use this protocol to provide monotonic time in Rust (and fall back to platform-specific registers in case the protocol is absent). However, in the default qemu configuration, there is no handle supporting `EFI_TIMESTAMP_PROTOCOL`. For more information on what I am trying to implement, see `std::time::Instant` [1] and the PR comment [2]. Yours Sincerely Ayush Singh [1]: https://doc.rust-lang.org/std/time/struct.Instant.html [2]: https://github.com/rust-lang/rust/pull/100316#discussion_r945313267 --00000000000054270f05e6479db7 Content-Type: text/html; charset="UTF-8"

Hello everyone. I wanted to ask if there was a device/parameter to have `EFI_TIMESTAMP_PROTOCOL` in OVMF.

I would like to use this protocol to provide monotonic time in Rust (and fall back to platform-specific registers in case the protocol is absent). However, in the default qemu configuration, there is no handle supporting `EFI_TIMESTAMP_PROTOCOL`.


For more information on what I am trying to implement, see `std::time::Instant` [1] and the PR comment [2].


Yours Sincerely

Ayush Singh


[1]: https://doc.rust-lang.org/std/time/struct.Instant.html

[2]: https://github.com/rust-lang/rust/pull/100316#discussion_r945313267

--00000000000054270f05e6479db7--