Inaccessible prefix page while virtual machine is running

By determining and managing the accessibility of prefix pages during virtual machine execution, the method addresses the challenge of secure virtual machine memory management, ensuring secure and efficient processing.

JP2024533985AActive Publication Date: 2024-09-18INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024507888
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-30
Filing Date
2022-08-25
Publication Date
2024-09-18
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

In computing environments with virtual machines, particularly secure virtual machines, managing prefix pages is challenging for hypervisors due to the need to keep them pinned in memory, which complicates memory management and security, especially when dynamic translations are required.

Method used

A method and system that facilitate processing by determining the accessibility of prefix pages during virtual machine execution, terminating execution if they are not accessible, and performing specific actions based on the type of access, such as implicit or explicit, to manage and secure the virtual machine's memory regions.

Benefits of technology

This approach ensures secure and efficient management of prefix pages, maintaining security and performance by preventing unauthorized access and allowing hypervisors to keep prefix pages accessible, thus enhancing the overall processing efficiency and security of virtual machines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024533985000001
    Figure 2024533985000001
Patent Text Reader

Abstract

The virtual machine is dispatched and based on the dispatch, a determination is made as to whether a selected region of memory accessible by the virtual machine and expected to be used in communications between the virtual machine and the operating system is accessible by the virtual machine. Based on a determination that the selected region of memory is not accessible by the virtual machine, execution of the virtual machine is terminated along with the selected interception code.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] One or more aspects relate generally to facilitating processing within a computing environment, and in particular to improving such processing. [Background technology]

[0002] Computing environments often include a selected region of memory used by a machine or program to communicate with the operating system. This region of memory is sometimes called a prefix page, and in one example, includes 8K (kilobytes) of memory. The memory is defined as real memory and no dynamic translation is required for access. These pages contain a set of predefined, assigned storage locations. Each virtual processor in an operating system configuration has a unique prefix value. This prefix value maps the assigned real storage locations to absolute addresses used only by that processor. Pages of memory may be accessed explicitly or implicitly during program execution. Explicit access occurs due to the execution of certain instructions, such as the Call Supervisor instruction or the Store Function List instruction defined in the z / Architecture® Instruction Set Architecture provided by International Business Machines Corporation. Implicit accesses occur due to conditions outside the scope of instruction execution, including designed interrupts such as machine checks, external interrupts, and input / output (I / O) interrupts, or program interrupts that occur during instruction execution as a side effect of a store or due to the abnormal completion of a transaction.

[0003] For example, when a program exception is detected by the machine, the machine stores information about the program exception in the prefix page. This information includes the current program status word (PSW) and instruction address of the running program (called the program's old PSW), the type of program exception that occurred (program interrupt code), and information about the exception, such as the memory address, addressing mode, etc. In addition, the machine retrieves the program status word and instruction address of the software program interrupt handler (also known as the program's new PSW) and uses it to start the execution of the program interrupt handler in the operating system. After handling the program exception, the operating system restores the program's old PSW and resumes the execution of the original program. In addition, in one example, when a memory transaction occurs in a guest, the guest's prefix page is also stored with diagnostic information.

[0004] In a computing environment that supports virtualization, a virtual machine (guest) prefix page is mapped to and accessible by the virtual machine. For a virtual machine running as a guest of a hypervisor (or host), the guest prefix page is accessed as a real page, but there may be a hypervisor translation that provides virtualization at the hypervisor level and maps the guest real page to absolute storage on the host.

[0005] In a standard hypervisor implementation, the virtual machine prefix pages are known to the hypervisor. The hypervisor is responsible for pinning these pages in memory and keeping their host translation valid for the duration of the guest execution. Pinning the virtual machine prefix pages is tricky for the hypervisor because it makes it difficult to change the memory management scheme to prevent paging out the guest prefix pages. Running secure virtual machines further complicates the hypervisor's memory management. In this case, for security reasons, the hypervisor will not be able to access prefix pages belonging to a secure guest, even if the prefix pages are still mapped from their dynamic hardware translation. This prevents an untrusted hypervisor from affecting and accessing the guest's data.

[0006] Processing related to virtual machines, including secure virtual machines, and the use of prefix pages should be facilitated. Summary of the Invention

[0007] The shortcomings of the prior art are overcome and additional advantages are provided by the provision of a computer program product for facilitating processing within a computing environment. The computer program product includes one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media for performing a method. The method includes determining, based on a dispatch of the virtual machine, whether a selected region of memory accessible by the virtual machine and expected to be used in communications between the virtual machine and the operating system is accessible by the virtual machine. Based on a determination that the selected region of memory is not accessible by the virtual machine, execution of the virtual machine is terminated along with the selected interception code. In this manner, processing is facilitated by preventing execution of guest instructions when the selected region of memory expected to be accessible is not accessible.

[0008] In one example, one or more guest instructions of the virtual machine are executed based on a determination that the selected region of memory is accessible by the virtual machine.

[0009] In one example, based on the determination that the selected region of memory is accessible, a determination is made as to whether there will be an access to the selected region of memory for the virtual machine guest instruction. Based on the determination that there will be an access, a check is made as to whether the access is an explicit access or an implicit access. Based on whether the access is an explicit access or an implicit access, one or more actions are performed.

[0010] Selected regions of memory that are expected to be accessible are re-checked for accessibility to facilitate processing. One or more aspects address a situation in which the hypervisor is unable to keep selected regions (e.g., prefix pages) of a guest's (e.g., virtual machine) memory pinned for the duration of the guest's execution.

[0011] As an example, based on the access being an implicit access, the one or more actions may include, for example, determining a reason for the implicit access and performing one or more selected actions based on the reason for the implicit access.

[0012] In one example, based on the reason for the implicit access being an asynchronous interrupt, the one or more selected actions include, for example, performing a pre-test of the selected area of ​​memory and determining whether an exception occurred during the pre-test of the selected area of ​​memory. By way of example, based on a determination that an exception occurred during the pre-test of the selected area of ​​memory, an asynchronous interrupt is kept pending in the virtual machine and there is a termination of the virtual machine back to the host with the selected interception code.

[0013] In one example, based on the reason for the implicit access being a program interruption, the one or more selected actions include determining whether the program interruption is for accessing the selected region of memory and performing a pre-test of the selected region of memory based on a determination that the program interruption is for accessing the selected region of memory. In one example, a determination is made as to whether an exception occurred during the pre-test of the selected region of memory and an action is performed based on whether an exception occurred during the pre-test of the selected region of memory.

[0014] In one example, performing the process includes continuing instruction processing based on a determination that an exception did not occur during the pre-testing of the selected region of memory. In one example, performing the process includes checking whether the guest instruction is executed as part of a transactional execution based on the check indicating that the guest instruction is executed as part of a transactional execution, execution of the virtual machine is terminated with the selected interception code and the transactional execution is aborted. In one example, based on the check indicating that the guest instruction is not executed as part of a transactional execution, a type of the exception is determined and one or more selected actions are performed based on the type of the exception.

[0015] By way of example, based on the type of the exception being an invalid exception or a suppress exception, the one or more selected actions include invalidating the guest instruction. Further, in one example, based on the type of the exception being a completion exception or an early specification exception, the one or more selected actions include saving the interrupt information in a secure location, locking the virtual machine for the exception, and terminating execution of the virtual machine with the selected interception code.

[0016] In one example, upon the next start of the virtual machine, the virtual machine's lock is checked and, based on the lock being set, program exception handling is completed by locking it.

[0017] Processing is facilitated by determining the cause / condition of termination and taking action accordingly.

[0018] Computer-implemented methods and systems relating to one or more aspects are also described and claimed herein. Additionally, services relating to one or more aspects may also be described and claimed herein.

[0019] Additional features and advantages are realized by the techniques described herein.Other embodiments and aspects are described in detail herein and are considered a part of the claimed aspects.

[0020] One or more aspects are particularly pointed out and distinctly claimed as examples in the claims at the end of this specification. The foregoing, as well as objects, features, and advantages of the one or more aspects, will become apparent from the following detailed description taken in conjunction with the accompanying drawings. [Brief description of the drawings]

[0021] [Figure 1] FIG. 1 illustrates an example of a computing environment for incorporating and using one or more aspects of the present invention. [Diagram 2] FIG. 2 illustrates an example of a control block used in initiating a virtual machine, including a secure virtual machine, in accordance with one or more aspects of the present invention. [Figure 3A] 1 illustrates an example of a prefix access process associated with running a virtual machine in accordance with one or more aspects of the present invention. [Figure 3B] 1 illustrates an example of a prefix access process associated with running a virtual machine in accordance with one or more aspects of the present invention. [Figure 4A] FIG. 1 illustrates an example that facilitates processing in a computing environment in accordance with one or more aspects of the present invention. [Figure 4B] FIG. 1 illustrates an example that facilitates processing in a computing environment in accordance with one or more aspects of the present invention. [Figure 4C] FIG. 1 illustrates an example that facilitates processing in a computing environment in accordance with one or more aspects of the present invention. [Figure 5A] FIG. 1 illustrates another example of a computing environment for incorporating and using one or more aspects of the present invention. [Figure 5B]5B illustrates further details of the memory of FIG. 5A in accordance with one or more aspects of the present invention. [Figure 6] FIG. 1 illustrates one embodiment of a cloud computing environment in accordance with one or more aspects of the present invention. [Figure 7] FIG. 2 illustrates an example of an abstract model layer in accordance with one or more aspects of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] In accordance with one or more aspects of the present invention, capabilities are provided for facilitating processing within a computing environment, including selective processing performed during execution of a virtual machine based on accessibility of selected regions of memory (e.g., prefix pages).

[0023] One embodiment of a computing environment for incorporating and using one or more aspects of the present invention is described with reference to FIG. 1. By way of example, the computing environment is based on the z / Architecture® instruction set architecture provided by International Business Machines Corporation (Armonk, NY). One embodiment of the z / Architecture instruction set architecture is described in “z / Architecture Principles of Operation,” IBM Publication No. SA22-7832-12, Thirteenth Edition, September 2019, which is incorporated herein by reference in its entirety. However, the z / Architecture instruction set architecture is only one exemplary architecture, and other architectures or types of computing environments or both of International Business Machines Corporation or other entities may include and / or use one or more aspects of the present invention. z / Architecture and IBM are trademarks or registered trademarks of International Business Machines Corporation in at least one jurisdiction.

[0024] Referring to FIG. 1, in one example, a computing environment 100 includes a central processor complex (CPC) 102. The central processor complex 102 may be, for example, an IBM Z® server (or other server or machine provided by International Business Machines Corporation or another entity) and may include multiple components, such as, for example, one or more processor units (also referred to as processors) 110 and memory 104 (also referred to as system memory, main memory, primary storage, central storage, storage) coupled to an input / output (I / O) subsystem 111. Examples of processor units 110 include one or more general purpose processors (also known as central processors or central processing units (CPUs)) and / or one or more other processors. IBM Z is a trademark or registered trademark of International Business Machines Corporation in at least one jurisdiction.

[0025] The I / O subsystem 111 may be part of a central processor complex or may be separate from the central processor complex. The I / O subsystem 111 directs the flow of information between main memory 104 and the input / output control unit 108 and input / output (I / O) devices 106 coupled to the central processor complex.

[0026] Many types of I / O devices may be used. One particular type is a data storage device 140. The data storage device 140 may store one or more programs 142, one or more computer readable program instructions 144, or data, or a combination thereof, etc. The computer readable program instructions may be configured to perform the functions of an embodiment of an aspect of the present invention.

[0027] Central processing unit complex 102 may include and / or be coupled to removable / non-removable, volatile / non-volatile computer system storage media. For example, central processing unit complex 102 may include and / or be coupled to non-removable, non-volatile magnetic media (commonly referred to as "hard drives"), magnetic disk drives for reading from and writing to removable, non-volatile magnetic disks (e.g., "floppy disks"), and / or optical disk drives for reading from and writing to removable, non-volatile optical disks, such as CD-ROMs, DVD-ROMs, or other optical media. It should be understood that other hardware and / or software components may be used with central processing unit complex 102, including, but not limited to, microcode or millicode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.

[0028] Additionally, central processing unit complex 102 may operate in numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, or configurations, or combinations thereof, that may be suitable for use with central processing unit complex 102 include, but are not limited to, personal computer (PC) systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, microcomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of these systems or devices.

[0029] Central processing unit complex 102, in one or more embodiments, supports virtualization in which, for example, memory 104 includes one or more virtual machines 112 (also referred to as guests), a virtual machine manager such as hypervisor 114 that manages the virtual machines, trusted execution environment 115, and processor firmware 116. One example of hypervisor 114 is the z / VM® hypervisor offered by International Business Machines Corporation of Armonk, New York. A hypervisor may be referred to as a host. z / VM is a trademark or registered trademark of International Business Machines Corporation in at least one jurisdiction.

[0030] In one or more embodiments, the trusted execution environment 115 may be implemented at least in part in hardware and / or firmware configured to execute processes, for example, as described herein. The trusted execution environment is a trusted firmware (sometimes called an ultravisor) and / or hardware that utilizes memory protection hardware to enforce memory protection. The owner of the guest can securely pass information to the trusted execution environment (e.g., using IBM Secure Execution) by using a public host key embedded in a host key document. To process sensitive information, the trusted execution environment uses a matching private host key. The private host key is specific to the server (e.g., an IBM Z® server) and is hardware protected.

[0031] Processor firmware 116 may include, for example, the microcode or millicode of the processor. Processor firmware 116 may include, for example, hardware level instructions and / or data structures used in implementing higher level machine code. In one embodiment, processor firmware 116 may include, for example, microcode or millicode that includes trusted software, proprietary code that is typically provided as microcode or millicode specific to the underlying hardware and that controls operating system access to the system's hardware.

[0032] The virtual machine support of the central processor complex provides the ability to operate multiple virtual machines 112, each of which can operate with a different program 120 and run a guest operating system 122, such as the Linux® operating system. Each virtual machine 112 can function as a separate system; that is, each virtual machine can be reset independently, run a guest operating system, and operate with different programs. An operating system or application program running within a virtual machine appears to have access to the entire complete system, but in fact only a portion of it is available. Although z / VM and Linux are provided as examples, other virtual machine managers and / or operating systems may be used in accordance with one or more aspects of the present invention. The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, an exclusive licensee of Linus Torvalds, owner of the trademark on a worldwide basis.

[0033] In one embodiment, one or more virtual machines 112 are secure virtual machines. The secure virtual machines are started by a hypervisor (e.g., hypervisor 114) in a manner that does not allow the hypervisor to observe the state (e.g., memory, registers, etc.) of the secure virtual machine. For example, in one embodiment of confidential computing, the hypervisor can start / stop the secure virtual machine, and the hypervisor identifies where the data used to start the secure virtual machine is, but cannot see inside the running secure virtual machine. The data used to load / start the secure virtual machine may be encrypted in a manner that does not allow the hypervisor to see into the secure machine. The owner of the secure virtual machine image places the sensitive data in the secure guest metadata and then generates the secure virtual machine image along with the secure guest metadata. After the secure virtual machine is loaded, all interactions with the state of the secure virtual machine are handled by a trusted execution environment, such as trusted execution environment 115.

[0034] In one example, referring to FIG. 2, to start a secure virtual machine, a hypervisor (e.g., hypervisor 114) issues a start virtual machine instruction 200, such as an interpretive execution start instruction, to be executed by a trusted entity (e.g., ultravisor). As an example, the start virtual machine instruction 200 includes an operand that points to a control block (e.g., a non-secure state description 202 that includes an interface between a host (e.g., hypervisor 114) and a virtual machine). As an example, the non-secure state description 202 includes a secure indicator 204 that indicates whether the virtual machine being started is a secure virtual machine. For example, if the secure indicator 204 is set, for example, to 1, the virtual machine is a secure virtual machine (if the secure indicator 204 is set, for example, to 0, the virtual machine is a non-secure virtual machine). Furthermore, the non-secure state description 202 includes a secure execution identification 206 and a pointer, called a secure state description pointer 210, that points to another control block (secure state description 220). The secure state description 220 includes sensitive data of the secure virtual machine that should not be seen by the hypervisor. In one example, the secure state description 220 also includes a pointer 230 to the non-secure state description 202 (if the virtual machine being started is a non-secure virtual machine, in one example, the secure state description is not pointed to or used).

[0035] Based on executing a virtual machine start instruction for a secure virtual machine, the trusted entity loads the secure virtual machine into the hardware, and when the start instruction is completed, the virtual machine is securely running on the hardware. During the duration of execution of the secure virtual machine or the non-secure virtual machine, the selected region of memory (e.g., the prefix page) should be accessible by the virtual machine. That is, the host mapping is valid, the associated host absolute address can be obtained, and the page can be accessed. However, this cannot be assumed. Thus, a check is performed during the execution of the virtual machine, and if the selected region of memory is not accessible, certain actions are taken. One embodiment of this process is described with reference to Figures 3A-3B.

[0036] In one example, referring to FIG. 3A, a hypervisor (e.g., hypervisor 114) dispatches a virtual machine (300). Based on this dispatch, in one example, processing is performed by a trusted entity (e.g., ultravisor). For example, a determination is made as to whether a selected region of memory that is expected to be accessible is actually accessible. In one example, the selected region of memory is a prefix page, and thus, a determination is made as to whether the prefix page is accessible (302). If the prefix page is not accessible, execution of the virtual machine is terminated (304) with the selected interception code (e.g., code 112) in accordance with an aspect of the present invention. However, if the prefix page is accessible, one or more guest instructions of the virtual machine may be executed (306).

[0037] During execution of the guest instruction, if the prefix page is not accessed (e.g., no prefix access is required) (308), guest instruction processing continues. However, if the prefix page is accessed (308), a determination is made (e.g., by a trusted entity) as to whether the access is explicit, i.e., an access resulting from execution of a particular instruction (310). If the access is explicit, the page is accessed and, if an exception occurs during the page access, an exception is reported (312). However, if the access is an implicit access (314), then a determination is made (e.g., by a trusted entity) as to the reason for the access (316).

[0038] If the reason for the prefix page access is an asynchronous interrupt (e.g., an I / O interrupt, an external interrupt, etc.) (318), then a preliminary test of the prefix page being accessed (e.g., by a trusted entity) is performed (320). If the preliminary test indicates an exception (322), then the interrupt is kept pending in the virtual machine and there is a virtual machine exit back to the host with the selected interception code (324). However, if there is no exception from the preliminary test (322), then an asynchronous interrupt is presented to the virtual machine (326) and the virtual machine continues to run (328).

[0039] Returning to 316, if the reason for the access is a program interrupt (330), then a further determination is made (332) as to whether the interrupt is to access a prefix page (e.g., the interrupt requires a prefix access). If the interrupt is not to access a prefix page, processing proceeds normally (334). However, if the interrupt is to access a prefix page (332), then a preliminary test of the prefix page being used is performed (336) (e.g., by a trusted entity). If there is no exception during the preliminary test (338), then processing proceeds normally (334). However, if there is an exception during the preliminary test (338), then a determination is made (340) as to whether the instruction is being executed as part of a transaction execution (e.g., between a transaction start instruction and a transaction end instruction). If the instruction is being executed as part of a transactional execution, then in accordance with an aspect of the present invention, the virtual machine is terminated with the selected interception code, the transaction is aborted, and an exception is reported to the host (e.g., hypervisor) (342).

[0040] On the other hand, if the instruction is not being executed as part of the transactional execution (340), referring to FIG. 3B, a query is made (e.g., by a trusted entity) regarding the type of exception (350). If the exception type is, for example, invalid or suppressed (352), the guest instruction is invalidated (e.g., by a trusted entity) (354) and the virtual machine is terminated (364) with the selected intercept code. The hypervisor then resolves (366) the prefix page to make it accessible, and the virtual machine is redispatched (368) by the hypervisor. Additionally, if the exception type is completed (356) or early specification (358), the interrupt information is saved (e.g., by a trusted entity) to a save area (e.g., a secure state description in secure mode) (360). This information may include, for example, the program state word / instruction address of the currently executing program, the type of program exception (program interrupt code), and information about the exception such as memory address, addressing mode, etc. (In other examples, additional, less, or other information, or combinations thereof, may be stored.) The virtual machine is locked (362) for the exception (e.g., by a trusted entity) and execution of the virtual machine is terminated (364) along with the selected interception code. The hypervisor then resolves the prefix page (366), and the virtual machine is redispatched by the hypervisor (368).

[0041] In one example, returning to Figure 3A, a determination is made as to whether the virtual machine is locked (e.g., by a trusted entity) due to an exception based on the redispatching of the virtual machine (370). If the virtual machine is not locked due to an exception, processing continues executing guest instructions (306). However, if the virtual machine is locked due to an exception, the program exception that was saved from before the end of the selected interception is presented (e.g., by a trusted entity) to the operating system, which handles the program exception normally (372). Processing may proceed, for example, to "Interrupt requires prefix access" (332).

[0042] In the above examples, the virtual machine is a secure virtual machine, however, in other embodiments, one or more aspects may apply to a non-secure virtual machine.

[0043] According to one or more aspects of the present invention, checking and processing of prefix pages is performed during execution of a virtual machine (e.g., a secure virtual machine). Accesses by the virtual machine to prefix pages (or other selected areas of memory used for communication between the virtual machine and the operating system) may be explicit or implicit. Explicit accesses to prefix pages during guest execution are handled like any other memory access. For example, the virtual machine accesses the prefix pages as real memory, and if the pages cannot be accessed, a host program exception is reported. Implicit accesses are more difficult to manage because they can occur at any time during guest dispatch. During these implicit accesses of pages, a trusted entity (e.g., the ultravisor) tests the accessibility of the pages. If the pages are not accessible, the ultravisor checks the reason for the implicit access. Depending on the reason, the ultravisor may terminate with a chosen intercept code (e.g., 112) that indicates to the hypervisor that the guest's prefix pages are not accessible and may decide whether to cancel the unit of operation from the guest (e.g., invalidate the instructions) before returning to the host (e.g., hypervisor) or to capture the virtual machine's state and save it in the ultravisor's secure storage and lock the virtual machine. After terminating the virtual machine, the hypervisor may make the page or pages accessible by the guest and redispatch the guest. During the execution of the virtual machine redispatch (e.g., beginning interpretive execution), the trusted entity checks whether the virtual machine is locked and, if so, presents an interrupt with the chosen intercept code that was saved as part of the guest's state before the termination. This interrupt is then handled by the operating system, which eventually resumes the guest's execution.

[0044] In one or more aspects, capabilities are provided to address the case where a virtual machine's prefix page is determined to be inaccessible when accessed during execution of the virtual machine. If the prefix is ​​not accessible, a trusted entity (e.g., ultravisor) is used to save the state of the virtual machine, including pending interrupts, if applicable, and inform the hypervisor, via the selected interception code, that the prefix is ​​no longer accessible. In one example, the hypervisor then converts the prefix page from non-secure to secure and dispatches the virtual machine again. As another example, the hypervisor maps the guest's prefix page within the hypervisor's virtual storage. During execution of the virtual machine start, the ultravisor then checks the accessibility of the prefix and completes the work that the virtual machine was to perform prior to the termination of the selected interception code.

[0045] In one or more aspects, the selected interception code (e.g., 112) occurs while the guest is in a non-interruptible location. For example, if the guest experiences a completion type exception (e.g., overflow, program event record, etc.), the guest updates guest storage and / or guest registers. However, the guest cannot present an interrupt because, in one example, the prefix is ​​not accessible, and therefore cannot simply exit and return to the hypervisor. Thus, the trusted entity, in this case, saves information about the program exception in secure storage, locks the guest, and terminates. Other examples where the guest cannot simply exit when the prefix is ​​not accessible, and therefore the trusted entity takes a particular action, are when a transaction is abnormally terminated, and in the case of a run-time instrumentation sample. Other examples may exist.

[0046] One or more aspects of the present invention are closely related to computer technology and facilitate processing in a computer and improve its performance. Processing is facilitated by managing access of prefix pages by a virtual machine (e.g., a secure virtual machine) while maintaining security and improving performance.

[0047] As processing within a computing environment relates to one or more aspects of the present invention, further details of one embodiment that facilitates such processing are described with reference to Figures 4A-4C.

