hw/xen: Split x86-specific declaration from generic hardware ones
xen_hvm_init() is restricted to the X86 architecture. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200908155530.249806-6-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
71f364b703
commit
c834596f79
@ -46,7 +46,7 @@
|
|||||||
#include "hw/sysbus.h"
|
#include "hw/sysbus.h"
|
||||||
#include "sysemu/arch_init.h"
|
#include "sysemu/arch_init.h"
|
||||||
#include "hw/i2c/smbus_eeprom.h"
|
#include "hw/i2c/smbus_eeprom.h"
|
||||||
#include "hw/xen/xen.h"
|
#include "hw/xen/xen-x86.h"
|
||||||
#include "exec/memory.h"
|
#include "exec/memory.h"
|
||||||
#include "exec/address-spaces.h"
|
#include "exec/address-spaces.h"
|
||||||
#include "hw/acpi/acpi.h"
|
#include "hw/acpi/acpi.h"
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "hw/xen/xen_common.h"
|
#include "hw/xen/xen_common.h"
|
||||||
#include "hw/xen/xen-legacy-backend.h"
|
#include "hw/xen/xen-legacy-backend.h"
|
||||||
#include "hw/xen/xen-bus.h"
|
#include "hw/xen/xen-bus.h"
|
||||||
|
#include "hw/xen/xen-x86.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qapi-commands-misc.h"
|
#include "qapi/qapi-commands-misc.h"
|
||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
|
15
include/hw/xen/xen-x86.h
Normal file
15
include/hw/xen/xen-x86.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* Xen X86-specific
|
||||||
|
*
|
||||||
|
* Copyright 2020 Red Hat, Inc.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
#ifndef QEMU_HW_XEN_X86_H
|
||||||
|
#define QEMU_HW_XEN_X86_H
|
||||||
|
|
||||||
|
#include "hw/i386/pc.h"
|
||||||
|
|
||||||
|
void xen_hvm_init_pc(PCMachineState *pcms, MemoryRegion **ram_memory);
|
||||||
|
|
||||||
|
#endif /* QEMU_HW_XEN_X86_H */
|
@ -30,8 +30,6 @@ qemu_irq *xen_interrupt_controller_init(void);
|
|||||||
|
|
||||||
void xenstore_store_pv_console_info(int i, struct Chardev *chr);
|
void xenstore_store_pv_console_info(int i, struct Chardev *chr);
|
||||||
|
|
||||||
void xen_hvm_init_pc(PCMachineState *pcms, MemoryRegion **ram_memory);
|
|
||||||
|
|
||||||
void xen_register_framebuffer(struct MemoryRegion *mr);
|
void xen_register_framebuffer(struct MemoryRegion *mr);
|
||||||
|
|
||||||
#endif /* QEMU_HW_XEN_H */
|
#endif /* QEMU_HW_XEN_H */
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "hw/xen/xen.h"
|
#include "hw/xen/xen.h"
|
||||||
|
#include "hw/xen/xen-x86.h"
|
||||||
|
|
||||||
void xenstore_store_pv_console_info(int i, Chardev *chr)
|
void xenstore_store_pv_console_info(int i, Chardev *chr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user