From b4fc3d61a0a3941492c044276871d0ae93e91670 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 Jun 2008 16:34:48 +0100 Subject: [PATCH] More complication and #include fixes. Including some more ia64-specific stuff copies from xen-unstable tip 17737:c93a913c221f --- hw/xen_console.c | 7 +++++-- hw/xen_machine_pv.c | 8 +++++--- hw/xenfb.c | 2 ++ i386-dm/helper2.c | 4 ++-- qemu-xen.h | 11 +++++++++++ 5 files changed, 25 insertions(+), 7 deletions(-) diff --git a/hw/xen_console.c b/hw/xen_console.c index fbd33f07f..14c2c8794 100644 --- a/hw/xen_console.c +++ b/hw/xen_console.c @@ -20,6 +20,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "hw.h" +#include "sysemu.h" +#include "exec-all.h" +#include "qemu-char.h" + #include #include #include @@ -34,8 +39,6 @@ #include #include -#include "vl.h" - #include "xen_console.h" #define dolog(val, fmt, ...) fprintf(stderr, fmt "\n", ## __VA_ARGS__) diff --git a/hw/xen_machine_pv.c b/hw/xen_machine_pv.c index 35335c54b..0fec0aaeb 100644 --- a/hw/xen_machine_pv.c +++ b/hw/xen_machine_pv.c @@ -25,6 +25,8 @@ #include "hw.h" #include "xen_console.h" #include "xenfb.h" +#include "sysemu.h" +#include "boards.h" extern void init_blktap(void); @@ -33,12 +35,12 @@ extern void init_blktap(void); * - a virtual framebuffer * - .... */ -static void xen_init_pv(uint64_t ram_size, int vga_ram_size, char *boot_device, - DisplayState *ds, const char **fd_filename, - int snapshot, +static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size, + const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, + const char *cpu_model, const char *direct_pci) { struct xenfb *xenfb; diff --git a/hw/xenfb.c b/hw/xenfb.c index d1f34c456..5a42ba32b 100644 --- a/hw/xenfb.c +++ b/hw/xenfb.c @@ -1,3 +1,5 @@ +#include "hw.h" + #include #include #include diff --git a/i386-dm/helper2.c b/i386-dm/helper2.c index b6d6a8db3..491b94a89 100644 --- a/i386-dm/helper2.c +++ b/i386-dm/helper2.c @@ -67,7 +67,7 @@ _syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount) #endif #endif /* USE_CODE_COPY */ -#include "vl.h" +#include "hw.h" int domid = -1; int vcpus = 1; @@ -95,7 +95,7 @@ int send_vcpu = 0; #define NR_CPUS 32 evtchn_port_t ioreq_local_port[NR_CPUS]; -CPUX86State *cpu_x86_init(void) +CPUX86State *cpu_x86_init(const char *cpu_model) { CPUX86State *env; static int inited; diff --git a/qemu-xen.h b/qemu-xen.h index aff4a417d..428d4b2cf 100644 --- a/qemu-xen.h +++ b/qemu-xen.h @@ -23,4 +23,15 @@ void timeoffset_get(void); void pci_xen_platform_init(PCIBus *bus); #endif +#ifdef __ia64__ +static inline void xc_domain_shutdown_hook(int xc_handle, uint32_t domid) +{ + xc_ia64_save_to_nvram(xc_handle, domid); +} +void handle_buffered_pio(void); +#else +#define xc_domain_shutdown_hook(xc_handle, domid) do {} while (0) +#define handle_buffered_pio() do {} while (0) +#endif + #endif /*QEMU_XEN_H*/ -- 2.39.5