diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-11-06 14:55:19 +0000 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-11-19 10:20:45 +0900 |
commit | 76b4aca8850b8d438fa9bfec96cad522bdabfc2c (patch) | |
tree | 6f20da58388b4ca68476001133a4f9397364226c /kexec/crashdump-xen.c | |
parent | 75efb890f9033302d9bf27bace6268850c8a7371 (diff) |
kexec/xen: require libxc from Xen 4.4
libxc from Xen 4.4 added xc_kexec_load() which will be required to
load images into Xen in the future.
Remove all the #ifdef'ery for older versions of libxc.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/crashdump-xen.c')
-rw-r--r-- | kexec/crashdump-xen.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/kexec/crashdump-xen.c b/kexec/crashdump-xen.c index d8bd0f4..ff4706c 100644 --- a/kexec/crashdump-xen.c +++ b/kexec/crashdump-xen.c @@ -131,30 +131,18 @@ unsigned long xen_architecture(struct crash_elf_info *elf_info) #ifdef HAVE_LIBXENCTRL int rc; xen_capabilities_info_t capabilities; -#ifdef XENCTRL_HAS_XC_INTERFACE xc_interface *xc; -#else - int xc; -#endif if (!xen_present()) goto out; memset(capabilities, '0', XEN_CAPABILITIES_INFO_LEN); -#ifdef XENCTRL_HAS_XC_INTERFACE xc = xc_interface_open(NULL, NULL, 0); if ( !xc ) { fprintf(stderr, "failed to open xen control interface.\n"); goto out; } -#else - xc = xc_interface_open(); - if ( xc == -1 ) { - fprintf(stderr, "failed to open xen control interface.\n"); - goto out; - } -#endif rc = xc_version(xc, XENVER_capabilities, &capabilities[0]); if ( rc == -1 ) { |