# US 2014/0181360 A1 · Creating A Dynamic Address Translation With Translation Exception Qualifier

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

- Number: US 2014/0181360 A1
- Document ID: US20140181360A1
- Status: Published application
- Kind: A1
- Application number: 14/191,516
- Filed: 2014-02-27
- Published: 2014-06-26
- Earliest claimed: 2011-12-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dan F Greiner; Lisa C Heller; Damian L Osisek; Erwin Pfeffer
- Web page: https://patentgrep.com/patent/US20140181360A1

## CPC

- G06F 12/0284: {Multiple user address space allocation, e.g. using different base addresses (interprocessor communication G06F15/163)}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0667: {at data level, e.g. file, record or object virtualisation}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 12/10: Address translation
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1036: for multiple virtual address spaces, e.g. segmentation (G06F12/1045 takes precedence)
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/50: Control mechanisms for virtual memory, cache or TLB
- G06F 2212/652: Page size control
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An enhanced dynamic address translation facility product is created such that, in one embodiment, a virtual address to be translated and an initial origin address of a translation table of the hierarchy of translation tables are obtained. Dynamic address translation of the virtual address proceeds. In response to a translation interruption having occurred during dynamic address translation, bits are stored in a translation exception qualifier (TXQ) field to indicate that the exception was either a host DAT exception having occurred while running a host program or a host DAT exception having occurred while running a guest program. The TXQ is further capable of indicating that the exception was associated with a host virtual address derived from a guest page frame real address or a guest segment frame absolute address. The TXQ is further capable of indicating that a larger or smaller host frame size is preferred to back a guest frame.

## Claims

### Claim 1

A method for creating computer program product for qualifying a translation exception in a dynamic address translation (DAT) facility configured to translate a program address of a block of virtual memory into a translated address of a desired block of host main storage in a computer system, the method comprising:
storing on a storage medium, readable by said computer system, instructions configured to cause the computer system to translate the program address into an address of a desired block of main storage;
storing on the storage medium, readable by said computer system, instructions configured to cause the computer system, based on a translation exception event having occurred during said translating of the program address, to store a translation exception qualifier (TXQ) value to indicate whether the translation exception event relates to a host DAT exception or a guest DAT exception

### Claim 2 (depends on 1)

The method according to claim 1, wherein the computer system comprises a host machine and a guest virtual machine (VM), the guest VM being provisioned with virtual resources by a host program of the host machine, the host machine having host resources including host main storage, the guest VM comprising a guest operating system, the virtual resources comprising guest main storage, wherein the program address comprises a guest referenced address referenced by said guest program or a host referenced address referenced by said host program, the guest referenced address for determining a corresponding guest address of a block of guest main storage, wherein the instructions stored on the storage medium are configured to perform a method to translate the program address comprising:
based on the program address comprising the host referenced address, performing a host DAT comprising:
based on host DAT tables, dynamically translating the host referenced address to determine the address of the desired block of host main storage.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method to translate the program address further comprises:
based on the program address comprising the guest referenced address, performing a guest DAT comprising:
based on one or more of guest translation tables and host translation tables, dynamically translating the guest referenced address to determine the address of the desired block of host main storage; and
based on a translation exception event having occurred during said translating of the program address, creating the translation exception qualifier (TXQ) value to indicate whether said translation exception event relates to said host DAT exception, or said guest DAT exception.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the translation exception event is caused by dynamic address translation based on the host DAT tables, wherein responsive to the program address being the guest referenced address and the dynamically translating the guest referenced address being based on both the guest DAT tables and the host DAT performing:
based on the guest DAT tables, translating the guest referenced address to determine the guest address of the block of guest main storage and based on the host DAT tables, translating the guest address of the block of guest main storage to determine the host address of the desired block of host main storage, wherein the guest address of the block of guest main storage comprises any one of a guest page frame real address obtained from a guest page table entry, or a guest segment frame absolute address obtained from a guest segment table entry, the guest segment table entry having the guest segment frame absolute address and an enabled format control (FC) field, the page frame real address subject to prefixing to form a real address.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising storing on the storage medium, readable by said computer system, instructions configured to cause the computer system to store said TXQ value to indicate that said translation exception event was caused by said host referenced address encountering a host DAT exception, the TXQ value being a 0.

### Claim 6 (depends on 4)

The method according to claim 4, further comprising storing on the storage medium, readable by said computer system, instructions configured to cause the computer system to store said TXQ value to indicate that said translation exception event pertained to host DAT translation of a host virtual address derived from said guest referenced address, the host virtual address not being derived from the guest page table entry or the guest segment table entry comprising the enabled FC field, the TXQ value being a 1.

### Claim 7 (depends on 4)

The method according to claim 4, further comprising storing on the storage medium, readable by said computer system, instructions configured to cause the computer system to store said TXQ value to indicate that said DAT translation exception event pertained to host DAT translation of a host virtual address derived from said guest referenced address, the host virtual address comprising said guest page frame real address, the TXQ value being a 2.

### Claim 8 (depends on 4)

The method according to claim 4, further comprising storing on the storage medium, readable by said computer system, instructions configured to cause the computer system to store said TXQ value to indicate that said translation exception event pertained to host DAT translation of a host virtual address derived from said guest referenced address, the host virtual address comprising said guest segment frame absolute address, the TXQ value being a 3.

### Claim 9

A method for creating computer program product for qualifying a translation exception in a dynamic address translation (DAT) facility configured to translate a program address of a block of virtual memory into a translated address of a desired block of host main storage in a computer system, the method comprising:
creating a translator to translate the program address into an address of a desired block of main storage;
creating a translation exception store element to, based on a translation exception event having occurred during said translating of the program address, to store a translation exception qualifier (TXQ) value to indicate whether the translation exception event relates to a host DAT exception or a guest DAT exception

### Claim 10 (depends on 9)

The method according to claim 9, wherein the computer system comprises a host machine and a guest virtual machine (VM), the guest VM being provisioned with virtual resources by a host program of the host machine, the host machine having host resources including host main storage, the guest VM comprising a guest operating system, the virtual resources comprising guest main storage, wherein the program address comprises a guest referenced address referenced by said guest program or a host referenced address referenced by said host program, the guest referenced address for determining a corresponding guest address of a block of guest main storage, wherein the translator is configured to perform a method to translate the program address comprising:
based on the program address comprising the host referenced address, performing a host DAT comprising:
based on host DAT tables, dynamically translating the host referenced address to determine the address of the desired block of host main storage.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the method to translate the program address further comprises:
based on the program address comprising the guest referenced address, performing a guest DAT comprising:
based on one or more of guest translation tables and host translation tables, dynamically translating the guest referenced address to determine the address of the desired block of host main storage; and
based on a translation exception event having occurred during said translating of the program address, creating the translation exception qualifier (TXQ) value to indicate whether said translation exception event relates to said host DAT exception, or said guest DAT exception.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the translation exception event is caused by dynamic address translation based on the host DAT tables, wherein responsive to the program address being the guest referenced address and the dynamically translating the guest referenced address being based on both the guest DAT tables and the host DAT, wherein the translator is further configured to:
based on the guest DAT tables, translating the guest referenced address to determine the guest address of the block of guest main storage and based on the host DAT tables, translating the guest address of the block of guest main storage to determine the host address of the desired block of host main storage, wherein the guest address of the block of guest main storage comprises any one of a guest page frame real address obtained from a guest page table entry, or a guest segment frame absolute address obtained from a guest segment table entry, the guest segment table entry having the guest segment frame absolute address and an enabled format control (FC) field, the page frame real address subject to prefixing to form a real address.

### Claim 13 (depends on 12)

The method according to claim 12, wherein to store said TXQ value to indicate that said translation exception event was caused by said host referenced address encountering a host DAT exception, the TXQ value being a 0.

### Claim 14 (depends on 12)

The method according to claim 12, wherein the translation exception store element is further configured to store said TXQ value to indicate that said translation exception event pertained to host DAT translation of a host virtual address derived from said guest referenced address, the host virtual address not being derived from the guest page table entry or the guest segment table entry comprising the enabled FC field, the TXQ value being a 1.

### Claim 15 (depends on 12)

The method according to claim 12, wherein the translation exception store element is further configured to store said TXQ value to indicate that said DAT translation exception event pertained to host DAT translation of a host virtual address derived from said guest referenced address, the host virtual address comprising said guest page frame real address, the TXQ value being a 2.

### Claim 16 (depends on 12)

The method according to claim 12, wherein the translation exception store element is further configured to store said TXQ value to indicate that said translation exception event pertained to host DAT translation of a host virtual address derived from said guest referenced address, the host virtual address comprising said guest segment frame absolute address, the TXQ value being a 3.
