Print this page
NEX-17845 Remove support for BZIP2 from dump
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
re #13613 rb4516 Tunables needs volatile keyword

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 ↓ 130 lines elided ↑ open up ↑
 164  165  
 165  166  /*
 166  167   * Maximum physical address for memory DR operations.
 167  168   */
 168  169  uint64_t plat_dr_physmax;
 169  170  
 170  171  /*
 171  172   * maxphys - used during physio
 172  173   * klustsize - used for klustering by swapfs and specfs
 173  174   */
 174      -int maxphys = 56 * 1024;    /* XXX See vm_subr.c - max b_count in physio */
      175 +volatile int maxphys = 56 * 1024; /* See vm_subr.c - max b_bcount in physio */
 175  176  int klustsize = 56 * 1024;
 176  177  
 177  178  caddr_t p0_va;          /* Virtual address for accessing physical page 0 */
 178  179  
 179  180  /*
 180  181   * defined here, though unused on x86,
 181  182   * to make kstat_fr.c happy.
 182  183   */
 183  184  int vac;
 184  185  
↓ open down ↓ 1047 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