]> 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, 27 Jan 2023 09:04:08 +0000 (10:04 +0100)
commit622e89a7ab39d9938c54bc0e7412578377e016a9
tree0ce214984c5a809eb9f2c435f56f57f33c056694
parenta0039ae17fc832a8e26ec027ed6946147614b854
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