发明名称 | Virtual machine-guest driven state restoring by hypervisor | ||
摘要 | An example method of saving and restoring a state of one or more registers for a guest includes detecting exit of a virtual machine mode of a guest running on a virtual machine. A set of registers is accessible by the guest and includes a first subset of registers and a second subset of registers. The method also includes identifying the first subset of registers. The first subset of registers includes one or more registers to be overwritten by the guest upon re-entry of the virtual machine mode. The second subset of registers is mutually exclusive from the first subset of registers. The method further includes after detecting exit of the virtual machine mode of the guest, detecting re-entry of the virtual machine mode of the guest. The method also includes restoring a saved state of the second subset of registers for the guest. | ||
申请公布号 | US9304874(B2) | 申请公布日期 | 2016.04.05 |
申请号 | US201414171634 | 申请日期 | 2014.02.03 |
申请人 | Red Hat Israel, Ltd. | 发明人 | Tsirkin Michael;Kr{hacek over (c)}má{hacek over (r)} Radim |
分类号 | G06F9/455;G06F11/14 | 主分类号 | G06F9/455 |
代理机构 | Haynes and Boone, LLP | 代理人 | Haynes and Boone, LLP |
主权项 | 1. A method of saving and restoring a state of one or more registers for a guest running on a virtual machine, comprising: detecting exit of a virtual machine mode of a guest running on a virtual machine, the virtual machine executable on a host, wherein a set of registers is accessible by the guest and includes a first subset of registers and a second subset of registers; identifying the first subset of registers, the first subset of registers including one or more registers to be overwritten by the guest upon re-entry of the virtual machine mode, and the second subset of registers being mutually exclusive from the first subset of registers; after detecting exit of the virtual machine mode of the guest, detecting re-entry of the virtual machine mode of the guest; and restoring a saved state of the second subset of registers for the guest, wherein no registers of the first subset of registers are restored in response to the detected re-entry. | ||
地址 | Ra'Anana IL |