Message ID | 1306312497.20576.209.camel@zakaz.uk.xensource.com |
---|---|
State | New |
Headers | show |
diff --git a/xen-all.c b/xen-all.c index 377aff7..c04bcbf 100644 --- a/xen-all.c +++ b/xen-all.c @@ -783,6 +783,12 @@ int xen_hvm_init(void) unsigned long ioreq_pfn; XenIOState *state; + if (!xen_xc) { + errno = ENOTSUP; + perror("xen: xen hvm requires accel=xen"); + return -errno; + } + state = qemu_mallocz(sizeof (XenIOState)); state->xce_handle = xen_xc_evtchn_open(NULL, 0);