Hacker News new | past | comments | ask | show | jobs | submit login

Off the top of my head: the VM executes either HLT or MWAIT, and those instructions are generally programmed to cause a VM exit, so the hypervisor can take action. The hypervisor will deschedule the VM and possibly go idle itself.

TBH, I have no idea how MONITOR works in a VM. It might be quite messy.

Edit: Here's a really nice explanation: http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/mwait.html




Does it reinitiate VM execution by waiting for the hypervisor to be scheduled again which schedules out to its constituent vms?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: