Print this page
NEX-16970 assertion failed: ht->ht_valid_cnt >= 0, file: ../../i86pc/vm/htable.c, line: 1204
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/vm/hat_i86.h
          +++ new/usr/src/uts/i86pc/vm/hat_i86.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  /*
  26   26   * Copyright (c) 2014 by Delphix. All rights reserved.
       27 + * Copyright 2019 Nexenta Systems, Inc.
  27   28   */
  28   29  
  29   30  #ifndef _VM_HAT_I86_H
  30   31  #define _VM_HAT_I86_H
  31   32  
  32   33  
  33   34  #ifdef  __cplusplus
  34   35  extern "C" {
  35   36  #endif
  36   37  
↓ open down ↓ 43 lines elided ↑ open up ↑
  80   81   * The hat struct exists for each address space.
  81   82   */
  82   83  struct hat {
  83   84          kmutex_t        hat_mutex;
  84   85          struct as       *hat_as;
  85   86          uint_t          hat_stats;
  86   87          pgcnt_t         hat_pages_mapped[MAX_PAGE_LEVEL + 1];
  87   88          pgcnt_t         hat_ism_pgcnt;
  88   89          cpuset_t        hat_cpus;
  89   90          uint16_t        hat_flags;
       91 +        uint16_t        hat_unmaps;     /* stop hat being free'd during unmap */
  90   92          htable_t        *hat_htable;    /* top level htable */
  91   93          struct hat      *hat_next;
  92   94          struct hat      *hat_prev;
  93   95          uint_t          hat_num_hash;   /* number of htable hash buckets */
  94   96          htable_t        **hat_ht_hash;  /* htable hash buckets */
  95   97          htable_t        *hat_ht_cached; /* cached free htables */
  96   98          x86pte_t        hat_vlp_ptes[VLP_NUM_PTES];
  97   99  #if defined(__amd64) && defined(__xpv)
  98  100          pfn_t           hat_user_ptable; /* alt top ptable for user mode */
  99  101  #endif
↓ open down ↓ 183 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX