ia64/xen-unstable

changeset 14472:4e380c769774

coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Mar 19 16:55:21 2007 +0000 (2007-03-19)
parents 36e6f85cd572
children cabf9e221cd5 09f2e758a198
files tools/libxc/xc_core.c
line diff
     1.1 --- a/tools/libxc/xc_core.c	Mon Mar 19 16:48:24 2007 +0000
     1.2 +++ b/tools/libxc/xc_core.c	Mon Mar 19 16:55:21 2007 +0000
     1.3 @@ -349,11 +349,7 @@ xc_domain_dumpcore_via_callback(int xc_h
     1.4      /* Map the shared info frame */
     1.5      live_shinfo = xc_map_foreign_range(xc_handle, domid, PAGE_SIZE,
     1.6                                         PROT_READ, info.shared_info_frame);
     1.7 -    if ( !live_shinfo 
     1.8 -#ifdef __ia64__
     1.9 -         && !info.hvm
    1.10 -#endif
    1.11 -        )
    1.12 +    if ( !live_shinfo && !info.hvm )
    1.13      {
    1.14          PERROR("Couldn't map live_shinfo");
    1.15          goto out;