xen-platform: allow its creation with XEN_EMULATE mode
commitbb346fae3827b0d7d241e0304069e18cd8155d05
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 19 Jun 2018 10:44:46 +0000 (19 06:44 -0400)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 1 Mar 2023 08:22:49 +0000 (1 08:22 +0000)
treefce95277e2b99a1bd090c68e5261ef1242ba8015
parent3bb1ebac6cc372d2eaa12a5e576b2d28f3a29269
xen-platform: allow its creation with XEN_EMULATE mode

The only thing we need to fix to make this build is the PIO hack which
sets the BIOS memory areas to R/W v.s. R/O. Theoretically we could hook
that up to the PAM registers on the emulated PIIX, but in practice
nobody cares, so just leave it doing nothing.

Now it builds without actual Xen, move it to CONFIG_XEN_BUS to include it
in the KVM-only builds.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/xen/meson.build
hw/i386/xen/xen_platform.c