简体   繁体   中英

How does a Hypervisor distinguish multiple VMs running on it and isolate them from the underlying h/w?

How does a Hypervisor distinguish multiple VMs running on it and isolate them from the underlying h/w? eg if there is a system call from with in a guest OS, how does the HV know it belongs to a specific guest OS? Not much details about lower details of HV operation.

A normal system call in a guest is processed by the guest OS without intervention of the hypervisor.

However, when the guest does cause a trap to the hypervisor (not a system call, but some other operation that requires hypervisor service), the hypervisor knows which guest it is because it knows which guest it scheduled on that CPU.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM