[OVMF] Using EFI_TIMESTAMP_PROTOCOL in OVMF


 

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