pub fn compute_variable_mtrrs(
memory: &MemoryLayout,
physical_address_width: u8,
) -> Result<Vec<X86Register>, UnsupportedMmio>
Expand description
Computes the x86 variable MTRRs that describe the given memory layout. This is intended to be used to setup MTRRs for booting a guest with two mmio gaps, such as booting Linux, UEFI, or PCAT.
N.B. Currently this panics if there are not exactly two MMIO ranges.