Print this page
9709 Remove support for BZIP2 from dump
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/machdep.c
          +++ new/usr/src/uts/i86pc/os/machdep.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  24   25   * Copyright 2017, Joyent, Inc.
  25   26   */
  26   27  /*
  27   28   * Copyright (c) 2010, Intel Corporation.
  28   29   * All rights reserved.
  29   30   */
  30   31  
  31   32  #include <sys/types.h>
  32   33  #include <sys/t_lock.h>
  33   34  #include <sys/param.h>
↓ open down ↓ 1198 lines elided ↑ open up ↑
1232 1233          if (DOMAIN_IS_INITDOMAIN(xen_info))
1233 1234                  return (xpv_nr_phys_pages());
1234 1235  #endif /* __xpv */
1235 1236  
1236 1237          for (mp = phys_install; mp != NULL; mp = mp->ml_next)
1237 1238                  npages += mp->ml_size >> PAGESHIFT;
1238 1239  
1239 1240          return (npages);
1240 1241  }
1241 1242  
1242      -/* cpu threshold for compressed dumps */
1243      -#ifdef _LP64
1244      -uint_t dump_plat_mincpu_default = DUMP_PLAT_X86_64_MINCPU;
1245      -#else
1246      -uint_t dump_plat_mincpu_default = DUMP_PLAT_X86_32_MINCPU;
1247      -#endif
1248      -
1249 1243  int
1250 1244  dump_plat_addr()
1251 1245  {
1252 1246  #ifdef __xpv
1253 1247          pfn_t pfn = mmu_btop(xen_info->shared_info) | PFN_IS_FOREIGN_MFN;
1254 1248          mem_vtop_t mem_vtop;
1255 1249          int cnt;
1256 1250  
1257 1251          /*
1258 1252           * On the hypervisor, we want to dump the page with shared_info on it.
↓ open down ↓ 199 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX