简体   繁体   English

系统管理程序如何区分在其上运行的多个VM并将它们与基础硬件隔离?

[英]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? 系统管理程序如何区分在其上运行的多个VM并将它们与基础硬件隔离? 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? 例如,如果在来宾OS中有来自的系统调用,HV如何知道它属于特定的来宾OS? Not much details about lower details of HV operation. 关于HV操作的较低细节,没有太多细节。

A normal system call in a guest is processed by the guest OS without intervention of the hypervisor. 来宾中的正常​​系统调用由来宾OS处理,而无需管理程序的干预。

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. 但是,当guest虚拟机确实造成了对管理程序的陷阱(不是系统调用,而是其他需要管理程序服务的操作)时,hypervisor知道它是哪个guest虚拟机,因为它知道在该CPU上调度了哪个guest虚拟机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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