Software Archive
Read-only legacy content
17061 Discussions

values of genral purpose registers

hamedn
Beginner
478 Views
hi my friends
when transitioning from a VM to the VMM, where are values of genral purpose registers stored ?
sincerely u
0 Kudos
1 Solution
hellfire
New Contributor I
478 Views
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.

View solution in original post

0 Kudos
1 Reply
hellfire
New Contributor I
479 Views
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.

0 Kudos
Reply