To support multiple virtual machines, two levels of memory virtualization are needed. Each virtual machine still controls

Question:

To support multiple virtual machines, two levels of memory virtualization are needed. Each virtual machine still controls the mapping of virtual address (VA) to physical address (PA), while the hypervisor maps the physical address (PA) of each virtual machine to the actual machine address (MA). To accelerate such mappings, a soft ware approach called €œshadow paging€ duplicates each virtual machine€™s page tables in the hypervisor, and intercepts VA to PA mapping changes to keep both copies consistent. To remove the complexity of shadow page tables, a hardware approach called nested page table (NPT) explicitly supports two classes of page tables (VA ‡’ PA and PA ‡’ MA) and can walk such tables purely in hardware.
Consider the following sequence of operations: (1) Create process; (2) TLB miss; (3) page fault; (4) context switch;

1. What would happen for the given operation sequence for shadow page table and nested page table, respectively?

2. Assuming an x86-based 4-level page table in both guest and nested page table, how many memory references are needed to service a TLB miss for native vs. nested page table?

3. Among TLB miss rate, TLB miss latency, page fault rate, and page fault handler latency, which metrics are more important for shadow page table? Which are important for nested page table?

Assume the following parameters for a shadow paging system.

Page Faults per TLB Misses per 1000 Instructions NPT TLB Miss Shadowing Page 1000 Instructions Latency Fault Overhead 20

4. For a benchmark with native execution CPI of 1, what are the CPI numbers if using shadow page tables vs. NPT (assuming only page table virtualization overhead)?

5. What techniques can be used to reduce page table shadowing induced overhead?

6. What techniques can be used to reduce NPT induced overhead?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: