aboutsummaryrefslogtreecommitdiff
path: root/xen-common-stub.c
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2014-05-07 16:16:43 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2014-05-07 16:16:43 +0000
commit04b0de0ee83fe464487406064afe14de27decc24 (patch)
tree1e55a23012daf56cac71389a252dffd6262b098c /xen-common-stub.c
parentad3f7e31bfc148135d93c176d1c9197933fa8344 (diff)
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 <wei.liu2@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen-common-stub.c')
-rw-r--r--xen-common-stub.c19
1 files changed, 19 insertions, 0 deletions
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;
+}
+