Print this page
remove xhat
The xhat infrastructure was added to support hardware such as the zulu
graphics card - hardware which had on-board MMUs.  The VM used the xhat code
to keep the CPU's and Zulu's page tables in-sync.  Since the only xhat user
was zulu (which is gone), we can safely remove it simplifying the whole VM
subsystem.
Assorted notes:
- AS_BUSY flag was used solely by xhat

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/vm_rm.c
          +++ new/usr/src/uts/common/vm/vm_rm.c
↓ open down ↓ 57 lines elided ↑ open up ↑
  58   58  
  59   59  /*
  60   60   * Yield the memory claim requirement for an address space.
  61   61   *
  62   62   * This is currently implemented as the number of active hardware
  63   63   * translations that have page structures.  Therefore, it can
  64   64   * underestimate the traditional resident set size, eg, if the
  65   65   * physical page is present and the hardware translation is missing;
  66   66   * and it can overestimate the rss, eg, if there are active
  67   67   * translations to a frame buffer with page structs.
  68      - * Also, it does not take sharing and XHATs into account.
       68 + * Also, it does not take sharing into account.
  69   69   */
  70   70  size_t
  71   71  rm_asrss(as)
  72   72          register struct as *as;
  73   73  {
  74   74          if (as != (struct as *)NULL && as != &kas)
  75   75                  return ((size_t)btop(hat_get_mapped_size(as->a_hat)));
  76   76          else
  77   77                  return (0);
  78   78  }
↓ open down ↓ 29 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX