summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-09-04 23:31:29 +0000
committerkib <kib@FreeBSD.org>2013-09-04 23:31:29 +0000
commit23ba68da73b54f9fe365d3131a80b52961a4c767 (patch)
tree3f3ca1a974047e79f378a04299da4a474e55670c /sys/nfsserver
parent99fb6f77e5b8c132aeb7ed08996b210789c5e3aa (diff)
downloadFreeBSD-src-23ba68da73b54f9fe365d3131a80b52961a4c767.zip
FreeBSD-src-23ba68da73b54f9fe365d3131a80b52961a4c767.tar.gz
Tidy up some loose ends in the PCID code:
- Restore the pre-PCID TLB shootdown handlers for whole address space and single page invalidation asm code, and assign the IPI handler to them when PCID is not supported or disabled. Old handlers have linear control flow. But, still use the common return sequence. - Stop using pcpu for INVPCID descriptors in the invlrg handler. It is enough to allocate descriptors on the stack. As result, two SWAPGS instructions are shaved off from the code for Haswell+. - Fix the reverted condition in invlrng for checking of the PCID support [1], also in invlrng check that pmap is kernel pmap before performing other tests. For the kernel pmap, which provides global mappings, the INVLPG must be used for invalidation always. - Save the pre-computed pmap' %CR3 register in the struct pmap. This allows to remove several checks for pm_pcid validity when %CR3 is reloaded [2]. Noted by: gibbs [1] Discussed with: alc [2] Tested by: pho, flo Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/nfsserver')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud