Translates

How to say it in other languages, and what words mean

Spanish

Second Level Address Translation (SLAT) Explained

· 6 min read · Spanish

In this article
  1. Background: Why SLAT Was Needed
  2. How SLAT Works: Two-Stage Translation
  3. SLAT vs. Shadow Paging: A Comparison
  4. How to Check if Your CPU Supports SLAT
  5. Common Problems and Misconceptions
  6. SLAT in Modern Virtualization and Security
  7. Frequently Asked Questions

Second Level Address Translation (SLAT) is a hardware virtualization feature built into modern CPUs that lets a hypervisor manage guest operating system memory without needing to shadow page tables in software. In plain terms, SLAT allows the hypervisor to keep two sets of address translations—one for the guest OS and one for the host—so that memory access from a virtual machine goes through a two-stage lookup directly in hardware. This removes a major performance bottleneck in virtualization and is a standard feature on Intel (EPT) and AMD (NPT) processors since around 2008.

Background: Why SLAT Was Needed

Before SLAT, hypervisors used a technique called shadow paging. In shadow paging, the hypervisor maintains a separate, shadow version of the guest's page tables that maps guest virtual addresses directly to host physical addresses. Every time the guest OS changes its page tables (which happens frequently during normal operation), the hypervisor must intercept the change and update the shadow tables. This causes many VM exits—transitions from the guest to the hypervisor—which are expensive in CPU cycles.

As virtualization became more common in the mid-2000s, the performance cost of shadow paging became a serious problem, especially for memory-intensive workloads. CPU vendors responded by adding hardware support for a second level of address translation. Intel introduced Extended Page Tables (EPT) with the Nehalem architecture in 2008, and AMD introduced Nested Page Tables (NPT) with the Barcelona architecture in 2007. Both achieve the same goal: letting the CPU handle guest-to-host memory mapping directly, eliminating most shadow paging overhead.

How SLAT Works: Two-Stage Translation

SLAT works by performing two address translations in sequence for every memory access from a virtual machine. The first stage translates the guest virtual address (GVA) to a guest physical address (GPA) using the guest's own page tables, which the guest OS manages normally. The second stage translates the GPA to a host physical address (HPA) using a separate set of page tables maintained by the hypervisor. These second-stage tables are called EPT (Intel) or NPT (AMD) tables.

Because the CPU handles both stages in hardware, the hypervisor no longer needs to intercept every page table update. The guest OS can change its page tables freely, and the CPU will automatically walk the second-stage tables to find the correct host physical address. This reduces the number of VM exits dramatically and improves performance, especially for workloads that allocate and free memory frequently.

Here is a simplified step-by-step of what happens when a virtual CPU accesses memory:

  1. The guest OS issues a memory access using a guest virtual address.
  2. The CPU walks the guest page tables (first stage) to find the guest physical address.
  3. The CPU then walks the EPT/NPT tables (second stage) to translate that guest physical address to a host physical address.
  4. The CPU accesses the actual host physical memory.

If either translation fails (a page fault), the CPU raises an exception that the hypervisor can handle, just as a normal OS handles page faults.

SLAT vs. Shadow Paging: A Comparison

The main difference between SLAT and shadow paging is where the translation happens. Shadow paging is software-based: the hypervisor maintains shadow page tables that map guest virtual addresses directly to host physical addresses. This requires trapping every modification to the guest's page tables, which is slow. SLAT is hardware-based: the CPU performs the two-stage translation itself, so the hypervisor only needs to set up the second-stage tables and rarely intervenes.

Here is a quick comparison:

  • Performance: SLAT is generally faster because it avoids most VM exits. Shadow paging can be faster in rare cases where the guest changes page tables extremely often, but SLAT wins in most real-world workloads.
  • Complexity: Shadow paging is simpler to implement in a hypervisor because it uses a single set of page tables. SLAT requires the hypervisor to manage a separate set of EPT/NPT tables.
  • Memory overhead: SLAT adds a small overhead for the second-stage page tables, but shadow paging also requires memory for shadow tables. In practice, SLAT's overhead is lower.
  • Compatibility: Shadow paging works on any CPU, even those without SLAT. SLAT requires a CPU with EPT or NPT support.

