From 1c51e66079aa02e7572baf718e1a93b2f29df637 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 18 Jun 2008 14:10:19 +0100 Subject: [PATCH] Initialise xc_handle; get rid of some xen-useless stuff in initialisation --- i386-dm/helper2.c | 2 +- vl.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/i386-dm/helper2.c b/i386-dm/helper2.c index 694740e4..6995d2ae 100644 --- a/i386-dm/helper2.c +++ b/i386-dm/helper2.c @@ -78,7 +78,7 @@ _syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount) int domid = -1; int vcpus = 1; -int xc_handle; +int xc_handle = -1; char domain_name[64] = "Xen-no-name"; int domid; diff --git a/vl.c b/vl.c index ef41cb0c..a562c00f 100644 --- a/vl.c +++ b/vl.c @@ -8598,7 +8598,6 @@ int main(int argc, char **argv) exit(1); } } -#endif /* init the memory */ phys_ram_size = machine->ram_require & ~RAMSIZE_FIXED; @@ -8626,6 +8625,10 @@ int main(int argc, char **argv) fprintf(stderr, "Could not allocate physical memory\n"); exit(1); } +#endif + + xc_handle = xc_interface_open(); + xenstore_parse_domain_config(domid); bdrv_init(); -- 2.39.5