← Back to the notebook

OFF-TOPIC / EPT / MEMORY RELATIONSHIPS · OCT 2026

My worlds are colliding!

One address, two translations, and a social catastrophe at the page-table boundary.

Original two-tone vector caricature between host and guest memory maps
Original vector field note. Art direction: optimism, misplaced blame, very strong tea.

I have two worlds. In one world I am the confident guest operating system, assigning virtual addresses and telling everybody exactly where the furniture goes. In the other I am the host, looking at guest-physical pages and keeping an entirely separate record of where things actually live.

Two worlds. Beautiful separation. Respectful distance. Everyone is happy.

Then somebody brings a guest virtual address to a host-physical discussion.

MY WORLDS ARE COLLIDING!

The address is not the apartment

The guest says: “The buffer is at this virtual address.” Excellent. Very specific. Does that mean those bytes occupy a fixed physical location? No. The guest's page tables translate guest virtual addresses into guest physical addresses. When hardware nested translation is enabled, EPT on Intel or NPT on AMD adds a second translation from guest physical to host physical.

I thought we had settled this when I wrote down one number. But there are three numbers. Three! For a single buffer! This architecture has a paperwork problem.

I announce that all addresses should have one name. The memory management unit declines to consider the proposal.

A lease with two landlords

A guest process can map, unmap, change protections, and fault according to rules enforced by its own operating system. Separately, the VMM can constrain the guest's access to guest-physical regions. The two layers do not magically merge into one permission check; they compose.

A guest mapping may appear writable in the guest's own page tables while the EPT mapping forbids writing. The resulting second-stage violation is not proof that the guest page-table entry was wrong. It is proof that the host-side mapping enforced another condition.

George hears “second-stage translation” and demands to know why the first stage wasn't enough. George does not enjoy being corrected by a translation lookaside buffer.

The suspiciously familiar address

I recently learned about use-after-free. A pointer refers to an object. The object is freed. A new object receives the same address. The pointer has not changed, but its meaning has. The landlord changed the tenant and forgot to tell the old key.

That is exactly the kind of assumption we must not make across the host/guest boundary. Same-looking address does not imply same object. Same guest-physical page number does not always mean the same host-physical backing forever. Translation, invalidation, lifetime, and ownership are all relevant.

The address has returned from a weekend trip with an entirely new personality. I am expected to be understanding.

The OWL0 experiment

OWL0's investigation is not “find a magic memory region nobody can see.” It is to create a small controlled service outside the guest's usual process bookkeeping and measure different observers against it. Guest process tools may lack a representation for a lower-layer service; host instrumentation, CPU time and device interactions may still reveal consequences.

Build a trace table with guest virtual, guest physical and host physical identifiers where the setup permits it. Record mapping updates and relevant invalidations. Reproduce page-fault versus EPT-violation conditions in a safe lab. Ask whether each observer has a defined line of sight. Document the gaps without turning a gap into a superpower.

I propose putting all those facts on one napkin. There is not enough room. Naturally, I blame the napkin.

A working agreement between worlds

  1. Always name the address space: GVA, GPA or HPA.
  2. Separate guest permissions from second-stage permissions.
  3. Track mappings, invalidation and object lifetime.
  4. Measure observability at each layer, not by intuition.
  5. If worlds collide, use a diagram before calling a meeting.

Perhaps these two worlds can coexist. Perhaps the guest can have its pages and the host can have its own translations. Perhaps I can stop treating nested paging as a personal attack.

Two worlds. One experiment. I still want custody of the original address.

Original sitcom-inspired parody and illustrations; no TV stills or reproduced dialogue. Back to all field notes →