shadow page tables

  • Thread starter Thread starter Prasad
  • Start date Start date
P

Prasad

Hello All,

I have a question on usage of shadow page tables in virtualized
environment.

AMD processor with virtualization extension support use Address Space
Identifier (ASID) to identify a VM uniquely. The ASID is used to avoid
flushing of TLB entries when host OS switches from one VM to another.

So each TLB entry has two additional tagging information associated
with it ie. ASID and PID of a process.

Tagging the TLB allows a system to support multiple VMs without the
need to flush the TLB when switching
between tasks across VMs.

The Shadow Page Tables translate Guest Physical Memory to the Host
Physical Memory.

I can't understand why can't TLB entries itself translate from Guest
Virtual Memory Address to Host Physical Memory Address.

Why does a TLB translates from Guest Virtual Memory Address to Guest
Physical Memory Address?

Please clarify. Forgive me if I am not supposed to post this question
here.

Thanks and Regards,
Prasad
 
Back
Top