OVMF, open virtual machine firmware, is project from EDK-II which to support UEFI for virtual machines. It contains a sample firmware for QEMU and KVM
This page provides instructions to build a UEFI firmware for QEMU virt platform from Tianocore/EDK2 source code.
The is how qemu create a device from command line -device.
Setup an enviroment for qemu/kvm with libvirt and virt-manager.