Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
24 stars 0 forks source link

Booting is slow in QEMU #898

Open krystian-hebel opened 3 months ago

krystian-hebel commented 3 months ago

Component

Dasharo firmware

Device

QEMU Q35 Emulator

Dasharo version

v0.2.0

Dasharo Tools Suite version

No response

Brief summary

Booting takes 15-25 seconds before logo is shown. In addition, saving multiple UEFI variables at once (e.g. restoring default SB keys) is also slow.

How reproducible

100%

How to reproduce

Start with ./qemu_run.sh graphic firmware and wait for logo.

Expected behavior

Actual behavior

Screenshots

No response

Additional context

Booting is significantly faster with Secure Boot enabled, but still not as fast as it should be.

Solutions you've tried

Using OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf instead of HPET makes it boot faster, but it also makes the delays shorter, up to a point where tests can't traverse iPXE menu before autoboot, which should normally should take 3 seconds. It may be controlled by modifying gEfiMdePkgTokenSpaceGuid.PcdFSBClock (MdePkg defines it as 200M, while most of OVMF platforms use 1G), however I haven't tested how it would work on other platforms.