]> xenbits.xensource.com Git - seabios.git/commit
better kvm detection
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 9 Sep 2022 05:45:13 +0000 (07:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Aug 2023 08:56:21 +0000 (10:56 +0200)
commitbe84867613f791ea344d565d65a9ce85238e8533
treecd2c4cfc4d30e33b821da4d06cb21b1f8155f861
parent7a4003be25eae462f3c3d8aad96b57e34dc0c2b8
better kvm detection

In case kvm emulates features of another hypervisor (for example hyperv)
two VMM CPUID blocks will be present, one for the emulated hypervisor
and one for kvm itself.

This patch makes seabios loop over the VMM CPUID blocks to make sure it
will properly detect kvm when multiple blocks are present.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/paravirt.c