diff options
author | 2012-08-01 15:44:14 +0000 | |
---|---|---|
committer | 2012-08-01 15:44:14 +0000 | |
commit | 20d96320a46a8a34388dd3e5a37f1fdbc7d51d44 (patch) | |
tree | ae34385700d2cbc6b517a89ea8d3fb967c9b7dd1 /lib/libc | |
parent | Revert previous change, and don't set IFM_AVALID | IFM_ACTIVE in ifm_status (diff) | |
download | wireguard-openbsd-20d96320a46a8a34388dd3e5a37f1fdbc7d51d44.tar.xz wireguard-openbsd-20d96320a46a8a34388dd3e5a37f1fdbc7d51d44.zip |
Use mtrrmask instead of hardcoded values to accommodate newer CPUs
with a large physical address size (greater than 36 bit). Fixes a
major performance hit seen on newer servers where an incorrectly
programmed memory region length affects the PCI device mappings.
While here, make sure to invalidate the TLB after programming MSRs
and fix an incorrect behavior found by deraadt@ where MTRRdefType
was updated outside of the protected region.
The fix was partly obtained from FreeBSD, tested by many.
With and OK deraadt
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions