Processor: 1 GHz or faster with 2 or more cores on a compatible 64-bit processor. (Microsoft links to a list of compatible processors for Windows 10 but has not yet updated the list for Windows 11).
RAM: 4 gigabytes or more
Storage: 64 GB or larger storage device (such as a hard drive or SSD)
System Firmware: UEFI and Secure Boot capable
TPM: Trusted Platform Module 2.0 (common on motherboards manufactured after 2016)
Gra
Problem solved, I was missing some flags for building a proper version of ovmf.
I didn't know tpm has flags too, that need to be enabled.
So, summarizing, if one wants to compile himself/herself ovmf (following example build latest stable version at the time of writing, 202108):
git clone https://github.com/tianocore/edk2.git
cd edk2
git clean -ffdx
git reset --hard
git submodule deinit --force --all
git checkout edk2-stable202108
git submodule update --init --force
so