[0048] 4A, in one embodiment, based on a dispatch of the virtual machine, a determination is made whether a selected region of memory accessible by the virtual machine and expected to be used in communications between the virtual machine and the operating system is accessible by the virtual machine 400. Based on a determination that the selected region of memory is not accessible by the virtual machine, execution of the virtual machine is terminated along with the selected interception code 402.

[0049] In this manner, processing is facilitated by preventing execution of guest instructions when selected regions of memory expected to be accessible are not accessible. One or more aspects address situations in which the hypervisor is unable to keep selected regions (e.g., prefix pages) of a guest's (e.g., virtual machine) memory pinned for the duration of the guest's execution.

[0050] Further, in one example, one or more guest instructions of the virtual machine are executed (404) based on the determination that the selected region of memory is accessible by the virtual machine.

[0051] In one example, based on the determination that the selected region of memory is accessible, a determination is made as to whether there will be an access to the selected region of memory for the virtual machine guest instruction (406). Based on the determination that there will be an access, a check is made as to whether the access is an explicit access or an implicit access (408). One or more actions are performed based on whether the access is an explicit access or an implicit access (410).

[0052] Selected areas of memory that are expected to be accessible are rechecked for accessibility to facilitate processing.

[0053] For example, based on the access being an implicit access (412), the one or more actions may include, for example, determining a reason for the implicit access (414) and performing one or more selected actions based on the reason for the implicit access (416).

[0054] 4B, in one example, based on the reason for the implicit access being an asynchronous interrupt (420), the one or more selected actions may include, for example, performing a preliminary test of the selected region of memory (422) and determining whether an exception occurred during the preliminary test of the selected region of memory (424). By way of example, based on a determination that an exception occurred during the preliminary test of the selected region of memory, an asynchronous interrupt is kept pending in the virtual machine and there is an exit of the virtual machine back to the host with the selected interception code (426).

[0055] In one example, based on the reason for the implicit access being a program interrupt (430), the one or more selected actions include, for example, determining whether the program interrupt is for accessing the selected region of memory (432) and, based on the determination that the program interrupt is for accessing the selected region of memory, performing a preliminary test of the selected region of memory (434). In one example, a determination is made as to whether an exception occurred during the preliminary test of the selected region of memory (436), and an action is performed (438) based on whether an exception occurred during the preliminary test of the selected region of memory.

[0056] In one example, referring to FIG. 4C , performing the process includes continuing instruction processing based on a determination that an exception did not occur during the preliminary testing of the selected region of memory (440). Furthermore, in another example, performing the process includes checking whether the guest instruction is executed as part of a transactional execution (442). Based on the check indicating that the guest instruction is executed as part of a transactional execution, in one example, execution of the virtual machine is terminated with the selected interception code and the transactional execution is aborted (444). Further, in one example, based on the check indicating that the guest instruction is not executed as part of a transactional execution, a type of exception is determined and one or more selected actions are performed based on the type of exception (446).

[0057] As an example, based on the type of the exception being an invalid exception or a suppression exception, the one or more selected actions include invalidating the guest instruction (448).Further, in one example, based on the type of the exception being a completion exception or an early specification exception (450), the one or more selected actions include saving the interrupt information to a secure location (452), locking the virtual machine for the exception (454), and terminating execution of the virtual machine with the selected interception code (456).

[0058] In one example, upon the next start of the virtual machine, the virtual machine lock is checked (458) and, based on the lock being set, program exception handling is completed by locking (460).

[0059] Processing is facilitated by determining the cause / condition of termination and taking action accordingly.

[0060] Other variations and embodiments are possible.

[0061] Aspects of the present invention may be used by many types of computing environments. Another embodiment of a computing environment for incorporating and using one or more aspects of the present invention is described with reference to FIG. 5A. In this example, the computing environment 36 includes a native central processing unit (CPU) 37, memory 38, and one or more input / output devices and / or interfaces 39, coupled together, for example, via one or more buses 40 or other connections or both. By way of example, the computing environment 36 may include a PowerPC® processor provided by International Business Machines Corporation (Armonk, NY), an HP Superdome with an Intel® Itanium® II processor provided by Hewlett-Packard Co. (Palo Alto, CA), or other machines based on architectures provided by International Business Machines Corporation, Hewlett-Packard Co., Intel Corporation, Oracle Corporation, or other companies, or combinations thereof. PowerPC is a trademark or registered trademark of International Business Machines Corporation in at least one jurisdiction. Intel and Itanium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

[0062] The native central processing unit 37 includes one or more native registers 41, such as one or more general purpose registers and / or one or more special purpose registers that are used during processing within the environment. These registers contain information that represents the state of the environment at any particular point in time.

[0063] Additionally, native central processing unit 37 executes instructions and code stored in memory 38. In one particular example, central processing unit executes emulator code 42 stored in memory 38. This code enables a computing environment configured with one architecture to emulate another architecture. For example, emulator code 42 enables machines based on an architecture other than the z / Architecture instruction set architecture (e.g., PowerPC processors, HP Superdome servers, etc.) to emulate the z / Architecture instruction set architecture and execute software and instructions developed based on the z / Architecture instruction set architecture.

[0064] Further details relating to emulator code 42 are described with reference to FIG. 5B. Guest instructions 43 stored in memory 38 include software instructions (e.g., correlated to machine instructions) developed to execute on an architecture other than that of native CPU 37. For example, guest instructions 43 may be designed to execute on a processor based on the z / Architecture instruction set architecture, but are instead emulated on native CPU 37, which may be, for example, an Intel Itanium II processor. In one example, emulator code 42 includes an instruction fetch routine 44 for retrieving one or more guest instructions 43 from memory 38 and optionally providing local buffering of the retrieved instructions. Emulator code 42 also includes an instruction conversion routine 45 for determining the type of the retrieved guest instruction and for converting the guest instruction into one or more corresponding native instructions 46. This conversion includes, for example, identifying a function performed by the guest instruction and selecting a native instruction to perform this function.

[0065] Additionally, emulator code 42 includes an emulation control routine 47 for causing execution of native instructions. Emulation control routine 47 may cause native CPU 37 to execute a routine of native instructions that emulate one or more already fetched guest instructions, and upon completion of such execution, return control to an instruction fetch routine for emulating the fetch of the next guest instruction or group of guest instructions. Execution of native instructions 46 may include reading data from memory 38 into a register, storing data from the register back to memory, or performing some type of arithmetic or logical operation as determined by a translation routine.

[0066] For example, each routine is implemented in software that is stored in memory and executed by the native central processing unit 37. In other examples, one or more of the routines or operations are implemented in firmware, hardware, software, or some combination thereof. Registers of the emulated processor may be emulated using registers 41 of the native CPU or by using locations in memory 38. In an embodiment, the guest instructions 43, native instructions 46, and emulator code 42 may reside in the same memory or may be distributed among different memory devices.

[0067] The instructions that may be emulated include the guest instructions described herein in accordance with one or more aspects of the present invention. Additionally, other instructions, commands, functions, operations, calls, or one or more aspects of the present invention, or combinations thereof, may be emulated in accordance with one or more aspects of the present invention.

[0068] The aforementioned computing environments are only examples of computing environments that can be used. Other environments may be used, including, but not limited to, non-partitioned, partitioned, cloud, or emulated environments, or combinations thereof, and embodiments are not limited to any one environment. Although various examples of computing environments are described herein, one or more aspects of the present invention may be used with many types of environments. The computing environments provided herein are only examples.

[0069] Each computing environment can be configured to include one or more aspects of the present invention.

[0070] One or more aspects may relate to cloud computing.

[0071] Although this disclosure includes detailed descriptions of cloud computing, it should be understood that implementation of the recited content herein is not limited to a cloud computing environment. Embodiments of the invention may be implemented in conjunction with any other type of computing environment now known or later developed.

[0072] Cloud computing is a service delivery model for enabling convenient, on-demand network access to a shared pool of configurable computational resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) and for rapidly provisioning and releasing these resources with minimal administrative effort or interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.

[0073] The features are as follows:

[0074] On-Demand Self-Service: Cloud customers can automatically provision server time and computing power, such as network storage, as needed, without the need for unilateral human interaction with the service provider.

[0075] Broad network access: Capabilities are available over the network and can be accessed through standard mechanisms, facilitating use by heterogeneous thin-client or thick-client platforms (e.g., cell phones, laptops, and PDAs).

[0076] Resource Pool: The provider's computing resources are pooled and offered to multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically allocated and reallocated according to demand. There is a sense of location independence, where consumers typically have no control or knowledge regarding the exact location of the resources offered, although at higher levels of abstraction they may be able to specify a location (e.g., country, state, or data center).

[0077] Rapid Elasticity: Capacity is provisioned quickly and elastically, in some cases automatically, so it can be quickly scaled out and quickly released to quickly scale in. Capacity available for provisioning often appears to the consumer as unlimited, available for purchase in any quantity at any time.

[0078] Measured Services: Cloud systems leverage metering to automatically control and optimize resource usage at a level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services used.

[0079] The service model is as follows:

[0080] Software as a Service (SaaS): The capability offered to the consumer is the use of the provider's applications running on a cloud infrastructure. Those applications can be accessed from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or individual application functionality, except for the possibility of limited user-specific application configuration settings.

[0081] Platform as a Service (PaaS): The capability provided to a consumer is to deploy applications that the consumer creates or acquires, written using programming languages ​​and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and, in some cases, the configuration of the application hosting environment.

[0082] Infrastructure as a Service (IaaS): The capability provided to a consumer is the provisioning of processing, storage, network, and other basic computational resources over which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but has control over the operating systems, storage, deployed applications, and in some cases, limited control over selected network components (e.g., host firewalls).

[0083] The deployment model is as follows:

[0084] Private Cloud: This cloud infrastructure is operated solely for the organization. It can be managed by the organization or a third party and can exist on-premise or off-premise.

[0085] Community Cloud: This cloud infrastructure is shared by multiple organizations to support a specific community with shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It can be managed by these organizations or a third party and can reside on-premise or off-premise.

[0086] Public Cloud: This cloud infrastructure is available for use by general users or large industry organizations and is owned by an organization that sells cloud services.

[0087] Hybrid cloud: This cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain unique but are bound together by standardized or proprietary technologies that allow for the portability of data and applications (e.g., cloud bursting to balance the load between clouds).

[0088] A cloud computing environment is a service-oriented environment with an emphasis on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that contains a network of interconnected nodes.

[0089] Referring now to FIG. 6, an exemplary cloud computing environment 50 is shown. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 52 with which local computing devices used by cloud consumers (e.g., a personal digital assistant (PDA) or mobile phone 54A, a desktop computer 54B, a laptop computer 54C, and / or an automobile computer system 54N) can communicate. The nodes 52 may communicate with each other. The nodes 52 may be physically or virtually grouped in one or more networks (not shown), such as in a private cloud, community cloud, public cloud, or hybrid cloud, or combinations thereof, as previously described herein. This enables the cloud computing environment 50 to provide infrastructure, platform, and / or software as a service without the cloud consumer having to maintain resources on a local computing device. The types of computing devices 54A-N illustrated in FIG. 10 are intended as examples only, and it will be understood that computing node 52 and cloud computing environment 50 may communicate with any type of computer-controlled device via any type of network and / or network-addressable connection (e.g., a connection using a web browser).

[0090] Referring now to Figure 7, a set of functional abstraction layers provided by cloud computing environment 50 (Figure 6) is shown. It should be understood in advance that the components, layers, and functions shown in Figure 7 are intended to be illustrative only and that embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:

[0091] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61, Reduced Instruction Set Computer (RISC) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and network components 66. In some embodiments, the software components include network application server software 67 and database software 68.

[0092] The virtualization layer 70 provides an abstraction layer that can provide virtual entities such as virtual servers 71 , virtual storage 72 , virtual networks including virtual private networks 73 , virtual applications and operating systems 74 , and virtual clients 75 .

[0093] In one example, the management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computational and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 82 provides cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the utilization of those resources. In one example, those resources may include application software licenses. Security provides identity verification of cloud consumers and tasks, as well as protection of data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 provides allocation and management of cloud computational resources to meet required service levels. Service level agreement (SLA) planning and execution 85 provides advance provisioning and procurement of cloud computational resources in anticipation of upcoming demands and in accordance with SLAs.

[0094] The Workload Layer 90 illustrates examples of functionality available in a cloud computing environment. Examples of workloads and functionality that may be provided from this layer include mapping and navigation 91, software development and lifecycle management 92, virtual classroom instruction delivery 93, data analytics processing 94, transaction processing 95, and management of selected regions of memory (e.g., prefix pages) 96.

[0095] Aspects of the invention may be systems, methods, and / or computer program products at any possible level of technical detail of integration. The computer program product may include one or more computer readable storage media containing computer readable program instructions for causing a processor to perform aspects of the invention.

[0096] A computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer-readable storage media includes portable floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridges in grooves on which the instructions are recorded, and any suitable combinations of these. As used herein, computer-readable storage media should not be construed as being signals that are themselves ephemeral, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted over wires.

[0097] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to each computing device / processing device or to an external computer or storage device over a network (e.g., the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof) that may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface within each computing device / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage on a computer readable storage medium within each computing device / processing device.

[0098] The computer readable program instructions for carrying out the operations of the present invention may be source or object code written in any combination of one or more programming languages, including assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or object-oriented programming languages, such as Smalltalk®, C++, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partially on the user's computer as a standalone software package, partially on the user's computer and on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), may execute computer-readable program instructions to customize the electronic circuitry by utilizing state information of the computer-readable program instructions to carry out aspects of the invention.

[0099] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks included in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0100] These computer readable program instructions may be provided to a processor of a computer or other programmable data processing apparatus to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, produce means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored on a computer readable storage medium and capable of directing a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that the computer readable storage medium on which the instructions are stored comprises an article of manufacture containing instructions for performing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0101] Computer-readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device such that the instructions, which execute on the computer, other programmable apparatus, or other device, perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams, thereby causing a series of operable steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process.

[0102] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, comprising one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions shown in the blocks may occur in a different order than the order shown in the figures. For example, two blocks shown in succession may in fact be realized as one step, executed simultaneously, executed substantially simultaneously in a partially or fully overlapping manner in time, or executed in reverse order, depending on the functionality involved. It is also noted that each block in the block diagrams and / or flowchart diagrams, as well as combinations of blocks included in the block diagrams and / or flowchart diagrams, may be implemented by a dedicated hardware-based system that executes the specified functions or operations or executes a combination of dedicated hardware and computer instructions.

[0103] In addition to the above, one or more aspects may be provided, offered, deployed, managed, serviced, etc. by a service provider that provides management of a customer's environment. For example, a service provider may create, maintain, support, etc., computer code and / or computer infrastructure that implements one or more aspects for one or more customers. In return, the service provider may receive payments from the customer, for example, pursuant to a subscription and / or fee agreement. Additionally or alternatively, the service provider may receive payments from the sale of advertising content to one or more third parties.

[0104] In one aspect, an application may be deployed to execute one or more embodiments. As one example, deploying an application includes providing a computer infrastructure operable to execute one or more embodiments.

[0105] As a further aspect, a computing infrastructure may be deployed that includes integrating computer readable code into a computing system, where the code in combination with the computing system is capable of executing one or more embodiments.

[0106] As a further aspect, a process may be provided for integrating a computing infrastructure, the process including integrating computer readable code into a computer system, the computer system comprising a computer readable medium, the computer medium including one or more embodiments, the code in combination with the computer system capable of executing one or more embodiments.

[0107] Although various embodiments have been described above, they are merely examples. For example, computing environments of other architectures may be used to incorporate and / or use one or more aspects. Furthermore, various instructions, commands, functions, calls, and / or operations may be used. Furthermore, various actions may be performed. Many variations are possible.

[0108] In this specification, various embodiments are described. Furthermore, many variations are possible without departing from the spirit of the embodiments of the present invention. It should be noted that each embodiment or feature described in this specification and its variations can be combined with any other embodiment or feature, unless specifically contradictory.

[0109] Additionally, other types of computing environments may be beneficial and may be used. By way of example, a data processing system may be used that includes at least two processors coupled directly or indirectly via a system bus to memory elements suitable for storing and / or executing program code. These memory elements may include, for example, local memory used during the actual execution of the program code, bulk storage, and cache memory for temporarily storing at least some of the program code to reduce the number of times the code must be retrieved from the bulk storage during execution.

[0110] Input / output or I / O devices (including but not limited to keyboards, displays, pointing devices, DASD, tapes, CDs, DVDs, thumb drives, and other storage media) may be coupled to the system either directly or through intervening I / O controllers. Network adapters may be coupled to the system to enable the data processing system to be coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modems, and Ethernet cards are just a few of the types of network adapters available.

[0111] The terms used herein are for the purpose of describing particular embodiments only and are not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising", as used herein, indicate the presence of stated features, integers, steps, operations, elements, or components, or combinations thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof, or combinations thereof.

[0112] The corresponding structures, materials, operations, and equivalents of all means or steps and functional elements within the scope of the claims below are intended to include any structures, materials, or operations for performing functions in combination with other claimed elements, if any, when specifically claimed. The description of one or more embodiments is presented for purposes of illustration and description, but is not intended to be exhaustive and is not limited to the disclosed forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments have been selected and described to best explain the various aspects and practical applications, and to enable others skilled in the art to understand various embodiments with various modifications as suitable for the particular use contemplated.

Claims

1. 1. A computer program product for facilitating processing within a computing environment, said computer program product comprising: one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising: determining, based on a dispatch of a virtual machine, whether a selected region of memory accessible by the virtual machine and expected to be used in communications between the virtual machine and an operating system is accessible by the virtual machine; and terminating execution of a virtual machine with selected interception code based on a determination that the selected region of memory is not accessible by the virtual machine.

2. 2. The computer program product of claim 1, wherein the method further comprises executing one or more guest instructions of the virtual machine based on a determination that the selected region of memory is accessible by the virtual machine.

3. Based on a determination that the selected region of memory is accessible, the method further comprises: determining whether there will be an access to the selected region of the memory for a guest instruction of the virtual machine; based on a determination that an access exists, checking whether the access is an explicit access or an implicit access; and performing one or more actions based on whether the access is the explicit access or the implicit access.

