Patent ID: 11880704
Assignee: RED HAT, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method comprising:
receiving a request to link a first virtual machine as a nested guest within a second virtual machine;
determining whether the second virtual machine is encrypted and the first virtual machine is targeted to be encrypted;
in response to determining that the second virtual machine is encrypted and the first virtual machine is targeted to be encrypted, linking, by a hypervisor executing on a processing device, the first virtual machine as a nested guest within the second virtual machine during creation of the first virtual machine;
identifying a context of the second virtual machine;
providing, to a context of the first virtual machine, a parent context pointer indicating the context of the second virtual machine;
detecting a privileged instruction at the first virtual machine; and
in response to detecting the privileged instruction, exiting from the context of the first virtual machine and switching to the context of the second virtual machine using the parent context pointer instead of switching to the hypervisor.