From 04b0de0ee83fe464487406064afe14de27decc24 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 7 May 2014 16:16:43 +0000 Subject: xen: factor out common functions So common functions used by both HVM and PV are factored out from xen-all.c to xen-common.c. Finally rename xen-all.c to xen-hvm.c, as those functions are only useful to HVM guest. Create *-stub files and modify Makefile.target to reflect the changes. Signed-off-by: Wei Liu Signed-off-by: Stefano Stabellini --- xen-common-stub.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 xen-common-stub.c (limited to 'xen-common-stub.c') diff --git a/xen-common-stub.c b/xen-common-stub.c new file mode 100644 index 0000000000..bd56ca2ce5 --- /dev/null +++ b/xen-common-stub.c @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2014 Citrix Systems UK Ltd. + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#include "qemu-common.h" +#include "hw/xen/xen.h" + +void xenstore_store_pv_console_info(int i, CharDriverState *chr) +{ +} + +int xen_init(MachineClass *mc) +{ + return -ENOSYS; +} + -- cgit v1.2.3