Most modern hypervisors (VMware, Hyper-V, KVM) use SLAT when available and fall back to shadow paging only on older CPUs.

How to Check if Your CPU Supports SLAT

You can check SLAT support in several ways, depending on your operating system:

  • Windows: Open Task Manager > Performance > CPU. Look for “Virtualization: Enabled” and “Second Level Address Translation: Enabled” (or “SLAT” in older versions). Alternatively, run systeminfo in Command Prompt and look for “Hyper-V Requirements” section.
  • Linux: Run grep -E "(ept|npt)" /proc/cpuinfo. If you see ept or npt in the flags, your CPU supports SLAT.
  • macOS: Apple's Hypervisor.framework requires SLAT; if you can run macOS VMs, your CPU supports it.

If your CPU does not support SLAT, you can still run virtual machines, but performance will be significantly lower, especially for memory-intensive workloads. Some hypervisors, like VirtualBox, may show a warning if SLAT is unavailable.

Common Problems and Misconceptions

One common misconception is that SLAT is the same as hardware-assisted virtualization (VT-x/AMD-V). That is not true. VT-x and AMD-V are the basic virtualization extensions that allow a hypervisor to run privileged instructions from the guest. SLAT is a separate feature that specifically accelerates memory translation. A CPU can have VT-x but not EPT (older Intel CPUs), or have both.

Another issue is that SLAT can be disabled in the BIOS/UEFI. Some motherboards have a setting called “VT-d” or “VT-x” that, when disabled, also disables EPT. If you see a hypervisor warning about SLAT, check your BIOS settings and ensure virtualization is fully enabled.

Also, SLAT is not a security feature per se, but it can improve security by making nested virtualization (running a hypervisor inside a VM) more practical. Nested virtualization requires SLAT for decent performance, which is why cloud providers enable it for their customers.

SLAT in Modern Virtualization and Security

SLAT is now a standard feature in all mainstream x86 CPUs, and it is also present in ARM processors (via Stage-2 translation). It is essential for modern hypervisors like VMware ESXi, Microsoft Hyper-V, and KVM. It also enables features like Hyper-V's Virtualization-Based Security (VBS) and Windows Defender Credential Guard, which isolate security-critical processes in a virtualized environment. Without SLAT, these features would be too slow to use.

SLAT also plays a role in mitigating certain attacks, such as those that attempt to modify page tables to gain privilege escalation. Because the hypervisor controls the second-stage tables, it can prevent a compromised guest from modifying its own memory mappings to access host memory.

Frequently Asked Questions

Does SLAT work with all hypervisors?

Yes, all major hypervisors (VMware, Hyper-V, KVM, VirtualBox) support SLAT. They automatically use it when the CPU supports it, and fall back to shadow paging if not.

Can I enable SLAT if my CPU doesn't support it?

No, SLAT is a hardware feature. If your CPU does not have EPT (Intel) or NPT (AMD), you cannot enable it. You would need to upgrade your CPU or motherboard.

Does SLAT affect gaming performance in a VM?

Yes, SLAT can improve gaming performance in virtual machines because it reduces memory translation overhead. However, other factors like GPU passthrough and CPU cores also play a bigger role.

Is SLAT the same as IOMMU (VT-d/AMD-Vi)?

No. IOMMU is for device memory access (like GPU or network cards), while SLAT is for CPU memory access. They are separate features, though both are often grouped under “virtualization” in BIOS settings.

Why does Windows say “SLAT is not present” even though my CPU supports it?

This usually happens when virtualization is disabled in the BIOS/UEFI. Enable VT-x/AMD-V and EPT/NPT in your BIOS, then restart. Also, ensure that Hyper-V is not conflicting with other virtualization software.