Print this page
9441 kmdb should stash %cr3 in kdiregs
Reviewed by: John Levon <john.levon@joyent.com>
8956 Implement KPTI
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/ml/offsets.in
          +++ new/usr/src/uts/i86pc/ml/offsets.in
   1    1  \
   2    2  \ Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
   3    3  \ Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
   4      -\ Copyright 2016 Joyent, Inc.
        4 +\ Copyright 2018 Joyent, Inc.
   5    5  \
   6    6  \ CDDL HEADER START
   7    7  \
   8    8  \ The contents of this file are subject to the terms of the
   9    9  \ Common Development and Distribution License (the "License").
  10   10  \ You may not use this file except in compliance with the License.
  11   11  \
  12   12  \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  13   13  \ or http://www.opensolaris.org/os/licensing.
  14   14  \ See the License for the specific language governing permissions
↓ open down ↓ 210 lines elided ↑ open up ↑
 225  225          cpu_m.mcpu_current_hat  CPU_CURRENT_HAT
 226  226          cpu_m.mcpu_gdt          CPU_GDT
 227  227          cpu_m.mcpu_idt          CPU_IDT
 228  228          cpu_m.mcpu_tss          CPU_TSS
 229  229          cpu_m.mcpu_softinfo     CPU_SOFTINFO
 230  230          cpu_m.mcpu_pri          CPU_PRI
 231  231  #if defined(__xpv)
 232  232          cpu_m.mcpu_vcpu_info    CPU_VCPU_INFO
 233  233  #endif
 234  234  
      235 +cpu
      236 +        cpu_m.mcpu_kpti.kf_kernel_cr3   CPU_KPTI_KCR3
      237 +        cpu_m.mcpu_kpti.kf_user_cr3     CPU_KPTI_UCR3
      238 +        cpu_m.mcpu_kpti.kf_tr_rsp       CPU_KPTI_TR_RSP
      239 +        cpu_m.mcpu_kpti.kf_tr_cr3       CPU_KPTI_TR_CR3
      240 +        cpu_m.mcpu_kpti.kf_r13          CPU_KPTI_R13
      241 +        cpu_m.mcpu_kpti.kf_r14          CPU_KPTI_R14
      242 +        cpu_m.mcpu_kpti.kf_tr_ret_rsp   CPU_KPTI_RET_RSP
      243 +
      244 +        cpu_m.mcpu_kpti.kf_ss           CPU_KPTI_SS
      245 +        cpu_m.mcpu_kpti.kf_rsp          CPU_KPTI_RSP
      246 +        cpu_m.mcpu_kpti.kf_rflags       CPU_KPTI_RFLAGS
      247 +        cpu_m.mcpu_kpti.kf_cs           CPU_KPTI_CS
      248 +        cpu_m.mcpu_kpti.kf_rip          CPU_KPTI_RIP
      249 +        cpu_m.mcpu_kpti.kf_err          CPU_KPTI_ERR
      250 +
      251 +        cpu_m.mcpu_pad2                 CPU_KPTI_START
      252 +        cpu_m.mcpu_pad3                 CPU_KPTI_END
      253 +
      254 +        cpu_m.mcpu_kpti_dbg             CPU_KPTI_DBG
      255 +
      256 +kpti_frame
      257 +        kf_r14          KPTI_R14
      258 +        kf_r13          KPTI_R13
      259 +        kf_err          KPTI_ERR
      260 +        kf_rip          KPTI_RIP
      261 +        kf_cs           KPTI_CS
      262 +        kf_rflags       KPTI_RFLAGS
      263 +        kf_rsp          KPTI_RSP
      264 +        kf_ss           KPTI_SS
      265 +
      266 +        kf_tr_rsp       KPTI_TOP
      267 +
      268 +        kf_kernel_cr3   KPTI_KCR3
      269 +        kf_user_cr3     KPTI_UCR3
      270 +        kf_tr_ret_rsp   KPTI_RET_RSP
      271 +        kf_tr_cr3       KPTI_TR_CR3
      272 +
      273 +        kf_tr_flag      KPTI_FLAG
      274 +
 235  275  standard_pic
 236  276          c_curmask
 237  277          c_iplmask
 238  278  
 239  279  ddi_dma_impl
 240  280          dmai_rflags
 241  281          dmai_rdip
 242  282  
 243  283  dev_info
 244  284          devi_ops                DEVI_DEV_OPS
↓ open down ↓ 229 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX