Computer virtualization apparatus and program and method therefor
AssigneeHitachi, Ltd.
InventorsSouichi Takashige, Tomoki Sekiguchi, Tomohide Hasegawa
Life of this patent
Estimating the term…
Abstract
A hypervisor prepares a guest region identifier (RID)-physical region identifier (RID) mapping table for dynamically registering and managing items and performs RID conversion using the guest RID-physical RID mapping table. When the mapping table is used, since it is unnecessary to provide a specific information area representing logical partitions (LPARs) corresponding to respective guests in an RID to be converted, there is no limitation concerning the number of LPARs and a problem in operation can be eliminated.
Claims6
A computer virtualization mechanism that causes an actual computer to simultaneously operate plural operating systems (OSs) to function as plural virtualized computers, the computer virtualization mechanism comprising:
- a mapping table for managing an association of identifiers of memory spaces on each of the virtualized computers (guest region identifiers (RIDs)) and identifiers used in the actual computer (physical RIDs);
- an RID converting section that converts the guest RIDs into the physical RIDs with emulation processing for substituting the guest RIDs as an opportunity with reference to the mapping table;
- and
- an RID table updating section that creates, when the association of the guest RIDs and the physical RIDs is not present in the mapping table, a new association of the guest RIDs and the physical RIDs and adds the new association to the mapping table,
- wherein
- the virtualized computer includes a shadow translation look-aside buffer (TLB) in which a reference result of the mapping table is used,
- the mapping table further includes an item indicating a number of registered entries for counting a number of the physical RIDs used in the shadow TLB,
- the RID table updating section is configured to:
- select an entry of the shadow TLB as an update object,
- execute a first search for an entry of the mapping table corresponding to the physical RID contained in the selected entry of the shadow TLB,
- reduce the number of registered entries of the entry of the mapping table obtained from the first search,
- in a case where the number of registered entries is 0, delete the entry of the mapping table from the mapping table, and
- in a case where the number of registered entries is not 0, execute a second search for another entry of the mapping table corresponding to a physical RID converted from a guest RID by the RID converting section, and increase the number of registered entries of the another entry of the mapping table obtained from the second search.
A computer virtualization method by a hypervisor for causing plural operating systems (OSs) to simultaneously run on an actual computer having one or more central processing unit and a memory, wherein the hypervisor forms a mapping table for managing association of identifiers of memory spaces on a virtualized computer (hereinafter, guest region identifiers (RIDs)) and identifiers used in the actual computer (hereinafter, physical RIDs), converts the guest RIDs into the physical RIDs corresponding thereto with emulation processing for substituting the guest RIDs as an opportunity with reference to the mapping table, and creates, when the association of the guest RIDs and the physical RIDs is not present, new association and adds the association in the mapping table wherein the virtualized computer includes a shadow TLB in which a reference result of the mapping table is used,
- the computer virtualization method performed by the hypervisor comprising:
- setting, in the mapping table, a number of registered entries for counting a number of the physical RIDs used in the shadow translation look-aside buffer (TLB);
- selecting an entry of the shadow TLB as an update object,
- executing a first search for an entry of the mapping table corresponding to the physical RID contained in the selected entry of the shadow TLB,
- reducing the number of registered entries of the entry of the mapping table obtained from the first search,
- in a case where the number of registered entries is 0, deleting the entry of the mapping table from the mapping table, and
- in a case where the number of registered entries is not 0, executing a second search for another entry of the mapping table corresponding to a physical RID converted from a guest RID by the RID converting section, and increasing the number of registered entries of the another entry of the mapping table obtained from the second search.
Dependencies are inferred from the claim text.