diff options
Diffstat (limited to 'xen-common.c')
-rw-r--r-- | xen-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen-common.c b/xen-common.c index 0dcdbc39f4..6cd2959e21 100644 --- a/xen-common.c +++ b/xen-common.c @@ -118,6 +118,12 @@ static int xen_init(MachineState *ms) xen_be_printf(NULL, 0, "can't open xen interface\n"); return -1; } + xen_fmem = xenforeignmemory_open(0, 0); + if (xen_fmem == NULL) { + xen_be_printf(NULL, 0, "can't open xen fmem interface\n"); + xc_interface_close(xen_xc); + return -1; + } qemu_add_vm_change_state_handler(xen_change_state_handler, NULL); global_state_set_optional(); |