Transparent and secure execution of retrieval processes
Patent Information
- Application Number
- DE102016222861
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-07-27
- Filing Date
- 2016-11-21
- Publication Date
- 2024-10-17
- Estimated Expiration
- 2036-11-21
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
BACKGROUNDThe present invention relates to computer systems and, more particularly, to a method for transparently, securely performing retrieval of data in networks.One problem with public cloud environments is unsecured access to data and algorithms, for example, by a cloud service provider. Since the cloud service provider does not need such access to data to offer its services, it could be prevented that the service provider can access this data. Preventing access, however, must be performed so that cloud service providers are nevertheless able to virtualize their hardware resources and offer them to multiple customers for effectiveness, while at the same time ensuring to customers that no access to data or algorithms is possible by the cloud service provider. Cloud operators typically have a privilege of access to their hypervisor environments, which may exclude pure software solutions.US 2009 / 0 083 736 A1 describes a virtualized computer, monitoring methods of the virtualized computer and an associated computer-readable medium. US 2014 / 0 229 943 A1 describes dynamic level boosting of operations across virtualization layers to enable efficient nested virtualization.SUMMARYThe invention is described by the features of the independent claims. Embodiments are set out in the dependent claims.Various embodiments provide a method for transparently, securely performing fetch operations, firmware, hypervisor, computer program product, and computer system described by the subject matter of the independent claims. Advantageous embodiments are described in the dependent claims. Embodiments of the present invention may be combined with each other arbitrarily unless they are mutually exclusive.In one aspect, the invention relates to a computer implemented method for transparently, securely performing polling operations. The method includes: implementing a virtual machine, VM, in an environment, the environment including a hypervisor executing on hardware and firmware managing the hardware and managing the states of the virtual machine, the virtual machine configured to be accessible to a corresponding VM memory of the environment, buffers provided by the hypervisor for the firmware; executing VM instructions of the virtual machine after implementing the virtual machine; by the firmware retrieving a VM command of the VM commands, requiring accessing command data, the command data comprising: VM data stored in the VM memory and / or at least a portion of the virtual machine, VM, state, the VM state being copied, after retrieving the VM command by the firmware, into a VM state shadow buffer associated with the firmware; by the firmware, copying the command data into the buffers; by the hypervisor, executing the retrieved VM command using the buffers; before resuming execution of the VM instructions after the fetched VM instruction, updating the VM state shadow buffer and / or the VM data in the VM memory using result data in the buffers, when execution of the fetched VM instruction results in the result data; and resuming execution of the VM instructions after the fetched VM instruction based on the state stored in the VM state shadow buffer.In another aspect, the invention relates to a computer system for transparently, securely performing retrievals, the computer system comprising a hypervisor executing on hardware. The hypervisor is configured to implement a virtual machine, VM, in the computer system, the virtual machine configured to access a corresponding VM memory of the computer system after implementing the virtual machine that provides buffers to the firmware; and execute virtual machine VM instructions.The computer system further includes firmware that manages the hardware and states of the virtual machine.The firmware is configured to fetch a VM instruction of the VM instructions that requires access to instruction data, the instruction data including: VM data stored in the VM memory and / or at least a portion of the virtual machine, VM, state; copy the VM state to a shadow VM state buffer associated with the firmware; and copy the instruction data to the buffers.The hypervisor is configured to execute the fetched VM instruction using the buffers; wherein the firmware is configured to: before resuming execution of the VM instructions after the fetched VM instruction, update the VM state shadow buffer and / or the VM data in the VM memory using result data in the buffers when execution of the fetched VM instruction results in the result data.The firmware is configured to resume execution of the VM instructions following the fetched VM instruction based on the state stored in the VM state shadow buffer.In another aspect, the invention relates to firmware for transparently, securely performing fetch operations, the firmware managing the hardware and states of a virtual machine. The firmware is configured to fetch a VM command of the VM commands of the VM that requires accessing command data, the command data including: VM data stored in the VM memory and / or at least a portion of the virtual machine, VM, state; copy the VM state to a shadow VM state buffer associated with the firmware; copy the command data to buffers; before resuming execution of the VM instructions following the fetched VM instruction, updating the VM state shadow buffer and / or the VM data in the VM memory using results of execution of the fetched VM instruction; resuming execution of the VM instructions following the fetched VM instruction based on the state stored in the VM state shadow buffer.In another aspect, the invention relates to a hypervisor for transparently, securely performing polling operations. The hypervisor is configured to implement a virtual machine, VM, in a computer system, the virtual machine configured to access a corresponding VM memory of the computer system; after implementing the virtual machine, provide buffers by firmware of the computer system; execute VM commands of the virtual machine; execute a fetched VM command of the VM commands using the buffers; resume executing the VM commands following the fetched VM command based on the state stored in the VM state shadow buffer.In another aspect, the invention relates to a computer program product for transparently, securely performing fetch operations, the computer program product comprising a computer readable storage medium having program instructions embodied therein, the program instructions executable by a processor to implement a virtual machine, VM, in an environment, the environment comprising a hypervisor executing on hardware and firmware managing the hardware and states of the virtual machine, the virtual machine being configured to access a corresponding virtual memory of the environment; after implementing the virtual machine, provide buffers for the firmware; execute VM instructions of the virtual machine; A VM instruction fetch of the VM instructions that requires accessing instruction data, the instruction data comprising VM data stored in the VM memory and / or at least a portion of the virtual machine, VM, state; after fetching the VM instruction, copying the VM state to a VM state shadow memory associated with the firmware; copying the instruction data to the buffers; executing the fetched VM instruction using the buffers; before resuming execution of the VM instructions following the fetched VM instruction, updating the VM state shadow memory and / or the VM data in the VM memory using result data in the buffers when execution of the fetched VM instruction results in the result data; and resuming execution of the VM instructions following the fetched VM instruction based on the state stored in the VM state shadow memory.The above features may provide the advantage of securely accessing data in a virtual machine environment. This may be particularly advantageous in distributed systems where the virtual machines are managed centrally and where the virtual machine user may not have access to the central management. For example, using the present method, a cloud service provider would still be able to virtualize hardware resources and offer them to multiple users for effectiveness while at the same time ensuring that access to data or algorithms is not possible by the cloud service provider. This could function by preventing access to the VM state (memory and CPU) by the hypervisor (e.g., Intel SGX and Microsoft Haven, IBM SecureBlue++).BRIEF DESCRIPTION OF THE SEVERAL DRAWING VIEWSEmbodiments of the invention are explained in more detail below merely by way of example, reference being made to the drawings, in which: FIG. 1 is a block diagram of a computer system. FIG. 2 is a flow diagram of a method for transparently, securely performing polling operations. FIG. 3 is a flow chart of a method for copying the command data to buffers. FIG. 4 is a flow chart for updating a VM state shadow buffer and / or VM data in VM memory. FIG. 5A is a block diagram illustrating a memory structure according to an example method of the present disclosure. FIG. 5 is a block diagram illustrating another memory structure according to an example method of the present disclosure. FIG. 6 is a block diagram of components of a computing environment, in accordance with embodiments of the present disclosure. FIG. 7 illustrates a cloud computing environment according to an embodiment of the present disclosure. FIG. 8 illustrates layers of an abstraction model according to an embodiment of the present disclosure.DETAILED DESCRIPTIONThe descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limiting of the disclosed embodiments. Many modifications and variations will occur to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application, or the technical improvement over technologies found in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.With the present method, there is a possibility that existing hypervisors will perform VM fetch and interrupt execution when executed with firmware. In particular, the layers of the hypervisor that manage the execution of fetch and interrupt operations of a VM may remain unchanged. Meeting this requirement can simplify the development effort for such a solution by the hypervisor and thus enable the firmware technology for a broader range of users. The firmware may be responsible for managing the hypervisor memory used by the current virtualization interface so that confidentiality of the VM or virtual machine may be maintained.As used herein, the term "VM state" refers to a configuration and / or group of information or resources that occur in a particular VM at a particular time.As used herein, the term "virtual machine (VM)" refers to a logical representation of a physical machine (computing device, processor, etc.) and its processing environment (operating system (OS), software resources, etc.). The VM is executed as software executing on an underlying host machine (physical processor or group of processors). From a user's or software resource perspective, the VM appears to be its own independent physical machine.As used herein, the term "hypervisor or VM monitor (VMM) (VM monitor)" refers to a processing environment or platform service that manages multiple VMs and allows them to execute using multiple (and occasionally different) operating systems (OSs) in the same host machine.As used herein, the term "hardware" refers to an element having a physical structure such as electronic, electromagnetic, optical, electro-optical, mechanical, electromechanical parts, etc.As used herein, the term "firmware" refers to a logical structure, method, procedure, program, routine, algorithm, formula, or expression implemented or embodied in a hardware structure (e.g., flash memory or read-only memory). Examples of firmware include microcode, writeable control store (microprogram) memories, and microprogrammed structures.As used herein, the term "buffer" or pool refers to a region of physical storage device that is used to temporarily store data as it is moved from one location to another.It is to be appreciated that implementing a virtual machine includes a virtual machine installation process and a virtual machine activation (or startup) process. In another example, implementing a virtual machine includes a virtual machine activation (or startup) process, e.g., when the virtual machine has been previously installed or is already present.The fetch of the VM instruction may be performed while the VM instructions are executed, such that execution is suspended and subsequently resumed as described herein. The interrupt is meant in the sense that the "normal" execution of the VM instructions is interrupted until the fetched VM instruction has been executed. The VM instructions include, for example, a sequence of instructions inst1, inst2, inst3,..., instN, where inst4 is the fetched instruction. Inst 1 to inst 3 may be executed (using a first technique), then this execution is suspended because inst 4 is executed in another manner as explained herein, and then the execution of the instructions inst 5 to instN may be resumed after the execution of inst 4, wherein the execution of the instructions inst 5 to instN is performed as the execution of inst 1 to inst 3 using the first technique.The above features may provide the advantage of securely accessing data in a virtual machine environment. This may be particularly advantageous in distributed systems where the virtual machines are managed centrally and where the virtual machine user may not have access to the central management. For example, using the present method, a cloud service provider would still be able to virtualize hardware resources and offer them to multiple users for effectiveness while at the same time ensuring that data or algorithms cannot be accessed by the cloud service provider. This may function by preventing access to the VM state (memory and CPU) by the hypervisor (e.g., Intel SGX and Microsoft Haven, IBM SecureBlue++).According to one embodiment, the buffers include a VM state buffer and a memory pool, wherein copying the command data to the buffers includes copying at least a portion of the VM state by the firmware from the VM state shadow buffer to the VM state buffer; when the command data includes VM data stored in the VM memory, copying the VM data by the firmware from the VM memory to the memory pool; and by the firmware in the VM state buffer, replacing first addresses of data in the VM memory with corresponding second addresses in the memory pool. This embodiment can be transparently integrated into existing systems seamlessly by redirecting access to data in the VM memory to other locations in the memory. This can avoid modifying or configuring the hypervisors in existing environments. In this embodiment, accessing of the VM memory by the hypervisor may be avoided.According to one embodiment, updating the VM state shadow buffer and / or the VM data in the VM memory comprises: in response to determining that the result data comprises processed VM data in the memory pool, copying at least a portion of the processed VM data from the memory pool to corresponding addresses of the first addresses by the firmware; copying at least a portion of the result data stored in the VM state buffer to the VM state shadow buffer by the firmware; replacing in the VM state shadow buffer addresses of the second addresses by corresponding addresses of data in the memory pool by the firmware. This embodiment may provide a reliable method of executing the virtual machine. By copying processed data to the VM memory, subsequent execution of virtual machine instructions may use the proper / correct data generated by a previous instruction, such as the fetched VM instruction.According to one embodiment, at least a portion of the processed VM data includes expected data determined by the firmware using the fetched VM instruction and arguments of the fetched VM instruction. In this embodiment, copying of unnecessary data to the VM memory can be prevented. For example, the hypervisor may generate additional data that does not relate to the fetched VM command. This additional data must not be copied to the VM memory.According to one embodiment, the instruction data is specified by the firmware using the fetched VM instruction and arguments of the fetched VM instruction.According to an embodiment, after implementing the virtual machine, the method further comprises preventing the hypervisor from accessing the VM memory. This may have the advantage of further improving the security aspect of the present method by preventing malicious access to the VM memory. For example, although the hypervisor is redirected to read data from buffers, malicious access to the VM memory may be realized.According to an embodiment, the method further comprises: filling, by the firmware, unused memory locations in the memory pool and the buffer for the VM state with fingled data. This may have the advantage of further improving the security aspect of the present method in that the hypervisor may only access copies of the VM memory in the memory pool of the implemented VM. Attempting to access unused data storage locations may result in reading of fingledged data. This can prevent the hypervisor from crashing.According to an embodiment, the fingledged data comprises arbitrary data and / or zeroes.According to one embodiment, executing the fetched VM command by the hypervisor includes requesting resumption of execution of the VM commands after the fetched VM command by the hypervisor. After completing execution of the fetched instruction, the firmware may have access to the resulting data in the buffers, which may possibly be required to complete execution of the fetched instructions.According to one embodiment, copying the state of the virtual machine to a VM state shadow buffer associated with the firmware is performed by the firmware after implementing a virtual CPU, vCPU, for the virtual machine or after executing the VM instructions in the vCPU. This embodiment may possibly have the advantage of seamlessly integrating the present method into existing systems.FIG. 1 shows a block diagram of a computer system 101. The computer system 101 may be part of a cloud computing environment. However, one skilled in the art should appreciate that computer system 101 may be integrated and may function in other distributed computing systems such as a network computing system and cluster computing systems and computing systems supporting virtualization software.As shown by the figures, the computer system 101 may be managed by a hypervisor 112 (which may also be referred to as a virtual machine monitor). The hypervisor 112 may generate one or more virtual machines 128.1 to 128.N. Hypervisor 118 may enable its virtual machines 128.1 through 128.N to share physical resources 114 of computer system 101. Physical resources 114 may perform processing of data or instructions, and may include one or more processors 116 executing instructions, a memory (e.g., random access memory (RAM) 118 storing data for processing, a storage device 120 such as a hard disk drive (HDD), an electromechanical hard disk drive, and a semiconductor medium, and a chipset 122 including firmware 124 for coordinating interactions between physical processing resources. An example of the firmware 24 is a basic input / output system (BIOS) 126 that performs booting of the hypervisor 112 from an off state in the storage unit of the hard disk drive 120 to an on state in the RAM 118 for execution by the processor 116. In an operable state, the hypervisor 112 is executed using physical resources 114 to support operations of virtual machines 128. A number of programs may be included in the memory unit 120 and / or RAM 118 and executed by a processor 116 that includes an operating system and / or application programs. It is understood that the VM (virtual machine) and its components range from 1 to N.Components of the physical resources 114 may be interconnected by one or more system buses that connect the various system components to the processor 116. The system buses may be any of various types of bus structures, including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures.Each VM 128 includes at least one virtual CPU 131, a virtual system memory or VM memory 135, a guest operating system, one or more applications executing on the guest operating system, and optionally at least one virtual disk memory 133. The components of the VM 128.1 may be implemented in software to emulate the corresponding components of a physical computer. For example, virtual machine 128.1 includes virtual system memory 135.1, which may be implemented in software that emulates the corresponding physical memory 235.1 of RAM 118. Virtual CPU 131.1 of virtual machine 128.1 emulates the corresponding physical CPU 132.1 of processor 116. Virtual disk storage 133.1 of virtual machine 128.1 emulates the corresponding virtual physical disk storage 233.1 of storage unit 120, where 1 denotes a virtual machine and values from 1 to N are possible.The RAM 118 may further include a VM state shadow buffer 140 associated with the firmware 124, for example, only the firmware 124 may have access to the VM state shadow buffer 140, or the firmware 124 may control other components to access that VM state shadow buffer 140. The RAM 118 may further include buffers 142-144 provided in the manner described below.FIG. 2 is a flow diagram of a method for transparently, securely performing fetch operations of one or more VM instructions. In step 201, a virtual machine, e.g., VM 1 128.1, may be implemented. For example, in one embodiment, hypervisor 112 may implement virtual machine 128.1. Implementing the VM 128.1 may be automatically performed periodically (daily), for example. In another example, implementing the VM 128.1 may be performed in response to the hypervisor receiving a request to implement the VM 128.1.Implementing the VM 128.1 may include, for example, installing the VM 128.1 and running the VM 128.1. In another example, implementing the VM 128.1 may include running the VM 128.1 when the VM 128.1 is already installed in the computer system 101.In step 203, after implementing virtual machine 128.1, hypervisor 112 may provide buffers 142-144 to firmware 124. Buffers 142-144 may include, for example, one or more portions of memory or RAM 118. Buffers 142-144 may be used to temporarily store data as the data is moved from one location to another. For example, in one embodiment, buffers 142-144 may be cleared once VM 128.1 is stalled or execution of VM 128.1 is completed.Hypervisor 112 may send a command to CPU 116 to allocate memory space in RAM 118 for buffers 142- 144. The size of buffers 142-144 may be chosen arbitrarily, for example. In another example, the size of buffers 142-144 may be predefined, for example, using historical data collected during earlier execution of VM 128.1.Buffers 142- 144 may include, for example, a VM state buffer 142 and a memory pool (or memory buffer) 144.In step 205, VM instructions of VM 128.1 may be executed. For example, the VM 128.1 may include a sequence of instructions that form the VM instructions. The VM instructions may be executed by the processor 116. The VM instructions may be fetched from memory 118 to be executed.In step 207, the firmware 124 may fetch a VM instruction of the VM instructions that requires accessing instruction data. The command data includes VM data stored in the VM memory 235.1 and / or at least a portion of the state of the VM 128.1 (VM state). The at least a portion of the state of the VM instruction may be the state required by the fetched VM instruction to execute. For example, the fetched VM instruction may not request access to the full VM state of VM 128.1. Optionally, the fetched VM instruction requires accessing VM data stored in the VM memory 235.1 of the VM 128.1.For example, in one embodiment, the fetched VM instruction may comprise a privilege instruction. The privilege instruction may, for example, designate a CPU instruction, for example: an I / O instruction that sets the clock instruction, a memory clear instruction for generating memory protection instructions.For example, a VM instruction that includes access attempts to processor control registers and tables may be fetched by software 124. The VM-128.1 may be executed in the user mode and it may be impermissible to access these tables because this would violate isolation conditions. For example, if the VM 128.1 starts a call to a privilege command (a command that is actually required to be in the hypervisor mode), the firmware 124, instead of the hypervisor, retrieves that call or VM command.In step 209, upon fetching the VM command, the firmware 124 may copy the VM state to the VM state shadow buffer 140. The VM state may include the VM execution state, which may include the memory state, the virtual processor state, the virtual device state, and / or the network connectivity state.In step 211, the firmware 124 may copy the instruction data into the buffers 142 to 144. Buffers 142-144 may include, for example, only a portion of the VM state required for the fetched VM instruction. For example, the VM state shadow buffer 140 may have the full VM state copied in step 209.In step 213, hypervisor 112 may execute the fetched VM command using buffers 142- 144. Executing the fetched VM instruction may result in result data in buffers 142-144. Hypervisor 122 may be prevented from accessing VM memory 235.1, and may have access to buffers 142-144 only for executing the fetched VM command. This may be advantageous because the hypervisor 112 may contain or execute instructions such as relative LOAD, STORE, and ADD or other instructions that may dangerously attempt to access the VM memory 235.1.Executing the fetched VM instruction may result in changes to at least a portion of the instruction data and / or new data in buffers 142-144.For example, after executing the fetched VM command, the hypervisor 112 may send a command to the firmware to resume executing the VM commands following the fetched VM command.In step 215, prior to resuming execution of the VM instructions following the fetched VM instruction, the VM state shadow buffer 140 and / or the VM data in the VM memory 235.1 may be updated using the result data. For example, step 215 includes updating the VM state shadow buffer 140 using the result data before resuming execution of the VM instructions following the fetched instruction. In another example, step 215 includes: updating the VM state shadow buffer 140 and the VM data in the VM memory 235.1 using the result data before resuming execution of the VM instructions following the fetched instruction. Because the buffers 142-144 have been used by the hypervisor 112 to execute the fetched VM instruction, the content (result data) of the buffers 142-144 may be used by the firmware 124 to update the VM state shadow buffer 140 and the VM data in the VM memory 235.1 when the fetched VM instruction requires accessing the VM data. Step 215 may be performed when executing the fetched instruction results in the result data.In step 217, execution of the VM instructions following (in the sequence of instructions) the fetched VM instruction may be performed based on the state stored in the VM state shadow buffer 140.In Fig. 3, a method of copying the command data into the buffers 142 to 144 is shown.In step 301, the firmware 124 may copy at least a portion of the VM state from the VM state shadow buffer 140 (the aforementioned command data) to the VM state buffer 142. In another example, at the time of executing step 209 (i.e., copying the VM state to the VM state shadow buffer 140), copying the at least a portion of the VM state to the VM state buffer may also be performed.The firmware 124 may determine (request 303) whether the command data includes VM data stored in the VM memory 235.1. If so, the firmware may copy the VM data from the VM memory 235.1 to the memory pool 144 at step 305 and may replace first addresses of data in the VM memory 235.1 with corresponding second addresses in the memory pool 144 at step 307 in the VM state buffer 142. The first addresses indicate storage locations in the VM memory 235.1 that include the VM data. The second addresses indicate memory locations in the memory pool 144 that include the VM data.Referring now to FIG. 4, a method for updating at least one VM state shadow buffer and the VM data in VM memory 235.1 is shown.In step 401, the firmware 124 may copy at least a portion of the result data stored in the VM state buffer 142 to the VM state shadow buffer 140. The result data can comprise state result data, for example. The at least a portion of the VM state that is copied to the buffers in step 301 may be modified after executing the fetched VM instruction. The format of the results of this modification may be calculated by the firmware 124, for example, by reading the fetched VM instruction and the arguments of the fetched VM instruction. The firmware may include, for example, a table of instructions that may be fetched that indicates a format and / or size of input and output data for each instruction and instruction argument. By performing this calculation, the firmware 124 may copy only a portion of the state result data that is computation-compliant, for example, ensure that a time of day value comprises only 8 bytes to avoid overwriting data in the VM or ensure that the time of day is within an appropriate time frame, thereby preventing attacks on applications in the VM with respect to the year 2038 problem. The state result data may include, for example, a first portion and a second portion. The first portion is expected to be part of the result data calculated by the firmware 124. In this case, the first portion may be copied to the VM state shadow buffer 140.The firmware 124 may determine (query 403) whether the result data includes processed VM data in the memory pool 144. If so, the firmware 124 may copy at least a portion of the processed VM data from the memory pool 144 to corresponding addresses of the first addresses in step 405. As with the state result data, the at least a portion of the processed VM data may include expected or calculated data ranges by the firmware 124 generated after execution of the intercepted VM instruction. The at least a portion of the processed VM data from the memory pool copied from the firmware 124 to the VM memory may include addresses of memory locations in the memory pool 144. Each such address of memory locations in the memory pool may be replaced in the VM memory with an address of an associated memory location in the VM memory.In step 407, firmware 124 in VM state shadow buffer 140 may replace addresses of the second addresses with corresponding addresses of data in VM memory 235.1.FIGS. 5A and 5B illustrate a memory structure (e.g., 118) of a computer system, e.g., 101 according to an example method. The memory structure includes a hypervisor (HV) memory 510 and a trusted firmware memory 511, which cannot be accessed by the HV in this embodiment.In this embodiment, the computer system may include a z-system platform. There is a Start Interpretive Execution (SIE) instruction which uses a VM state describing data block (SIE block 542) containing general purpose registers as well as specific virtualization configurations. For example, when the hypervisor issues the SIE command 112, the software 124 necessarily goes to implement a virtual CPU of the VM and starts executing. This continues until virtualization is halted because hypervisor 112 may be needed to emulate / virtualize a constrained resource or to control access to a particular resource. In such a case, the firmware 124 may store the VM state as well as the cause code for that interrupt. The implementation could include a shadow SIE block 540 (such as a VM state shadow buffer 140 indicating an original guest (or VM) state known by the firmware) in memory that can be accessed only by the firmware 124 and that can copy only data from and to the hypervisor SIE block 542 (such as the VM state buffer 142) if the current / last cause code were permitted. Arrow 550 indicates that the VM memory of firmware 124 is known.For example, the guest or VM, e.g., 128.1, could issue a command to set a timer to a value specified in a general purpose register. Firmware 124 could only copy this general purpose register and reason code to hypervisor SIE block 542, so that hypervisor 112 could implement a timer for this VM 128.1. All other fields in the hypervisor SIE block 542 (e.g., 555) could be filled with arbitrary data or fingledged indicia. A pool of proxy pages 544 has a copy 557A-B of the VM or guest pages partially filled with fingled data. In the present embodiment, 557A may represent fingledged and 557B may represent useful data. Furthermore, row 580 in this embodiment represents that pages that have been transferred and are included in the two boxes 557A-B and guest page 551 are the same pages. If the hypervisor 112 satisfies the VM request and continues by issuing further SIE commands, the firmware 124 could copy data from the hypervisor SIE block 542 (e.g., a successful condition code to set the timer) back to the firmware SIE block 540 and issue the true SIE command.The method described thus far may operate on all VM fetch operations where references to memory locations of VM memory 531 are not required (such as virtual system memory 135 / guest memory that cannot be accessed by the HV). The VM memory 531 is shown to include a guest page 551 having a location designated in the guest state buffer. When a VM location in a general purpose register is referenced (e.g., as with the z-system store system information command), the VM location and content are redirected to a pool of proxy pages 544 (such as memory pool 144) that can be accessed by the hypervisor 112. Arrow 553 indicates that proxy pages of firmware 124 are known.Although FIGS. 5A and 5B illustrate substantially the same process, it should be appreciated that the illustration of FIG. 5A focuses on the viewing of firmware and the illustration of FIG. 5B focuses on the viewing of a hypervisor.During VM definition, hypervisor 112 may reserve storage area for use as proxy pages 544 associated with VM 128.1, and declares those pages of firmware 124 as proxy pages. If, upon an interrupt, the firmware 124 copies requested data elements from the VM memory 531 to the proxy pages 544 associated with the VM 128.1 and the reference in the general purpose register or in the hypervisor SIE block 540 is changed to memory locations in that proxy page, the firmware 124 provides control to the hypervisor 112 with the cause code of the interrupt. Hypervisor 112 may write data expected from VM 128.1 to the referenced address in proxy page 544 (e.g., arrow 554 indicates a reference to a storage location of the HV accessible pool of proxy pages) and continues VM 128.1 by issuing an SIE command. The firmware 124 then copies the data written by the hypervisor 112 from the proxy pages 544 back to the VM memory 531 as needed.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 appreciated that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, may be implemented by computer readable program instructions.The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer readable storage medium (or media) having thereon computer readable program instructions that cause a processor to carry out aspects of the present invention.The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution unit. The computer readable storage medium may be, for example, but is not limited to, an electronic storage unit, a magnetic storage unit, an optical storage unit, an electromagnetic storage unit, a semiconductor storage unit, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk (floppy disk), a mechanically encoded device such as punch-cards or raised structures in a groove in which instructions are recorded, or any suitable combination of the foregoing. A computer readable storage medium used herein should not be construed as being, per se, transitory signals such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through an optical fiber cable), or electrical signals transmitted through a line.Computer readable program instructions described herein may be downloaded from a computer readable storage medium to respective data processing / processing devices or via a network, e.g., the Internet, a local area network, a wide area network, and / or a wireless network to an external computer or storage device. The network may include copper transmission cables, optical fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each data processing / processing unit receives computer readable program instructions from the network and passes the computer readable program instructions for storage in a computer readable storage medium in the respective data processing / processing unit.Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source code, or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute on only the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer, and partially on a remote computer, or only on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made 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 (FPGA), or programmable logic arrays (PLA), may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to perform aspects of the present invention.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 appreciated that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, may be implemented by computer readable program instructions.These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to form a machine, such that instructions executed via the processor of the computer or other programmable data processing apparatus generate means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, other programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions that implement aspects of the function / effect specified in the flowchart and / or block diagram block or blocks.The computer readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to effect a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer implemented process such that the instructions performed on the computer, other programmable apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.The flowchart 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 flowchart or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions indicated in the block may not occur in the order indicated in the figures. For example, two blocks shown in sequence may actually be executed substantially simultaneously, or the blocks may occasionally be executed in the reverse order depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustration, may be implemented by systems based on dedicated hardware that performs the specified functions or effects, or combinations of dedicated hardware and computer instructions.FIG. 6 shows a block diagram of components of a computing environment, in accordance with an embodiment of the present disclosure. It is understood that FIG. 6 provides merely an illustration of one implementation and does not imply limitations with respect to the environments in which different embodiments may be implemented.The computing environment shown in FIG. 6 may include one or more processors 602, one or more computer readable RAMs 604, one or more computer readable ROMs 606, a read / write drive or interface 614, a network adapter or interface 616, each interconnected via a computing structure 618. The data processing structure 618 may be implemented in any architecture developed for passing data and / or control information between processors (such as microprocessors, communication and network processors, etc.), system memory, peripheral devices, and any other hardware components in a system.One or more operating systems 610 and one or more application programs (such as application program 611) may be stored on one or more computer readable storage media 608 for execution by one or more of processors 602 via one or more of corresponding RAMs 604 (which typically include cache memories). In the illustrated embodiment, each of the computer readable storage media 608 can be a magnetic disk storage unit of an internal hard disk drive, CD-ROM, DVD, flash drive, magnetic tape, magnetic disk, optical disk, a semiconductor storage unit such as RAM, ROM, EPROM, flash memory, or any other computer readable tangible storage unit capable of storing a computer program and digital information.The computing environment 600 may also include an R / W drive or interface 614 to read from or write to one or more portable computer readable storage media. Application programs may be stored on one or more of the portable computer readable storage media 626, read via the corresponding R / W drive or interface 614, and loaded into the corresponding computer readable storage media 608.The computing environment illustrated in FIG. 6 may also include a network adapter or network interface 616, such as a TCP / IP adapter card or a wireless communication adapter (such as a 4G wireless communication adapter using OFDMA technology) for connecting to a network 617. Application programs may be downloaded from an external computer or storage device via a network (e.g., the Internet, a local area network, or other wide area network, or a wireless network and network adapter or interface 616. From the network adapter or interface 616, the programs may be loaded into computer readable storage media 608. The network may include copper transmission cables, optical fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers.The computing environment illustrated in FIG. 6 may also include a display screen 620, a keyboard or keypad 622, and a computer mouse or touch-sensitive panel 624. Device drivers 612 connect to display screen 620 for pictorial presentation, keyboard or keypad 622, computer mouse or touch sensitive panel, and / or to display screen 620 for pressure sensing input of alphanumeric characters and user selection indicia. The device drivers 612, R / W drive or interface 614, and network adapter or interface 616 may include hardware and software (stored in computer readable storage media 608 and / or in ROM 606).An illustrative cloud computing environment 700 is shown in FIG. 7. As shown, cloud computing environment 700 includes one or more cloud computing nodes 710 with which local computing devices used by cloud users, such as a personal digital assistant (PDA) or cellular phone 740A, a desktop computer 740B, a laptop computer 740C, and / or an automobile computer system 740N, may communicate. Computing nodes 710 may communicate with each other. They may be physically or virtually grouped (not shown) in one or more networks such as private, community, public, or hybrid clouds as described above, or in a combination thereof. This allows cloud computing environment 700 to offer infrastructure, platforms, and / or software as services for which a cloud user does not need to keep resources in a local computing device. It should be appreciated that the types of computing devices 740A-N shown in FIG. 7 are intended to be illustrative only, and that computing nodes 710 and cloud computing environment 700 may communicate with each type of computerized device via any type of network and / or network addressable connection (e.g., using a network browser).In FIG. 8, a set of functional abstraction layers provided by the cloud computing environment 700 (FIG. 7 ) is shown. It should be understood from the outset that the components, layers, and functions shown in FIG. 8 are intended to be illustrative only and embodiments of the invention are not limited thereto. As illustrated, the following layers and corresponding functions are provided:The hardware and software layer 800 includes hardware and software components. Examples of hardware components include: mainframe computers 801, reduced instruction set computer (RISC) architecture based servers 802; servers 803; blade servers 804; storage units 805; and networks and networking components 806. In some embodiments, software components include network application server software 807 and database software 808.Virtualization layer 870 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 871; virtual storage devices 872; virtual networks 873 including virtual private networks; virtual applications and operating systems 874; and virtual clients 875.In one example, management layer 880 may provide the functions described below. Resource provisioning 881 (resource provisioning) ensures dynamic creation of computing resources and other resources used to perform tasks in the cloud computing environment. Metering and Pricing 882 (metering and Pacing) provides a cost tracking function on the resources used in the cloud computing environment as well as billing or billing (billing or Issuing) for the use of these resources. In one example, these resources may include application software licenses. Security (security) provides authentication for cloud clients and tasks as well as protection of data and other resources. User Portal 883 (User Portal) provides access to the cloud computing environment for customers and system administrators. Quality of service (Service Level Management) management 884 allocates and manages cloud computing resources so that prescribed quality of service values are met. Service level agreement (SLA) scheduling and fulfillment 885 provides for a preparatory reservation and acquisition of cloud computing resources that are expected to be in future need according to a Quality of Service Agreement (SLA).Workload layer 890 provides examples of the functionality for which the cloud computing environment may be used. Examples of workload and functions that can be provided by this layer include: mapping and navigation 891; software development and lifecycle management 892; virtual classroom generation content provision 893; data analytics processing 894; transaction processing 895; and transparent, secure retrieval processing 896 processing.The programs described herein are characterized based on the application for which they are implemented in a particular embodiment of the invention. It should be understood, however, that certain program nomenclature is used herein for convenience only, and thus the invention should not be limited to exclusive use in a specific application and / or implied by such nomenclature.Based on the foregoing, a computer system, method and computer program product have been disclosed. Numerous modifications and substitutions may be made without departing from the scope of the present invention. Therefore, the present invention has been disclosed by way of example and not limitation.The programs described herein are characterized based on the application for which they are implemented in a particular embodiment of the invention. It should be understood, however, that certain program nomenclature is used herein for convenience only, and thus the invention should not be limited to exclusive use in a specific application and / or implied by such nomenclature.Based on the foregoing, a computer system, method and computer program product have been disclosed. Numerous modifications and substitutions may be made without departing from the scope of the present invention. Therefore, the present invention has been disclosed by way of example and not limitation.In one or more embodiments, the invention may be described by the following combinations of features.In a first embodiment according to the present invention, a computer implemented method for transparently, securely performing fetch operations comprises: implementing a virtual machine, VM, in an environment, the environment comprising a hypervisor executing on hardware and firmware managing the hardware and managing the states of the virtual machine, the virtual machine configured to access a corresponding VM memory of the environment; wherein after implementing the virtual machine, buffers are provided by the hypervisor for the firmware; executing VM instructions of the virtual machine; by the firmware, retrieving a VM instruction of the VM instructions that requires accessing instruction data, the instruction data comprising: VM data stored in the VM memory and / or at least a portion of the virtual machine, VM, state; after retrieving the VM instruction, copying the VM state by the firmware to a VM state shadow buffer associated with the firmware; copying the instruction data by the firmware to the buffers; before resuming execution of the VM instructions following the fetched VM instruction, updating the VM state shadow buffer and / or the VM data in the VM memory using result data in the buffers when execution of the fetched instruction results in the result data; and resuming execution of the VM instructions following the fetched VM instruction based on the state stored in the VM state shadow buffer.In another aspect according to the first embodiment explained above, the buffers include a VM state buffer and a storage pool. In another aspect, according to the above-discussed embodiment, copying the instruction data to the buffers includes: copying the at least a portion of the VM state by the firmware from the shadow VM state buffer to the VM state buffer; when the instruction data includes VM data stored in the VM memory, copying the VM data by the firmware from the VM memory to the memory pool; and in the VM state buffer by the firmware, replacing first addresses of data in the VM memory with corresponding second addresses in the memory pool.In another aspect, according to the first embodiment discussed above, updating the VM state shadow buffer and / or the VM data in the VM memory includes: in response to determining that the result data includes processed VM data in the memory pool, copying at least a portion of the processed data from the memory pool to corresponding addresses of the first addresses with the firmware; copying at least a portion of the result data stored in the VM state buffer to the VM state shadow buffer with the firmware; in the VM state shadow buffer, replacing addresses of the second addresses with corresponding addresses of data in the VM memory with the firmware.In another aspect of the first embodiment discussed above, the "at least a portion of the processed VM data" includes expected data determined by the firmware using the fetched VM instruction and arguments of the fetched VM instruction.In another aspect according to the first embodiment explained above and all aspects explained above, the instruction data is acquired by the firmware using the fetched VM instruction and arguments of the fetched VM instruction.In another aspect according to the first embodiment explained above and all aspects explained above, after implementing the virtual machine, the method may further include preventing the hypervisor from accessing the VM memory.In another aspect according to the first embodiment discussed above and all features discussed above, the method further includes filling data unused by the firmware in the storage pool and the buffer for the VM state with fingledged data.In another aspect according to the first embodiment explained above, the fingledged data includes arbitrary data and / or zeros.In another aspect according to the first embodiment discussed above and all features discussed above, the method further comprises: executing, by the hypervisor, the fetched VM command, further comprising: requesting, by the hypervisor, to resume executing the VM commands following the fetched VM command.In another aspect according to the first embodiment discussed above and all features discussed above, the method further comprises: copying the state of the virtual machine to the VM state shadow buffer associated with the firmware by the firmware executed after implementing a virtual CPU, vCPU, for the virtual machine or after executing the VM instructions in the vCPU.
Claims
A computer implemented method for transparently, securely performing fetch operations, comprising: deploying a virtual machine (128.1-128.N), VM in an environment, the environment comprising a hypervisor (112) executing on hardware and firmware (124) managing the hardware and managing a VM state, the virtual machine configured to access a VM memory of the environment; providing, by the hypervisor (112), a buffer (142, 144) for the firmware (124) in response to the deployment of the virtual machine (128.1-128.N), the buffer comprising a VM state buffer and a memory pool; executing VM instructions of the virtual machine (128.1-128.N); by the firmware (124), intercepting a VM instruction of the VM instructions that requires accessing instruction data, wherein instruction data includes VM data stored in the VM memory and at least a portion of a state of the virtual machine; after interception of the VM instruction by the firmware (124), copying the VM state to a shadow VM state buffer (140) associated with the firmware (124); by the firmware (124), copying the instruction data to the buffer; by the hypervisor (112), executing the fetched VM instruction using the buffer (142, 144); updating at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to executing the fetched VM command resulting in the result data; and executing the VM commands following the fetched VM command based on a state stored in the updated VM state shadow buffer (140), wherein copying the command data to the buffer comprises: copying, by the firmware (124), at least a portion of the VM state from the VM state shadow buffer (140) to the VM state buffer; by the firmware (124) copying the VM data from the VM memory to the memory pool in response to the command data comprising VM data stored in the VM memory; and by the firmware (124) in the VM state buffer replacing first addresses on data in the VM memory with corresponding second addresses in the memory pool, and wherein updating at least a portion of the shadow VM state buffer (140) and the VM data in the VM memory comprises: determining expected data by the firmware (124) using the retrieved VM command and arguments of the retrieved VM command; in response to determining that the result data comprises expected data in the memory pool, the firmware (124) copying at least a portion of the expected data from the memory pool to corresponding addresses of the first addresses; the firmware (124) copying at least a portion of the result data stored in the VM state buffer to the VM state shadow buffer (140); and the firmware (124) in the VM state shadow buffer (140) replacing addresses of the second addresses with corresponding addresses to data in the VM memory.The method of claim 1, wherein updating at least a portion of the VM state shadow buffer (140) follows interception of the VM instruction.The method of claim 1, further comprising: prior to resuming execution of the VM instructions following the fetched VM instruction, executing updating of at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to execution of the fetched VM instruction by the hypervisor (112) resulting in the result data; and resuming execution of the VM instructions following the fetched VM instruction based on the state stored in the updated VM state shadow buffer (140).The method of claim 1, further comprising: interrupting execution of the VM commands; before resuming execution of the VM commands after the interruption, executing updating of at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to execution of the interrupt control program by the hypervisor (112); and resuming execution of the VM commands that follow based on the state stored in the updated VM state shadow buffer (140).The method of claim 1, wherein the instruction data is determined by the firmware (124) using the fetched VM instruction and arguments of the fetched VM instruction.The method of claim 1, further comprising, after deployment of the virtual machine (128.1-128.N), preventing access of the hypervisor (112) to the VM memory.The method of claim 1, further comprising: filling, by the firmware (124), unused data storage locations in the storage pool and the buffer for the VM state with fingled data.The method of claim 7, wherein the fingledged data comprises arbitrary data and / or zeroes.The method of claim 1, wherein executing the fetched VM command by the hypervisor (112) further comprises requesting the hypervisor (112) to resume executing the VM commands following the fetched command.The method of claim 1, wherein copying the state of the virtual machine (128.1-128.N) to the VM state shadow buffer (140) associated with the firmware (124) is performed by the firmware (124) after employing a virtual CPU, vCPU, for the virtual machine or after executing the VM instructions in the vCPU.A computer system for transparently, securely performing fetch operations, the computer system comprising: one or more processors; one or more computer readable storage media; program instructions stored in the computer readable storage media for execution by at least the one or more processors, the program instructions comprising: a hypervisor (112) executing on hardware, the hypervisor (112) configured to deploy the virtual machine (128.1-128.N), VM in the computer system, the virtual machine configured to access a corresponding VM memory of the computer system; after deployment of the virtual machine (128.1-128.N), providing a buffer (142, 144) to the firmware (124) by the hypervisor (112) and executing VM instructions of the virtual machine (128.1-128.N), the buffer including a VM state buffer and a memory pool; a firmware (124) that is part of the computer system, the firmware (124) managing the hardware and managing virtual machine (128.1-128.N) states, the firmware (124) configured to intercept a VM instruction of the VM instructions that requires accessing instruction data, the instruction data comprising VM data stored in the VM memory and at least a portion of the virtual machine, VM, state; after interception of the VM instruction by the firmware (124), copying the VM state to a VM state shadow buffer (140) associated with the firmware (124); by the firmware (124), copying the instruction data to the buffer; wherein the hypervisor (112) is configured to execute a fetched VM instruction using the buffer (142, 144); wherein the firmware (124) is configured to update at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using results data in the buffer in response to executing the fetched VM instruction resulting in the results data; wherein the firmware (124) is further configured to execute the VM instructions following the fetched VM instruction based on a state stored in the updated VM state shadow buffer (140), copying the instruction data to the buffer comprising: by the firmware (124), copying at least a portion of the VM state from the VM state shadow buffer (140) to the VM state buffer; by the firmware (124), copying the VM data from the VM memory to the memory pool in response to the instruction data comprising VM data stored in the VM memory; A firmware (124) in the VM state buffer replacing first addresses on data in the VM memory with corresponding second addresses in the memory pool, and wherein updating at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory comprises: determining, by the firmware (124), expected data using the retrieved VM instruction and arguments of the retrieved VM instruction; responsive to determining that the result data comprises expected data in the memory pool, copying, by the firmware (124), at least a portion of the expected data from the memory pool to corresponding addresses of the first addresses; by the firmware (124) copying at least a portion of the result data stored in the VM state buffer to the VM state shadow buffer (140); and by the firmware (124) in the VM state shadow buffer (140) replacing addresses of the second addresses with corresponding addresses to data in the VM memory.The computer system of claim 11, further comprising: the firmware (124) configured to update at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer, prior to resuming execution of the VM instructions following the fetched VM instruction and in response to execution of the fetched instruction by the hypervisor (112) resulting in the result data; and wherein the firmware (124) is further configured to resume execution of the VM instructions following the fetched instruction based on the state stored in the VM state shadow buffer (140).The computer system of claim 11, further comprising: interrupting execution of the VM instructions; the firmware (124) configured to update at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer, prior to resuming execution of the VM instructions following the fetched VM instruction, and in response to execution of the fetched instruction by the hypervisor (112) resulting in the result data; and wherein the firmware (124) is further configured to resume execution of the VM instructions following the fetched instruction based on the state stored in the VM state shadow buffer (140).Firmware (124) for transparently, securely performing fetch operations, the firmware (124) managing hardware and virtual machine (128.1-128.N) states, the firmware (124) being configured to: intercept a VM instruction from VM instructions of the VM that requires accessing instruction data, the instruction data comprising VM data stored in a VM memory and at least a portion of the virtual machine, VM, state; copy the VM state to a shadow VM state buffer (140) associated with the firmware (124); copy the instruction data to buffer; updating at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to executing the fetched VM command resulting in the result data; and executing the VM commands following the fetched VM command based on a state stored in the VM state shadow buffer (140), wherein copying the command data to the buffer comprises: copying, by the firmware (124), at least a portion of the VM state from the VM state shadow buffer (140) to the VM state buffer; by the firmware (124) copying the VM data from the VM memory to the memory pool in response to the command data comprising VM data stored in the VM memory; and by the firmware (124) in the VM state buffer replacing first addresses on data in the VM memory with corresponding second addresses in the memory pool, and wherein updating at least a portion of the shadow VM state buffer (140) and the VM data in the VM memory comprises: determining expected data by the firmware (124) using the retrieved VM command and arguments of the retrieved VM command; in response to determining that the result data comprises expected data in the memory pool, the firmware (124) copying at least a portion of the expected data from the memory pool to corresponding addresses of the first addresses; the firmware (124) copying at least a portion of the result data stored in the VM state buffer to the VM state shadow buffer (140); and the firmware (124) in the VM state shadow buffer (140) replacing addresses of the second addresses with corresponding addresses to data in the VM memory.The firmware (124) of claim 14, further comprising: prior to resuming execution of the VM instructions following the fetched VM instruction, executing updating of at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to execution of the fetched VM instruction by the hypervisor (112) resulting in the result data; and resuming execution of the VM instructions following the fetched VM instruction based on the state stored in the updated VM state shadow buffer (140).The firmware (124) of claim 14, further comprising: interrupting execution of the VM instructions; prior to resuming execution of the VM instructions following the fetched VM instruction, executing updating of at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to execution of the fetched VM instruction by the hypervisor (112) resulting in the result data; and resuming execution of the VM instructions following the fetched VM instruction based on the state stored in the updated VM state shadow buffer (140).A computer program product for transparently, securely performing fetch operations, the computer program product comprising one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions executable by a processor to: deploy a virtual machine (128.1-128.N), VM, in an environment, the environment comprising a hypervisor (112) executing on hardware and firmware (124) that manages the hardware and manages states of the virtual machine (128.1-128.N), the virtual machine configured to access a corresponding VM memory of the environment; providing a buffer (142, 144) for the firmware (124) by the hypervisor (112) after deployment of the virtual machine (128.1-128.N), the buffer comprising a VM state buffer and a memory pool; executing VM commands of the virtual machine (128.1-128.N); the firmware (124) intercepting a VM command of the VM commands that requires accessing command data, the command data comprising VM data stored in the VM memory and at least a portion of the virtual machine, VM, state; copying the VM state to a VM state shadow buffer (140) associated with the firmware (124) after interception of the VM command by the firmware (124); copying the command data to the buffer by the firmware (124); executing, by the hypervisor (112), the fetched VM command using the buffer (142, 144); updating the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer in response to executing the fetched VM command resulting in the result data; executing the VM instructions following the fetched VM instruction based on a state stored in the updated VM state shadow buffer (140), wherein copying the instruction data to the buffer comprises: copying, by the firmware (124), at least a portion of the VM state from the VM state shadow buffer (140) to the VM state buffer; copying, by the firmware (124), the VM data from the VM memory to the memory pool in response to the instruction data comprising VM data stored in the VM memory; A firmware (124) in the VM state buffer replacing first addresses on data in the VM memory with corresponding second addresses in the memory pool, and wherein updating at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory comprises: determining, by the firmware (124), expected data using the retrieved VM instruction and arguments of the retrieved VM instruction; responsive to determining that the result data comprises expected data in the memory pool, copying, by the firmware (124), at least a portion of the expected data from the memory pool to corresponding addresses of the first addresses; by the firmware (124) copying at least a portion of the result data stored in the VM state buffer to the VM state shadow buffer (140); and by the firmware (124) in the VM state shadow buffer (140) replacing addresses of the second addresses with corresponding addresses to data in the VM memory.The computer program product of claim 17, further comprising: updating at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer, prior to resuming execution of the VM instructions following the fetched VM instruction and in response to execution of the fetched instruction by the hypervisor (112) resulting in the result data; and resuming execution of the VM instructions following the fetched instruction based on the state stored in the VM state shadow buffer (140).The computer program product of claim 17, further comprising: interrupting execution of the VM instructions; updating at least a portion of the VM state shadow buffer (140) and the VM data in the VM memory using result data in the buffer, prior to resuming execution of the VM instructions following the fetched VM instruction and in response to execution of the fetched instruction by the hypervisor (112) resulting in the result data; and resuming execution of the VM instructions following the fetched instruction based on the state stored in the VM state shadow buffer (140).
Citation Information
Patent Citations
Virtualized computer, monitoring method of the virtualized computer and a computer readable medium thereof
US20090083736A1
Enabling efficient nested virtualization
US20140229943A1
