Memory Virtualization

Shadow Page Tables
Page Faults
Hardware Support for Nested Page Tables
Reclaiming Memory
Quiz
  1. For each virtual machine a hypervisor needs to create
    1. lottery scheduling
    2. clock driven interrupts
    3. hypervisor-induced page faults
    4. a shadow page table
  2. The problem with shadow page tables is
    1. they create lots of page faults
    2. the hypervisor itself doesn't know where pages really are in memory
    3. they suck up too much RAM
    4. they are illegal on Intel CPUs
  3. A hypervisor-induced page fault occurs when
    1. a page has been swapped to disk
    2. the shadow page table must be updated
    3. the hypervisor tries to access a page not in memory
    4. all of the above
  4. A VM exit is when
    1. the virtual machine crashes
    2. the hypervisor crashes
    3. the virtual machine is done working
    4. control returns to the hypervisor
  5. Deduplication is when
    1. some resources (like the Linux kernel) are shared between VMs
    2. duplicate files are removed from a disk drive
    3. duplicate pages are removed from a VMs memory
    4. duplicate VMs are removed from a hypervisor
Answers

1. d; 2. a; 3. b; 4. d; 5. a;