]> 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>
Wed, 7 Dec 2022 16:19:48 +0000 (16:19 +0000)
commit385afdec1b7fd2cafdcedf95abaea0ffec094bfb
treec7148cdeb7c7c40c86d8a0f0349a4a337fab295c
parent47b220bc3622f2d4ba1f71517753db7bfb91729c
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 it unconditionally
when the xen-version machine property is set.

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