wire / wire-format / tlb-entry

TLB (Translation Lookaside Buffer) entry

A TLB entry caches a virtual-to-physical address translation. Format (x86-64): VPN (virtual page number, 36-48 bits), PFN (physical frame number, 40 bits), flags (valid, dirty, accessed, global, ASID/PCID, permissions). TLB is fully associative or set-associative. On miss: page table walk (4 levels, ~100 cycles). On hit: ~1 cycle.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: TLB (Translation Lookaside Buffer) entry

wire format

spec: TLB (Translation Lookaside Buffer)

A TLB entry caches a virtual-to-physical address translation. Format (x86-64): VPN (virtual page number, 36-48 bits), PFN (physical frame number, 40 bits), flags (valid, dirty, accessed, global, ASID/PCID, permissions). TLB is fully associative or set-associative. On miss: page table walk (4 levels, ~100 cycles). On hit: ~1 cycle.

fieldsizemeaning
Virtual Page Number (VPN)36-48 bitsHigh bits of the virtual address (page number).
Physical Frame Number (PFN)40 bitsHigh bits of the physical address (frame number).
Valid1 bit1 = entry is valid.
Dirty1 bit1 = page has been written to.
Accessed1 bit1 = page has been accessed.
Global1 bit1 = global page (not flushed on CR3 reload). Requires CR4.PGE.
ASID/PCID12 bits (PCID)Process-Context ID. Tags TLB entries to avoid flushes on context switch.
Permissions3 bitsR/W/X (read/write/execute). Checked on every access.
Page sizeencoding4KB, 2MB, or 1GB. Encoded in the TLB entry or determined by page table level.

example:

00 00 00 00 00 00 00 00

TLB entry (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/tlb-entry or /wire-format/tlb-entry.json