4. Based on the access being the implicit access, the one or more actions: determining a reason for the implicit access; and performing one or more selected actions based on the reason for the implicit access.

5. based on the reason for the implicit access being an asynchronous interrupt, the one or more selected actions comprising: performing a preliminary test of selected regions of said memory; determining whether an exception occurred during said preliminary testing of said selected region of memory; and based on a determination that the exception occurred during the preliminary testing of the selected region of memory, keeping the asynchronous interrupt pending in the virtual machine, exiting with the selected interception code, and returning to a host for the virtual machine.

6. based on the reason for the implicit access being a program interrupt, the one or more selected actions comprising: determining whether the program interrupt is for accessing a selected region of the memory; performing a preliminary test of the selected region of memory based on a determination that the program interrupt is for accessing the selected region of memory; determining whether an exception occurred during said preliminary testing of said selected region of memory; and performing an action based on whether the exception occurred during the preliminary testing of the selected region of memory.

7. 7. The computer program product of claim 6, wherein performing the processing comprises continuing instruction processing based on a determination that the exception did not occur during the preliminary testing of the selected region of memory.

8. performing the process based on a determination that the exception occurred during the preliminary testing of the selected region of memory; checking whether the guest instruction is executed as part of a transactional execution; 7. The computer program product of claim 6, further comprising: terminating execution of a virtual machine with the selected interception code and aborting transactional execution based on the check indicating that the guest instruction is executed as part of a transactional execution.

9. performing the process based on a determination that the exception occurred during the preliminary testing of the selected region of memory; checking whether the guest instruction is executed as part of a transactional execution; determining a type of the exception based on the check indicating that the guest instruction is not executed as part of a transactional execution; and performing one or more selected actions based on the type of the exception.

10. 10. The computer program product of claim 9, wherein the one or more selected actions include invalidating the guest instruction based on the type of exception being an invalid exception or a suppress exception.

11. based on the type of exception being a completion exception or an early specification exception, the one or more selected actions: storing the interrupt information in a secure location; locking the virtual machine due to an exception; and terminating execution of the virtual machine with the selected interception code.

12. The method further comprising: checking the virtual machine lock upon the next start of the virtual machine; 12. The computer program product of claim 11, further comprising: completing a program exception handling based on said lock being set by said locking.

13. 1. A computer system for facilitating processing within a computing environment, the computer system comprising: Memory, and at least one processor in communication with the memory, the computer system being configured to execute a method, the method comprising: determining, based on a dispatch of a virtual machine, whether a selected region of memory accessible by the virtual machine and expected to be used in communications between the virtual machine and an operating system is accessible by the virtual machine; and terminating execution of the virtual machine along with the selected interception code based on a determination that the selected region of memory is not accessible by the virtual machine.

14. Based on a determination that the selected region of memory is accessible, the method further comprises: determining whether there will be an access to the selected region of the memory for a guest instruction of the virtual machine; based on a determination that an access exists, checking whether the access is an explicit access or an implicit access; and performing one or more actions based on whether the access is the explicit access or the implicit access.

15. Based on the access being the implicit access, the one or more actions: determining a reason for the implicit access; and performing one or more selected actions based on the reason for the implicit access, the one or more selected actions being based on the reason for the implicit access being an asynchronous interrupt: performing a preliminary test of selected regions of said memory; determining whether an exception occurred during said preliminary testing of said selected region of memory; and based on a determination that the exception occurred during the preliminary testing of the selected region of memory, keeping the asynchronous interrupt pending in the virtual machine, exiting with the selected interception code, and returning to a host for the virtual machine.

16. Based on the access being the implicit access, the one or more actions: determining a reason for the implicit access; and performing one or more selected actions based on the reason for the implicit access, wherein the one or more selected actions are: determining whether the program interrupt is for accessing a selected region of the memory; performing a preliminary test of the selected region of memory based on a determination that the program interrupt is for accessing the selected region of memory; determining whether an exception occurred during said preliminary testing of said selected region of memory; and performing an action based on whether the exception occurred during the preliminary testing of the selected region of memory.

17. 1. A computer-implemented method for facilitating processing in a computing environment, the computer-implemented method comprising: determining, based on a dispatch of a virtual machine, whether a selected region of memory accessible by the virtual machine and expected to be used in communications between the virtual machine and an operating system is accessible by the virtual machine; and terminating execution of the virtual machine with the selected interception code based on a determination that the selected region of memory is not accessible by the virtual machine.

18. based on a determination that the selected region of memory is accessible; determining whether there will be an access to the selected region of the memory for a guest instruction of the virtual machine; based on a determination that an access exists, checking whether the access is an explicit access or an implicit access; and performing one or more actions based on whether the access is the explicit access or the implicit access.

19. Based on the access being the implicit access, the one or more actions: determining a reason for the implicit access; and performing one or more selected actions based on the reason for the implicit access, the one or more selected actions being based on the reason for the implicit access being an asynchronous interrupt: performing a preliminary test of selected regions of said memory; determining whether an exception occurred during said preliminary testing of said selected region of memory; 20. The computer-implemented method of claim 18, further comprising: based on a determination that the exception occurred during the preliminary testing of the selected region of memory, keeping the asynchronous interrupt pending in the virtual machine, exiting with the selected interception code, and returning to a host for the virtual machine.

20. Based on the access being the implicit access, the one or more actions: determining a reason for the implicit access; and performing one or more selected actions based on the reason for the implicit access, wherein the one or more selected actions are: determining whether the program interrupt is for accessing a selected region of the memory; performing a preliminary test of the selected region of memory based on a determination that the program interrupt is for accessing the selected region of memory; determining whether an exception occurred during said preliminary testing of said selected region of memory; and performing an action based on whether the exception occurred during the preliminary testing of the selected region of memory.

Citation Information

Patent Citations

  • System and method for exposing the results of current processor instructions upon virtual machine termination

    JP2017526071A

  • Dispatch of a secure virtual machine

    WO2020182496A1

  • Transparent interpretation of guest instructions in secure virtual machine environment

    WO2020183278A1