]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/kvm: handle Xen HVM cpuid leaves
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 6 Dec 2022 10:48:53 +0000 (10:48 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 20 Jan 2023 12:28:51 +0000 (12:28 +0000)
commit033b3c1307fc44c07c4d36579f60987e35dbde7e
tree61d64d2de4c1c4f1ec8c646d28b8de7ffbd3be09
parentdd1ab70b7b4b3a73b4eb0b5cc6119451f8a4d88e
i386/kvm: handle Xen HVM cpuid leaves

Introduce support for emulating CPUID for Xen HVM guests. It doesn't make
sense to advertise the KVM leaves to a Xen guest, so do Xen unconditionally
when the xen-version machine property is set.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
[dwmw2: Obtain xen_version from KVM property, make it automatic]
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/kvm.c
target/i386/kvm/xen-emu.c
target/i386/kvm/xen-emu.h