values of genral purpose registers

values of genral purpose registers

hi my friends
when transitioning from a VM to the VMM, where are values of genral purpose registers stored ?
sincerely u

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply

Quoting - hamedn
hi my friends
when transitioning from a VM to the VMM, where are values of genral purpose registers stored ?
sincerely u

Most VMM implementations push them onto stack. When VM exit commits, RSP is loaded with HOST_RSP field of VMCS. It is safe to push general purpose registers there.
You can look at VMM sources (KVM, XEN, Virtual Box) for details.

Login to leave a comment.