VirtualBox

Ignore:
Timestamp:
May 30, 2017 7:58:21 AM (8 years ago)
Author:
vboxsync
Message:

HostDrivers/Support, VMM: bugref:8864: On Linux 4.12 the GDT is mapped read-only. The writable-mapped GDT is available and is used for clearing the TSS BUSY descriptor bit and for LTR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.mac

    r62476 r67136  
    161161%define VMX_RESTORE_HOST_GDT_READ_ONLY                          80h   ;RT_BIT(7)
    162162%define VMX_RESTORE_HOST_REQUIRED                              100h   ;RT_BIT(8)
     163%define VMX_RESTORE_HOST_GDT_NEED_WRITABLE                     200h   ;RT_BIT(9)
    163164
    164165;; C version hm_vmx.h.
     
    172173    .HostGdtr           resb    10
    173174    .abPadding1         resb    6
     175    .HostGdtrRw         resb    10
     176    .abPadding2         resb    6
    174177    .HostIdtr           resb    10
    175178    .uHostFSBase        resq    1
     
    177180endstruc
    178181AssertCompileMemberOffset(VMXRESTOREHOST, HostGdtr,     16-2)
    179 AssertCompileMemberOffset(VMXRESTOREHOST, HostIdtr,     32-2)
    180 AssertCompileMemberOffset(VMXRESTOREHOST, uHostFSBase,    40)
    181 AssertCompileSize(VMXRESTOREHOST, 56)
     182AssertCompileMemberOffset(VMXRESTOREHOST, HostGdtrRw,   32-2)
     183AssertCompileMemberOffset(VMXRESTOREHOST, HostIdtr,     48-2)
     184AssertCompileMemberOffset(VMXRESTOREHOST, uHostFSBase,    56)
     185AssertCompileSize(VMXRESTOREHOST, 72)
    182186
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette