]> 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>
Tue, 10 Jan 2023 10:33:59 +0000 (10:33 +0000)
commita988049a217d9b8ee3fea64990512690298b13f5
treee48063237f4d9b1acac80c78fc0a08d16359414f
parent4e0b15006000a39082cb90ffaa519082a2139c5a
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