# US 9,354,873 B2 · Performing a clear operation absent host intervention

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,873 B2
- Document ID: US9354873B2
- Status: Granted
- Kind: B2
- Application number: 14/994,337
- Filed: 2016-01-13
- Published: 2016-05-05
- Granted: 2016-05-31
- Earliest claimed: 2008-02-25
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Charles W. Gainey, Jr.; Dan F. Greiner; Lisa C. Heller; Damian L. Osisek; Gustav E. Sittmann, III
- Web page: https://patentgrep.com/patent/US9354873B2

## CPC

- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0605: {by facilitating the interaction with a user or administrator}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/0673: {Single storage device}
- G06F 9/30003: {Arrangements for executing specific machine instructions}
- G06F 9/30098: {Register arrangements}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/45537: {Provision of facilities of other operating environments, e.g. WINE (I/O emulation G06F13/105)}
- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/023: {Free address space management}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/12: Replacement control
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1041: Resource optimization
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F 2212/656: Address space sharing
- G06F 2212/657: Virtual address space management
- G06F 2212/70: Details relating to dynamic memory management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Optimizations are provided for frame management operations, including a clear operation and/or a set storage key operation, requested by pageable guests. The operations are performed, absent host intervention, on frames not resident in host memory. The operations may be specified in an instruction issued by the pageable guests.

## Claims

### Claim 1

A method of executing an instruction, the method comprising:
executing, by a guest processor, a perform frame management function (PFMF) instruction, the PFMF instruction comprising an address for locating a guest frame and a frame management function indication, the frame management function indication specifying at least one of a clear frame control or a set key control, the executing comprising:
determining, based on the frame management function indication specifying the clear frame control, whether the guest frame is assigned to host memory;
based on determining the guest frame is assigned to host memory, clearing the guest frame; and
based on determining the guest frame is not assigned to host memory, performing one of generating a translation exception or logically clearing the guest frame.

### Claim 2 (depends on 1)

The method of claim 1, further comprising performing the logically clearing the guest frame, the logically clearing comprising one of:
associating an already cleared host frame with the guest frame; or
marking the guest frame as logically cleared.

### Claim 3 (depends on 2)

The method of claim 2, wherein the PFMF instruction further comprises a usage indicator indicating a usage intent characteristic for the guest frame.

### Claim 4 (depends on 3)

The method of claim 3, wherein the logically clearing the guest frame comprises determining whether the usage indicator indicates the guest frame is likely to be used in the near future, and wherein the method further comprises:
based on the guest frame being likely to be used in the near future, associating an already cleared host frame with the guest frame; and
based on the guest frame not being likely to be used in the near future, marking the guest frame as logically cleared.

### Claim 5 (depends on 3)

The method of claim 3, wherein the usage indicator is included within a general register specified by the PFMF instruction.

### Claim 6 (depends on 2)

The method of claim 2, wherein based on marking the guest frame as logically cleared, the method further includes:
setting an indicator in a page status table entry corresponding to a host page associated with the guest frame to one; and
placing a guest address of the host page onto a backing reclaim log.

### Claim 7 (depends on 6)

The method of claim 6, wherein at least one of the setting and placing is performed absent host intervention.

### Claim 8 (depends on 1)

The method of claim 1, wherein the frame management function indication further specifies the set key control, the set key control to indicate a storage key is to be set, and wherein the method further comprises setting the storage key.

### Claim 9 (depends on 8)

The method of claim 8, wherein the storage key is set using information in a general register specified by the PFMF instruction.

### Claim 10 (depends on 1)

The method of claim 1, wherein the PFMF instruction further comprises a frame size code to indicate a size of the guest frame.

### Claim 11

A computer program product for executing an instruction, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
executing, by a guest processor, a perform frame management function (PFMF) instruction, the PFMF instruction comprising an address for locating a guest frame and a frame management function indication, the frame management function indication specifying at least one of a clear frame control or a set key control, the executing comprising:
determining, based on the frame management function indication specifying the clear frame control, whether the guest frame is assigned to host memory;
based on determining the guest frame is assigned to host memory, clearing the guest frame; and
based on determining the guest frame is not assigned to host memory, performing one of generating a translation exception or logically clearing the guest frame.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the method further comprises performing the logically clearing the guest frame, the logically clearing comprising one of:
associating an already cleared host frame with the guest frame; or
marking the guest frame as logically cleared.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the PFMF instruction further comprises a usage indicator indicating a usage intent characteristic for the guest frame.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the logically clearing the guest frame comprises determining whether the usage indicator indicates the guest frame is likely to be used in the near future, and wherein the method further comprises:
based on the guest frame being likely to be used in the near future, associating an already cleared host frame with the guest frame; and
based on the guest frame not being likely to be used in the near future, marking the guest frame as logically cleared.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the frame management function indication further specifies the set key control, the set key control to indicate a storage key is to be set, and wherein the method further comprises setting the storage key.

### Claim 16

A computer system for executing an instruction, the computer system comprising:
a memory; and
a processor in communications with the memory, wherein the computer system is configured to perform a method, said method comprising:
executing, by a guest processor, a perform frame management function (PFMF) instruction, the PFMF instruction comprising an address for locating a guest frame and a frame management function indication, the frame management function indication specifying at least one of a clear frame control or a set key control, the executing comprising:
determining, based on the frame management function indication specifying the clear frame control, whether the guest frame is assigned to host memory;
based on determining the guest frame is assigned to host memory, clearing the guest frame; and
based on determining the guest frame is not assigned to host memory, performing one of generating a translation exception or logically clearing the guest frame.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the method further comprises performing the logically clearing the guest frame, the logically clearing comprising one of:
associating an already cleared host frame with the guest frame; or
marking the guest frame as logically cleared.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein the PFMF instruction further comprises a usage indicator indicating a usage intent characteristic for the guest frame.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the logically clearing the guest frame comprises determining whether the usage indicator indicates the guest frame is likely to be used in the near future, and wherein the method further comprises:
based on the guest frame being likely to be used in the near future, associating an already cleared host frame with the guest frame; and
based on the guest frame not being likely to be used in the near future, marking the guest frame as logically cleared.

### Claim 20 (depends on 16)

The computer system of claim 16, wherein the frame management function indication further specifies the set key control, the set key control to indicate a storage key is to be set, and wherein the method further comprises setting the storage key.
