summaryrefslogtreecommitdiff
path: root/xen-all.c
diff options
context:
space:
mode:
authorAllen Kay <allen.m.kay@intel.com>2012-06-21 15:40:09 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-06-21 16:06:10 +0000
commiteaab4d60d3ad908936564492862e8a84f5fa59b2 (patch)
tree7f306179c3bae763987b5edec90fea7b1e3b6a3f /xen-all.c
parent679042f0e1eac0af1e03759efe8761e7b4422588 (diff)
Introduce Xen PCI Passthrough, qdevice
A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Guy Zana <guy@neocleus.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen-all.c')
-rw-r--r--xen-all.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xen-all.c b/xen-all.c
index b5220cc6a3..59f232395e 100644
--- a/xen-all.c
+++ b/xen-all.c
@@ -1191,3 +1191,15 @@ void xen_register_framebuffer(MemoryRegion *mr)
{
framebuffer = mr;
}
+
+void xen_shutdown_fatal_error(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+ fprintf(stderr, "Will destroy the domain.\n");
+ /* destroy the domain */
+ qemu_system_shutdown_request();
+}