WO2006050534A1 - Timer offsetting mechanism in a virtual machine environment - Google Patents

Timer offsetting mechanism in a virtual machine environment Download PDF

Info

Publication number
WO2006050534A1
WO2006050534A1 PCT/US2005/040450 US2005040450W WO2006050534A1 WO 2006050534 A1 WO2006050534 A1 WO 2006050534A1 US 2005040450 W US2005040450 W US 2005040450W WO 2006050534 A1 WO2006050534 A1 WO 2006050534A1
Authority
WO
WIPO (PCT)
Prior art keywords
timer
value
offset
vmm
control
Prior art date
Application number
PCT/US2005/040450
Other languages
French (fr)
Inventor
Steven Bennett
Gilbert Neiger
Andrew Anderson
Original Assignee
Intel Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Intel Corporation filed Critical Intel Corporation
Priority to JP2007539377A priority Critical patent/JP4584315B2/en
Priority to DE112005002347T priority patent/DE112005002347T5/en
Publication of WO2006050534A1 publication Critical patent/WO2006050534A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors

Definitions

  • Embodiments of the invention relate generally to virtual machines, and more specifically to a timer offsetting mechanism in a virtual machine environment.
  • Timers are typically used by operating systems and application software to schedule activities.
  • an operating system kernel may use a timer to allow a plurality of user-level applications to time-share the resources of the system (e.g., the central processing unit (CPU)).
  • An example of a timer used on a personal computer (PC) platform is the 8254 Programmable Interval Timer. This timer may be configured to issue interrupts after a specified interval or periodically.
  • TSC timestamp counter
  • ISA instruction set architecture
  • Intel ® Pentium ® 4 referred to herein as the IA-32 ISA
  • the TSC is a 64-bit counter that is set to 0 following the hardware reset of the processor, and then incremented every processor clock cycle, even when the processor is halted by the HLT instruction.
  • the TSC cannot be used to generate interrupts. It is a time reference only, useful to measure time intervals.
  • the IA-32 ISA provides an instruction (RDTSC) to read the value of the TSC and an instruction (WRMSR) to write the TSC.
  • RTSC instruction
  • WRMSR instruction
  • the TSC is used to properly synchronize processors and schedule processes appropriately.
  • the values of the TSC on all processors are synchronized and most operating systems assume that the TSC then count at the same rate. If the TSC values drift between processors (e.g., if one processor counts at a different rate that the others), scheduling of processes by the operating system may be confused.
  • Figure 1 illustrates one embodiment of a virtual-machine environment, in which the present invention may operate
  • Figure 2 is a flow diagram of one embodiment of a process for controlling access of VMs to a timer
  • Figure 3 is a flow diagram of one embodiment of a process for configuring fields associated timer offsetting; and [0009] Figures 4 and 5 are flow diagrams of two alternative embodiments of a process for calculating a timer offset value for a VM. Description of Embodiments
  • the present invention may be provided as a computer program product or software which may include a machine or computer-readable medium having stored thereon instructions which may be used to program a computer (or other electronic devices) to perform a process according to the present invention.
  • processes of the present invention might be performed by specific hardware components that contain hardwired logic for performing the processes, or by any combination of programmed computer components and custom hardware components.
  • a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), but is not limited to, floppy diskettes, optical disks, Compact Disc, Read-Only Memory (CD- ROMs), and magneto-optical disks, Read-Only Memory (ROMs), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic or optical cards, flash memory, a transmission over the Internet, electrical, optical, acoustical or other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.) or the like.
  • a machine e.g., a computer
  • ROMs Read-Only Memory
  • RAM Random Access Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • a design may go through various stages, from creation to simulation to fabrication.
  • Data representing a design may represent the design in a number of manners.
  • the hardware may be represented using a hardware description language or another functional description language.
  • a circuit level model with logic and/or transistor gates may be produced at some stages of the design process.
  • most designs, at some stage reach a level of data representing the physical placement of various devices in the hardware model.
  • data representing a hardware model may be the data specifying the presence or absence of various features on different mask layers for masks used to produce the integrated circuit.
  • the data may be stored in any form of a machine- readable medium.
  • FIG. 1 illustrates one embodiment of a virtual-machine environment 100, in which the present invention may operate.
  • bare platform hardware 116 comprises a computing platform, which may be capable, for example, of executing a standard operating system (OS) or a virtual-machine monitor (VMM), such as a VMM 112.
  • OS operating system
  • VMM virtual-machine monitor
  • the VMM 112 though typically implemented in software, may emulate and export a bare machine interface to higher level software.
  • higher level software may comprise a standard or real-time OS, may be a highly stripped down operating environment with limited operating system functionality, may not include traditional OS facilities, etc.
  • the VMM 112 may be run within, or on top of, another VMM.
  • VMMs may be implemented, for example, in hardware, software, firmware or by a combination of various techniques.
  • the platform hardware 116 can be of a personal computer (PC), mainframe, handheld device, portable computer, set-top box, or any other computing system.
  • the platform hardware 116 includes a processor 118 and memory 120.
  • Processor 118 can be any type of processor capable of executing software, such as a microprocessor, digital signal processor, microcontroller, or the like.
  • the processor 118 may include microcode, programmable logic or hardcoded logic for performing the execution of method embodiments of the present invention. Although Figure 1 shows only one such processor 118, there may be one or more processors in the system.
  • Memory 120 can be a hard disk, a floppy disk, random access memory (RAM), read only memory (ROM), flash memory, any combination of the above devices, or any other type of machine medium readable by processor 118.
  • Memory 120 may store instructions and/or data for performing the execution of method embodiments of the present invention.
  • the VMM 112 presents to other software (i.e., "guest” software) the abstraction of one or more virtual machines (VMs), which may provide the same or different abstractions to the various guests.
  • Figure 1 shows two VMs, 102 and 114.
  • the guest software running on each VM may include a guest OS such as a guest OS 104 or 106 and various guest software applications 108 and 110.
  • Each of the guest OSs 104 and 106 expects to access physical resources (e.g., processor registers, memory and I/O devices) within the VMs 102 and 114 on which the guest OS 104 or 106 is running and to perform other functions.
  • physical resources e.g., processor registers, memory and I/O devices
  • the guest OS 104 and 106 expects to have access to all registers, caches, structures, I/O devices, memory and the like, according to the architecture of the processor and platform presented in the VMs 102 and 114.
  • the resources that can be accessed by the guest software may either be classified as "privileged" or "non-privileged.”
  • the VMM 112 facilitates functionality desired by guest software while retaining ultimate control over these privileged resources.
  • Non-privileged resources do not need to be controlled by the VMM 112 and can be accessed by guest software.
  • each guest OS expects to handle various fault events such as exceptions (e.g., page faults, general protection faults, etc.), interrupts (e.g., hardware interrupts, software interrupts), and platform events (e.g., initialization (INIT) and system management interrupts (SMIs)).
  • exceptions e.g., page faults, general protection faults, etc.
  • interrupts e.g., hardware interrupts, software interrupts
  • platform events e.g., initialization (INIT) and system management interrupts (SMIs)
  • IIT initialization
  • SMIs system management interrupts
  • control may be transferred to the VMM 112.
  • the transfer of control from guest software to the VMM 112 is referred to herein as a VM exit.
  • the VMM 112 may return control to guest software.
  • the transfer of control from the VMM 112 to guest software is referred to as a VM entry.
  • the processor 118 controls the operation of the VMs 102 and 114 in accordance with data stored in a virtual machine control structure (VMCS) 124.
  • the VMCS 124 is a structure that may contain state of guest software, state of the VMM 112, execution control information indicating how the VMM 112 wishes to control operation of guest software, information controlling transitions between the VMM 112 and a VM, etc.
  • the processor 118 reads information from the VMCS 124 to determine the execution environment of the VM and to constrain its behavior.
  • the VMCS is stored in memory 120. In some embodiments, multiple VMCS structures are used to support multiple VMs.
  • the VMM 112 may need to use a timer to schedule resources, provide quality of service, assure security, and perform other functions. For example, in the instruction set architecture (ISA) of the Intel ® Pentium ® 4 (referred to herein as the IA-32 ISA), the VMM 112 may use the timestamp counter (TSC) to perform these functions. Each of the VMs 102 and 114 may also need to use the timer to calibrate timing loops and do performance optimization. Because the VMs 102 and 114 have no knowledge of each other or the VMM 112, the timer's values provided to the VM 102 or 114 may need to be adjusted to present the illusion that the guest OS 104 or 106 is running on a dedicated hardware platform, not a virtual platform.
  • TSC timestamp counter
  • a timer offsetting mechanism is provided to properly virtualize the timer and thus preserve the illusion for the guest OSes 104 and 106.
  • the timer offsetting mechanism includes a timer offset configuration module 126 and timer access logic 122.
  • the timer offset configuration module 126 is responsible for providing values for fields associated with timer offsetting prior to requesting a transition of control to the VM 102 or 114. In one embodiment, these values may include an offset value specifying an offset to be used by the processor 118 when providing timer values to the VM 102 or 114 and a timer offsetting indicator specifying whether timer offsetting is enabled for the VM 102 or 114.
  • the timer offset value is a signed value, allowing the VMM 112 to present a timer value to guest software that is less than or greater than the actual hardware timer value.
  • the timer offset value is added to the timer value before returning the value to the VM 102 or 114.
  • the fields associated with timer offsetting also include a timer access control indicator specifying whether VM requests to access the timer are associated with a transition of control to the VMM (e.g., whether VM requests to access the timer should cause VM exits).
  • the offset value for the VM 102 or 114 accounts for the aggregation of time intervals during which this VM was not running due to the execution of the VMM 112 and the other VM. For example, suppose that, when the timer's value is 1000 ticks, the VM 102 expects the value of the timer to be 1000. Then, at 1500 ticks, the VM 102 may be interrupted by a VM exit, following by the execution of the VMM 112 for 100 ticks (timer value of 1600 ticks), after which the VMM 112 may request to enter the VM 114.
  • the VM 114 may then execute for 600 ticks (timer value of 2200 ticks) until a VM exit, resulting in the execution of the VMM 112 for 200 ticks (timer value 2400), which may then request to re-enter the VM 102.
  • timer value 2400 timer value 2400
  • the VM 102 expects the timer to have the value of 1500 ticks. Instead, the actual timer value at this time is 2400 ticks.
  • the offset value provided by the VMM 112 for the VM 102 will be 900 ticks, which is the aggregation of time intervals during which the VM 112 was not running due to the execution of the VM 114 and the VMM 112.
  • the VMM 112 would store the offset value of 900 to the timer offset field so that when the VM 102 attempts to read the timer, the value provided to the VM 102 will be computed by reducing the current timer value by 900.
  • the offset value may also be calculated by computing the difference between the actual timer value and the timer value expected by the VM 102.
  • the value provided to the VM 102 when it attempts to read the timer is computed by adding the current timer value to the offset value configured by the VMM 112.
  • the offset value stored by the VMM is a negative number. In the example described above, the value stored is -900.
  • the offset value is determined by the VMM 112.
  • the offset value is determined by the processor 118, and the fields and controls associated with timer offsetting may include a timer offsetting indicator, an adjust offset indicator, a guest timer field, a save timer indicator, and a timer offset field.
  • the three indicator values may be combined in a variety of ways.
  • the adjust offset indicator and the save timer indicator may be the same control (i.e., enabling the adjustment of the timer offset implicitly enables the saving of the timer), as will be described in more detail below. In some embodiments, some of the above indicators may not be present.
  • the timer offsetting indicator may not be present, and timer offsetting is assumed to be always enabled, as will be discussed in greater detail below.
  • the fields and controls associated with timer offsetting are stored in the VMCS 124.
  • the fields and controls associated with timer offsetting may reside in the processor 118, a combination of the memory 120 and the processor 118, or in any other storage location or locations.
  • separate fields and controls associated with timer offsetting are maintained for each of the VMs 102 and 114.
  • the same fields and controls associated with timer offsetting are maintained for both VMs 102 and 144 and are updated by the VMM 112 before each VM entry.
  • each of the multiple logical processors is associated with separate fields and controls associated with timer offsetting, and the VMM 112 configures the fields and controls associated with timer offsetting for each of the multiple logical processors.
  • the processor 118 includes timer access logic 122 that is responsible for virtualizing accesses of the VM 102 and 114 to the timer based on the timer offsetting values. In particular, if the timer access logic 122 determines that timer offsetting is enabled, it provides an adjusted timer value to the VM 102 or 114. In one embodiment, the timer access logic 122 determines if timer offsetting is enabled by examining a timer offsetting indicator value.
  • the timer access logic 122 when the timer access logic 122 receives a request for a current value of the timer from the VM 102 or 114, it reads the current value of the timer, adds the offset value to the current value of the timer, and returns the resulting value to the VM 102 or 114, thus presenting the VM 102 or 114 with the illusion that it is running on a dedicated hardware platform.
  • the offset value is a signed value.
  • the offset values may be determined for the VM 102 and 114 by the VMM 112 (e.g., by the timer offset configuration module 126).
  • the offset values are determined by the processor 118 (e.g., by the timer access logic 122).
  • One embodiment of a process for determining an offset value by the processor 118 will be discussed in more detail below in conjunction with Figure 5.
  • FIG. 2 is a flow diagram of one embodiment of a process 200 for controlling access of VMs to a timer.
  • the process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both.
  • process 200 is performed by timer access logic 122 of Figure 1.
  • process 200 begins with processing logic receiving a request to transition control to a VM from a VMM (i.e., the request for VM entry) (processing block 202).
  • the VM entry request is received via a VM entry instruction executed by the VMM.
  • processing logic determines whether timer offsetting is enabled (processing block 204). In one embodiment, processing logic makes this determination as part of the transition to the VM (e.g., when checking and loading VM state and execution control information stored in the VMCS). In one embodiment, the determination is based on the current value of a timer offsetting indicator stored in the VMCS for the VM being entered.
  • processing logic uses a timer offset value when responding to the requests of the VM for a current timer value.
  • the timer offset value is determined by the VMM prior to issuing the request to transition control to this VM.
  • the offset value is automatically determined by the processor when transitioning control to this VM.
  • One embodiment of a process for determining the offset value by the processor will be discussed in more detail below in conjunction with Figure
  • processing logic if timer offsetting is enabled, processing logic loads an offset register with the timer offset value stored in the VMCS (processing block 206). Alternatively, if timer offsetting is disabled, processing logic loads the offset register with 0 (processing block 206). Next, processing logic begins the execution in the VM (processing block 210).
  • processing logic may receive the VM's requests for a current value of the timer.
  • the VM may issue a request for a current value of the TSC by executing the RDMSR instruction or a RDTSC instruction to read the TSC.
  • processing logic determines whether the VM requests a current value of the timer. If so, then in one embodiment, processing logic determines whether this request is associated with a transition of control to the VMM (processing box 214).
  • a timer access control indicator may be set to an "exit" value to cause a VM exit on each request of the VM to access the timer.
  • the timer access control indicator is a single bit, which if set to 1 indicates that requests of a VM to access the timer cause VM exits. In one embodiment, this indicator may be stored in the VMCS. If the request is not associated with a transition of control to the VMM, processing logic proceeds to processing block 216.
  • processing logic transitions control to the VMM, indicating to the VMM that the VM exit was caused by an attempt to access the timer (processing block 220).
  • processing logic loads the offset register with 0 (processing block 218) to allow the VMM to obtain the actual value of the timer.
  • a timer access control indicator is not used, and processing logic does not check for a transition of control to the VMM in response to VM requests for a current value of the timer. Instead, processing logic skips processing block 214 and proceeds directly to processing block 216.
  • processing logic reads the current value of the timer, adds the offset value to the current value of the timer, and returns the result to the VM.
  • the timer offset value is a signed value that is combined with the content of the timer using signed addition.
  • processing logic if processing logic detects an event associated with a VM exit (processing box 222), processing logic loads the offset register with 0 (processing block 218) and transitions control to the VMM, indicating the cause of the VM exit detected in processing block 222 (processing block 220). If processing logic does not detect any events associated with a VM exit, processing logic returns to processing box 212.
  • FIG. 3 is a flow diagram of one embodiment of a process 300 for configuring fields associated with timer offsetting.
  • the process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both.
  • process 300 is performed by a timer offset configuration module 126 of Figure 1.
  • process 300 begins with processing logic deciding that a transition of control to a VM is needed. Prior to issuing a request to transition control to the VM, processing logic determines a timer offset value for the VM
  • processing block 302 and stores the timer offset value in the VMCS (processing block 304).
  • the timer offset value is the aggregation of time intervals during which the VM being entered was not running due to the execution of the VMM and the other VMs.
  • processing logic sets a timer offset indicator to an enabling value (processing block 306) and issues a request to transition control to the VM (e.g., a VM entry request) (processing logic 308).
  • FIG. 3 is a flow diagram of one embodiment of a process 400 for calculating a timer offset value for a VM (as referenced in processing block 302 of Figure 3 for example).
  • process 400 may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both.
  • processing logic may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both.
  • process 400 is performed by a timer offset configuration module 126 of Figure 1.
  • process 400 begins with processing logic calculating the time spent in this VM since the last VM entry (processing block 402). In one embodiment, this time is calculated by determining a VM-entry time (i.e., the timer value just prior to issuing a request to enter the VM) and a VM-exit time (e.g., the timer value at the time of receiving control returned from the VM), and subtracting the VM-entry time from the VM-exit time.
  • a VM-entry time i.e., the timer value just prior to issuing a request to enter the VM
  • a VM-exit time e.g., the timer value at the time of receiving control returned from the VM
  • processing logic calculates the cumulative time spent in the VM by adding the time spent in the VM during the last entry to the previously calculated cumulative time. In one embodiment, processing logic calculates the cumulative time spent in the VM when receiving control returned from the VM. Alternatively, processing logic calculates the cumulative time spent in the VM when issuing a request to return control to this VM.
  • processing logic When processing logic decides to return control to the VM, it reads the current value of the timer (processing block 406), and calculates the timer offset value as a difference between the cumulative time spent in the VM and the current value of the timer (processing block 408).
  • the timer offset value is a signed value.
  • FIG. 5 is a flow diagram of an alternative embodiment of a process for calculating a timer offset value for a VM.
  • the process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both.
  • process 500 is performed by timer offset logic 122 of Figure 1.
  • process 500 begins with processing logic detecting an event associated with a transition of control from VMl to the VMM (processing block 502).
  • processing logic determines whether a save timer indicator is enabled.
  • the save timer indicator is configured by the VMM and stored in the VMCS.
  • processing logic saves a current timer value as a VMl timer value to a guest timer field (processing block 506) and proceeds to processing block 508.
  • the guest timer field is stored in the VMCS.
  • processing logic If the save timer indicator is disabled, processing logic skips processing block 506 and proceeds directly to processing block 508. [0057] At processing block 508, processing logic transitions control to the VMM. [0058] Subsequently, at processing block 510, processing logic receives a request to return control to VMl. In response, processing logic determines whether an adjust offset indicator is enabled (processing block 512). In one embodiment, the adjust offset indicator is configured by the VMM and stored in the VMCS. In another embodiment, the save timer indicator and the adjust offset indicator are represented by the same indicator which is checked both at processing blocks 504 and 512. In another embodiment, a timer offsetting indicator may be evaluated to determine if timer offsetting should be used.
  • the timer offsetting indicator is configured by the VMM and stored in the VMCS.
  • processing logic reads the current timer value (processing block 514), and determines the difference between the current timer value and the VMl timer value saved at processing block 506 by subtracting the saved VMl timer value from the current timer value (processing block 516). Further, processing logic calculates the adjusted timer offset value by subtracting this difference from the timer offset value in the timer offset field (processing block 518). In one embodiment, this adjusted timer offset value is stored to the timer offset field. Next, processing logic transitions control to VMl (processing block 520).
  • processing logic skips processing blocks 514 through 518 and proceeds directly to processing block 520.
  • processing logic retrieves the value of timer offset field for use as the adjusted timer offset value and then proceeds to processing block 520.
  • a virtual guest timer value is calculated (by computing the sum of the current timer offset value and the current value of the timer) and stored to a virtual guest timer field.
  • the virtual guest timer field is stored in the VMCS.
  • the offset value is computed by subtracting the timer value at the time of the VM entry from the virtual guest timer value. While the VM executes, attempts to read the timer will return the current value of the timer adjusted by the offset value.

Abstract

In one embodiment, a method includes receiving a request to transition control to a virtual machine (vm) from virtual machine monitor (vmm), calculating an offset value, receiving, during operation of the vm, a request for a current value of the timer, adjusting the current value of the time based on the offset value, and providing the adjusted timer value to the vm.

Description

TIMER OFFSETTING MECHANISM IN A VIRTUAL MACHINE
ENVIRONMENT
Field [0001] Embodiments of the invention relate generally to virtual machines, and more specifically to a timer offsetting mechanism in a virtual machine environment.
Background [0002] Timers are typically used by operating systems and application software to schedule activities. For example, an operating system kernel may use a timer to allow a plurality of user-level applications to time-share the resources of the system (e.g., the central processing unit (CPU)). An example of a timer used on a personal computer (PC) platform is the 8254 Programmable Interval Timer. This timer may be configured to issue interrupts after a specified interval or periodically. [0003] Another example of a timer is the timestamp counter (TSC) used in the instruction set architecture (ISA) of the Intel® Pentium® 4 (referred to herein as the IA-32 ISA). The TSC is a 64-bit counter that is set to 0 following the hardware reset of the processor, and then incremented every processor clock cycle, even when the processor is halted by the HLT instruction. The TSC cannot be used to generate interrupts. It is a time reference only, useful to measure time intervals. The IA-32 ISA provides an instruction (RDTSC) to read the value of the TSC and an instruction (WRMSR) to write the TSC. When WRMSR is used to write the time-stamp counter, only the 32 low-order bits may be written; the high-order 32 bits are cleared to 0. Because of these writing restrictions, software generally cannot set the TSC forward nor set it backwards to an arbitrary value. [0004] In multi-processor (MP) systems, the TSC is used to properly synchronize processors and schedule processes appropriately. At boot time, the values of the TSC on all processors are synchronized and most operating systems assume that the TSC then count at the same rate. If the TSC values drift between processors (e.g., if one processor counts at a different rate that the others), scheduling of processes by the operating system may be confused. Brief Description of the Drawings
[0005] The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
[0006] Figure 1 illustrates one embodiment of a virtual-machine environment, in which the present invention may operate;
[0007] Figure 2 is a flow diagram of one embodiment of a process for controlling access of VMs to a timer;
[0008] Figure 3 is a flow diagram of one embodiment of a process for configuring fields associated timer offsetting; and [0009] Figures 4 and 5 are flow diagrams of two alternative embodiments of a process for calculating a timer offset value for a VM. Description of Embodiments
[0010] A method and apparatus for controlling access of virtual machines to a timer is described. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention can be practiced without these specific details.
[0011] Some portions of the detailed descriptions that follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer system's registers or memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. [0012] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as "processing" or "computing" or "calculating" or "determining" or the like, may refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer-system memories or registers or other such information storage, transmission or display devices. [0013] In the following detailed description of the embodiments, reference is made to the accompanying drawings that show, by way of illustration, specific embodiments in which the invention may be practiced. In the drawings, like numerals describe substantially similar components throughout the several views. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. Other embodiments may be utilized and structural, logical, and electrical changes may be made without departing from the scope of the present invention. Moreover, it is to be understood that the various embodiments of the invention, although different, are not necessarily mutually exclusive. For example, a particular feature, structure, or characteristic described in one embodiment may be included within other embodiments. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims, along with the full scope of equivalents to which such claims are entitled.
[0014] Although the below examples may describe controlling access of virtual machine to a timer in the context of execution units and logic circuits, other embodiments of the present invention can be accomplished by way of software. For example, in some embodiments, the present invention may be provided as a computer program product or software which may include a machine or computer-readable medium having stored thereon instructions which may be used to program a computer (or other electronic devices) to perform a process according to the present invention. In other embodiments, processes of the present invention might be performed by specific hardware components that contain hardwired logic for performing the processes, or by any combination of programmed computer components and custom hardware components.
[0015] Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), but is not limited to, floppy diskettes, optical disks, Compact Disc, Read-Only Memory (CD- ROMs), and magneto-optical disks, Read-Only Memory (ROMs), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic or optical cards, flash memory, a transmission over the Internet, electrical, optical, acoustical or other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.) or the like. [0016] Further, a design may go through various stages, from creation to simulation to fabrication. Data representing a design may represent the design in a number of manners. First, as is useful in simulations, the hardware may be represented using a hardware description language or another functional description language. Additionally, a circuit level model with logic and/or transistor gates may be produced at some stages of the design process. Furthermore, most designs, at some stage, reach a level of data representing the physical placement of various devices in the hardware model. In the case where conventional semiconductor fabrication techniques are used, data representing a hardware model may be the data specifying the presence or absence of various features on different mask layers for masks used to produce the integrated circuit. In any representation of the design, the data may be stored in any form of a machine- readable medium. An optical or electrical wave modulated or otherwise generated to transmit such information, a memory, or a magnetic or optical storage such as a disc may be the machine readable medium. Any of these mediums may "carry" or "indicate" the design or software information. When an electrical carrier wave indicating or carrying the code or design is transmitted, to the extent that copying, buffering, or re-transmission of the electrical signal is performed, a new copy is made. Thus, a communication provider or a network provider may make copies of an article (a carrier wave) embodying techniques of the present invention. [0017] Figure 1 illustrates one embodiment of a virtual-machine environment 100, in which the present invention may operate. In this embodiment, bare platform hardware 116 comprises a computing platform, which may be capable, for example, of executing a standard operating system (OS) or a virtual-machine monitor (VMM), such as a VMM 112. [0018] The VMM 112, though typically implemented in software, may emulate and export a bare machine interface to higher level software. Such higher level software may comprise a standard or real-time OS, may be a highly stripped down operating environment with limited operating system functionality, may not include traditional OS facilities, etc. Alternatively, for example, the VMM 112 may be run within, or on top of, another VMM. VMMs may be implemented, for example, in hardware, software, firmware or by a combination of various techniques.
[0019] The platform hardware 116 can be of a personal computer (PC), mainframe, handheld device, portable computer, set-top box, or any other computing system. The platform hardware 116 includes a processor 118 and memory 120.
[0020] Processor 118 can be any type of processor capable of executing software, such as a microprocessor, digital signal processor, microcontroller, or the like. The processor 118 may include microcode, programmable logic or hardcoded logic for performing the execution of method embodiments of the present invention. Although Figure 1 shows only one such processor 118, there may be one or more processors in the system.
[0021] Memory 120 can be a hard disk, a floppy disk, random access memory (RAM), read only memory (ROM), flash memory, any combination of the above devices, or any other type of machine medium readable by processor 118. Memory 120 may store instructions and/or data for performing the execution of method embodiments of the present invention.
[0022] The VMM 112 presents to other software (i.e., "guest" software) the abstraction of one or more virtual machines (VMs), which may provide the same or different abstractions to the various guests. Figure 1 shows two VMs, 102 and 114. The guest software running on each VM may include a guest OS such as a guest OS 104 or 106 and various guest software applications 108 and 110. Each of the guest OSs 104 and 106 expects to access physical resources (e.g., processor registers, memory and I/O devices) within the VMs 102 and 114 on which the guest OS 104 or 106 is running and to perform other functions. For example, the guest OS 104 and 106 expects to have access to all registers, caches, structures, I/O devices, memory and the like, according to the architecture of the processor and platform presented in the VMs 102 and 114. The resources that can be accessed by the guest software may either be classified as "privileged" or "non-privileged." For privileged resources, the VMM 112 facilitates functionality desired by guest software while retaining ultimate control over these privileged resources. Non-privileged resources do not need to be controlled by the VMM 112 and can be accessed by guest software.
[0023] Further, each guest OS expects to handle various fault events such as exceptions (e.g., page faults, general protection faults, etc.), interrupts (e.g., hardware interrupts, software interrupts), and platform events (e.g., initialization (INIT) and system management interrupts (SMIs)). Some of these fault events are "privileged" because they must be handled by the VMM 112 to ensure proper operation of VMs 102 and 114 and for protection from and among guest software.
[0024] When a privileged fault event occurs or guest software attempts to access a privileged resource, control may be transferred to the VMM 112. The transfer of control from guest software to the VMM 112 is referred to herein as a VM exit. After facilitating the resource access or handling the event appropriately, the VMM 112 may return control to guest software. The transfer of control from the VMM 112 to guest software is referred to as a VM entry.
[0025] In one embodiment, the processor 118 controls the operation of the VMs 102 and 114 in accordance with data stored in a virtual machine control structure (VMCS) 124. The VMCS 124 is a structure that may contain state of guest software, state of the VMM 112, execution control information indicating how the VMM 112 wishes to control operation of guest software, information controlling transitions between the VMM 112 and a VM, etc. The processor 118 reads information from the VMCS 124 to determine the execution environment of the VM and to constrain its behavior. In one embodiment, the VMCS is stored in memory 120. In some embodiments, multiple VMCS structures are used to support multiple VMs.
[0026] The VMM 112 may need to use a timer to schedule resources, provide quality of service, assure security, and perform other functions. For example, in the instruction set architecture (ISA) of the Intel® Pentium® 4 (referred to herein as the IA-32 ISA), the VMM 112 may use the timestamp counter (TSC) to perform these functions. Each of the VMs 102 and 114 may also need to use the timer to calibrate timing loops and do performance optimization. Because the VMs 102 and 114 have no knowledge of each other or the VMM 112, the timer's values provided to the VM 102 or 114 may need to be adjusted to present the illusion that the guest OS 104 or 106 is running on a dedicated hardware platform, not a virtual platform. A timer offsetting mechanism is provided to properly virtualize the timer and thus preserve the illusion for the guest OSes 104 and 106. In one embodiment, the timer offsetting mechanism includes a timer offset configuration module 126 and timer access logic 122. [0027] The timer offset configuration module 126 is responsible for providing values for fields associated with timer offsetting prior to requesting a transition of control to the VM 102 or 114. In one embodiment, these values may include an offset value specifying an offset to be used by the processor 118 when providing timer values to the VM 102 or 114 and a timer offsetting indicator specifying whether timer offsetting is enabled for the VM 102 or 114. In an embodiment, the timer offset value is a signed value, allowing the VMM 112 to present a timer value to guest software that is less than or greater than the actual hardware timer value. In one embodiment, the timer offset value is added to the timer value before returning the value to the VM 102 or 114. In one embodiment, the fields associated with timer offsetting also include a timer access control indicator specifying whether VM requests to access the timer are associated with a transition of control to the VMM (e.g., whether VM requests to access the timer should cause VM exits).
[0028] In one embodiment, the offset value for the VM 102 or 114 accounts for the aggregation of time intervals during which this VM was not running due to the execution of the VMM 112 and the other VM. For example, suppose that, when the timer's value is 1000 ticks, the VM 102 expects the value of the timer to be 1000. Then, at 1500 ticks, the VM 102 may be interrupted by a VM exit, following by the execution of the VMM 112 for 100 ticks (timer value of 1600 ticks), after which the VMM 112 may request to enter the VM 114. The VM 114 may then execute for 600 ticks (timer value of 2200 ticks) until a VM exit, resulting in the execution of the VMM 112 for 200 ticks (timer value 2400), which may then request to re-enter the VM 102. At the time of re-entry, the VM 102 expects the timer to have the value of 1500 ticks. Instead, the actual timer value at this time is 2400 ticks. The offset value provided by the VMM 112 for the VM 102 will be 900 ticks, which is the aggregation of time intervals during which the VM 112 was not running due to the execution of the VM 114 and the VMM 112. Hence, the VMM 112 would store the offset value of 900 to the timer offset field so that when the VM 102 attempts to read the timer, the value provided to the VM 102 will be computed by reducing the current timer value by 900. The offset value may also be calculated by computing the difference between the actual timer value and the timer value expected by the VM 102. In an alternative embodiment, the value provided to the VM 102 when it attempts to read the timer is computed by adding the current timer value to the offset value configured by the VMM 112. In this embodiment, the offset value stored by the VMM is a negative number. In the example described above, the value stored is -900.
[0029] As discussed above, in one embodiment, the offset value is determined by the VMM 112. In an alternative embodiment, the offset value is determined by the processor 118, and the fields and controls associated with timer offsetting may include a timer offsetting indicator, an adjust offset indicator, a guest timer field, a save timer indicator, and a timer offset field. In one embodiment, the three indicator values may be combined in a variety of ways. For example, the adjust offset indicator and the save timer indicator may be the same control (i.e., enabling the adjustment of the timer offset implicitly enables the saving of the timer), as will be described in more detail below. In some embodiments, some of the above indicators may not be present. For example, the timer offsetting indicator may not be present, and timer offsetting is assumed to be always enabled, as will be discussed in greater detail below. [0030] In one embodiment, the fields and controls associated with timer offsetting are stored in the VMCS 124. Alternatively, the fields and controls associated with timer offsetting may reside in the processor 118, a combination of the memory 120 and the processor 118, or in any other storage location or locations. In one embodiment, separate fields and controls associated with timer offsetting are maintained for each of the VMs 102 and 114. Alternatively, the same fields and controls associated with timer offsetting are maintained for both VMs 102 and 144 and are updated by the VMM 112 before each VM entry.
[0031] In one embodiment, in which the system 100 includes multiple processors, multiple cores or multi thread processors, each of the multiple logical processors is associated with separate fields and controls associated with timer offsetting, and the VMM 112 configures the fields and controls associated with timer offsetting for each of the multiple logical processors.
[0032] In one embodiment, the processor 118 includes timer access logic 122 that is responsible for virtualizing accesses of the VM 102 and 114 to the timer based on the timer offsetting values. In particular, if the timer access logic 122 determines that timer offsetting is enabled, it provides an adjusted timer value to the VM 102 or 114. In one embodiment, the timer access logic 122 determines if timer offsetting is enabled by examining a timer offsetting indicator value. In one embodiment, when the timer access logic 122 receives a request for a current value of the timer from the VM 102 or 114, it reads the current value of the timer, adds the offset value to the current value of the timer, and returns the resulting value to the VM 102 or 114, thus presenting the VM 102 or 114 with the illusion that it is running on a dedicated hardware platform. In an embodiment, the offset value is a signed value.
[0033] The offset values may be determined for the VM 102 and 114 by the VMM 112 (e.g., by the timer offset configuration module 126). One embodiment of a process for determining an offset value by the VMM 112 will be discussed in greater detail below in conjunction with Figures 3 and 4. Alternatively, the offset values are determined by the processor 118 (e.g., by the timer access logic 122). One embodiment of a process for determining an offset value by the processor 118 will be discussed in more detail below in conjunction with Figure 5.
[0034] Figure 2 is a flow diagram of one embodiment of a process 200 for controlling access of VMs to a timer. The process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both. In one embodiment, process 200 is performed by timer access logic 122 of Figure 1.
[0035] Referring to Figure 2, process 200 begins with processing logic receiving a request to transition control to a VM from a VMM (i.e., the request for VM entry) (processing block 202). In one embodiment, the VM entry request is received via a VM entry instruction executed by the VMM.
[0036] Next, processing logic determines whether timer offsetting is enabled (processing block 204). In one embodiment, processing logic makes this determination as part of the transition to the VM (e.g., when checking and loading VM state and execution control information stored in the VMCS). In one embodiment, the determination is based on the current value of a timer offsetting indicator stored in the VMCS for the VM being entered.
[0037] If timer offsetting is enabled, processing logic uses a timer offset value when responding to the requests of the VM for a current timer value. In one embodiment, the timer offset value is determined by the VMM prior to issuing the request to transition control to this VM. One embodiment of a process for determining the offset value by the VMM will be discussed in greater detail below in conjunction with Figures 3 and 4. Alternatively, the offset value is automatically determined by the processor when transitioning control to this VM. One embodiment of a process for determining the offset value by the processor will be discussed in more detail below in conjunction with Figure
5.
[0038] In one embodiment, if timer offsetting is enabled, processing logic loads an offset register with the timer offset value stored in the VMCS (processing block 206). Alternatively, if timer offsetting is disabled, processing logic loads the offset register with 0 (processing block 206). Next, processing logic begins the execution in the VM (processing block 210).
[0039] During the VM's execution, processing logic may receive the VM's requests for a current value of the timer. In the IA-32 ISA, for example, the VM may issue a request for a current value of the TSC by executing the RDMSR instruction or a RDTSC instruction to read the TSC.
[0040] At processing box 212, processing logic determines whether the VM requests a current value of the timer. If so, then in one embodiment, processing logic determines whether this request is associated with a transition of control to the VMM (processing box 214). In one embodiment, a timer access control indicator may be set to an "exit" value to cause a VM exit on each request of the VM to access the timer. For example, in one embodiment, the timer access control indicator is a single bit, which if set to 1 indicates that requests of a VM to access the timer cause VM exits. In one embodiment, this indicator may be stored in the VMCS. If the request is not associated with a transition of control to the VMM, processing logic proceeds to processing block 216. If the request is associated with a transition of control to the VMM, processing logic transitions control to the VMM, indicating to the VMM that the VM exit was caused by an attempt to access the timer (processing block 220). In one embodiment, prior to transitioning control to the VMM, processing logic loads the offset register with 0 (processing block 218) to allow the VMM to obtain the actual value of the timer.
[0041] In another embodiment, a timer access control indicator is not used, and processing logic does not check for a transition of control to the VMM in response to VM requests for a current value of the timer. Instead, processing logic skips processing block 214 and proceeds directly to processing block 216. [0042] At processing block 216, processing logic reads the current value of the timer, adds the offset value to the current value of the timer, and returns the result to the VM. In one embodiment, the timer offset value is a signed value that is combined with the content of the timer using signed addition. [0043] During the execution of the VM, various other events associated with a VM exit (e.g., page faults, interrupts, etc.) may occur. In one embodiment, if processing logic detects an event associated with a VM exit (processing box 222), processing logic loads the offset register with 0 (processing block 218) and transitions control to the VMM, indicating the cause of the VM exit detected in processing block 222 (processing block 220). If processing logic does not detect any events associated with a VM exit, processing logic returns to processing box 212.
[0044] Figure 3 is a flow diagram of one embodiment of a process 300 for configuring fields associated with timer offsetting. The process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both. In one embodiment, process 300 is performed by a timer offset configuration module 126 of Figure 1.
[0045] Referring to Figure 3, process 300 begins with processing logic deciding that a transition of control to a VM is needed. Prior to issuing a request to transition control to the VM, processing logic determines a timer offset value for the VM
(processing block 302) and stores the timer offset value in the VMCS (processing block 304). In one embodiment, the timer offset value is the aggregation of time intervals during which the VM being entered was not running due to the execution of the VMM and the other VMs. One embodiment of a process for calculating the timer offset value will be discussed in more detail below in conjunction with Figure 4. [0046] Next, processing logic sets a timer offset indicator to an enabling value (processing block 306) and issues a request to transition control to the VM (e.g., a VM entry request) (processing logic 308).
[0047] Subsequently, when a VM exit from the VM is generated, processing logic receives control back (processing block 310), determines the current value of the timer (processing block 312), and handles the VM exit as needed (e.g., perform operations addressing the cause of the VM exit) (processing block 314). As described below, the value of the timer at VM exit may be used to calculate the timer offset before returning control to the VM. [0048] Figure 4 is a flow diagram of one embodiment of a process 400 for calculating a timer offset value for a VM (as referenced in processing block 302 of Figure 3 for example). The process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both. In one embodiment, process 400 is performed by a timer offset configuration module 126 of Figure 1.
[0049] Referring to Figure 4, process 400 begins with processing logic calculating the time spent in this VM since the last VM entry (processing block 402). In one embodiment, this time is calculated by determining a VM-entry time (i.e., the timer value just prior to issuing a request to enter the VM) and a VM-exit time (e.g., the timer value at the time of receiving control returned from the VM), and subtracting the VM-entry time from the VM-exit time.
[0050] At processing block 404, processing logic calculates the cumulative time spent in the VM by adding the time spent in the VM during the last entry to the previously calculated cumulative time. In one embodiment, processing logic calculates the cumulative time spent in the VM when receiving control returned from the VM. Alternatively, processing logic calculates the cumulative time spent in the VM when issuing a request to return control to this VM.
[0051] When processing logic decides to return control to the VM, it reads the current value of the timer (processing block 406), and calculates the timer offset value as a difference between the cumulative time spent in the VM and the current value of the timer (processing block 408). In one embodiment, the timer offset value is a signed value.
[0052] Figure 5 is a flow diagram of an alternative embodiment of a process for calculating a timer offset value for a VM. The process may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), software (such as that run on a general purpose computer system or a dedicated machine), or a combination of both. In one embodiment, process 500 is performed by timer offset logic 122 of Figure 1.
[0053] Referring to Figure 5, process 500 begins with processing logic detecting an event associated with a transition of control from VMl to the VMM (processing block 502).
[0054] At processing block 504, processing logic determines whether a save timer indicator is enabled. In one embodiment, the save timer indicator is configured by the VMM and stored in the VMCS. [0055] If the save timer indicator is enabled, processing logic saves a current timer value as a VMl timer value to a guest timer field (processing block 506) and proceeds to processing block 508. In one embodiment, the guest timer field is stored in the VMCS.
[0056] If the save timer indicator is disabled, processing logic skips processing block 506 and proceeds directly to processing block 508. [0057] At processing block 508, processing logic transitions control to the VMM. [0058] Subsequently, at processing block 510, processing logic receives a request to return control to VMl. In response, processing logic determines whether an adjust offset indicator is enabled (processing block 512). In one embodiment, the adjust offset indicator is configured by the VMM and stored in the VMCS. In another embodiment, the save timer indicator and the adjust offset indicator are represented by the same indicator which is checked both at processing blocks 504 and 512. In another embodiment, a timer offsetting indicator may be evaluated to determine if timer offsetting should be used. In one embodiment, the timer offsetting indicator is configured by the VMM and stored in the VMCS. [0059] If the adjust offset indicator is enabled, processing logic reads the current timer value (processing block 514), and determines the difference between the current timer value and the VMl timer value saved at processing block 506 by subtracting the saved VMl timer value from the current timer value (processing block 516). Further, processing logic calculates the adjusted timer offset value by subtracting this difference from the timer offset value in the timer offset field (processing block 518). In one embodiment, this adjusted timer offset value is stored to the timer offset field. Next, processing logic transitions control to VMl (processing block 520).
[0060] If the adjust offset indicator is disabled, in one embodiment, processing logic skips processing blocks 514 through 518 and proceeds directly to processing block 520. In another embodiment, if the adjust offset indicator is disabled, processing logic retrieves the value of timer offset field for use as the adjusted timer offset value and then proceeds to processing block 520.
[0061] In an alternative embodiment, at VM exit, a virtual guest timer value is calculated (by computing the sum of the current timer offset value and the current value of the timer) and stored to a virtual guest timer field. In one embodiment, the virtual guest timer field is stored in the VMCS. Subsequently, at VM entry, the offset value is computed by subtracting the timer value at the time of the VM entry from the virtual guest timer value. While the VM executes, attempts to read the timer will return the current value of the timer adjusted by the offset value. [0062] Thus, a method and apparatus for controlling access of VMs to a timer have been described. It is to be understood that the above description is intended to be illustrative, and not restrictive. Many other embodiments will be apparent to those of skill in the art upon reading and understanding the above description. The scope of the invention should, therefore, be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.

Claims

CLAIMSWhat is claimed is:
1. A method comprising: receiving a request to transition control to a virtual machine (VM) from a virtual machine monitor (VMM); calculating an offset value; receiving, during operation of the VM, a request for a current value of a timer; adjusting the current value of the timer based on the offset value; and providing the adjusted timer value to the VM.
2. The method of claim 1 further comprising: transitioning control to the VM upon receiving the request from the VMM, the transitioning comprising calculating the offset value.
3. The method of claim 1 wherein calculating the offset value comprises: determining a difference between a timer value read upon receiving the request to transition control to the VM and a timer value saved upon detecting a prior event associated with a transition of control from the VM to the VMM; and subtracting the difference from a value of a timer offset field.
4. The method of claim 3 further comprising storing the calculated timer offset value to the timer offset field.
5. The method of claim 3 further comprising: determining that an adjust timer offset indicator is set to an enabled value prior to determining the difference.
6. The method of claim 1 further comprising: determining that an adjust timer offset indicator is set to a disabled value; and reading a timer offset field, a value of the timer offset field being subsequently used as the offset value.
7. The method of claim 3 wherein the timer value is saved upon detecting the prior event associated with the transition of control to the VMM if a save timer indicator is enabled.
8. The method of claim 1 further comprising: determining that a timer access control indicator is set to an exit value; and transitioning control to the VMM in response to the request.
9. The method of claim 1 further comprising: determining that offsetting of the timer is disabled; and loading an offset register with zero.
10. An apparatus comprising: a virtual machine monitor (VMM); a data structure controlled by the VMM, the data structure storing an offset value for a virtual machine (VM); and timer access logic to calculate the offset value upon receiving a request to transition control to the VM from the VMM, and to provide a value of the timer to the VM during an operation of the VM, the value of the timer being adjusted based on the offset value.
11. The apparatus of claim 10 wherein the timer access logic is further to transition control to the VM upon receiving the request from the VMM, the transitioning comprising calculating the offset value.
12. The apparatus of claim 10 wherein the timer access logic is to calculate the offset value by determining a difference between a timer value read upon receiving the request to transition control to the VM and a timer value saved upon detecting a prior event associated with a transition of control from the VM to the VMM, and subtracting the difference from a value of a timer offset field.
13. The apparatus of claim 12 wherein the data structure is further to include a timer offset field storing the calculated timer offset value.
14. The apparatus of claim 12 wherein the data structure is further to include an adjust timer offset indicator.
15. The apparatus of claim 14 wherein the timer access logic is further to determine that the adjust timer offset indicator is set to an enabled value prior to determining the difference.
16. The apparatus of claim 12 wherein the timer access logic is further to determine that an adjust timer offset indicator is set to a disabled value, and to read a timer offset field, a value of the timer offset field being subsequently used as the offset value.
17. The apparatus of claim 12 wherein the data structure is to store a save timer indicator used by the timer access logic to determine whether to save the timer value upon detecting the prior event associated with the transition of control to the VMM.
18. The apparatus of claim 10 further comprising: an offset register to store the offset value.
19. A system comprising: a memory to store a set of fields associated with timer offsetting for a virtual machine (VM); and a processor, coupled to the memory, to use the set of fields associated with timer offsetting to calculate an offset value, and to provide, during operation of the VM, a timer value, adjusted based on the offset value, to the VM in response to a request of the VM for a current value of a timer.
20. The system of claim 19 wherein the processor is to calculate the offset value when transitioning control to the VM.
21. The system of claim 19 wherein the processor is further to load an offset register with the offset value.
22. The system of claim 19 wherein the processor is to calculate the offset value by determining a difference between a timer value read upon receiving the request to transition control to the VM and a timer value saved upon detecting a prior event associated with a transition of control from the VM to the VMM, and subtracting the difference from a value of a timer offset field.
23. The system of claim 22 wherein the processor is to read the timer value upon receiving the request to transition control to the VM if an adjust timer offset indicator is enabled.
24. The system of claim 22 wherein the processor is to save the timer value upon detecting the prior event associated with the transition of control to the VMM if a save timer indicator is enabled.
25. A machine-readable medium containing instructions which, when executed by a processing system, cause the processing system to perform a method, the method comprising: receiving a request to transition control to a virtual machine (VM) from a virtual machine monitor (VMM); calculating an offset value; receiving, during operation of the VM, a request for a current value of a timer; adjusting the current value of the timer based on the offset value; and providing the adjusted timer value to the VM.
26. The machine-readable medium of claim 25 wherein the method further comprises: transitioning control to the VM upon receiving the request from the VMM, the transitioning comprising calculating the offset value.
27. The machine-readable medium of claim 25 wherein calculating the offset value comprises: determining a difference between a timer value read upon receiving the request to transition control to the VM and a timer value saved upon detecting a prior event associated with a transition of control from the VM to the VMM; and subtracting the difference from a value of a timer offset field.
28. The machine-readable medium of claim 27 wherein the timer value is read upon receiving the request to transition control to the VM if an adjust timer offset indicator is enabled.
29. The machine-readable medium of claim 27 wherein the timer value is saved upon detecting the prior event associated with the transition of control to the VMM if a save timer indicator is enabled.
PCT/US2005/040450 2004-10-29 2005-10-31 Timer offsetting mechanism in a virtual machine environment WO2006050534A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2007539377A JP4584315B2 (en) 2004-10-29 2005-10-31 Timer offset mechanism in virtual machine environment
DE112005002347T DE112005002347T5 (en) 2004-10-29 2005-10-31 Timer offset mechanism in the environment of a virtual machine

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US10/976,970 US8146078B2 (en) 2004-10-29 2004-10-29 Timer offsetting mechanism in a virtual machine environment
US10/976,970 2004-10-29

Publications (1)

Publication Number Publication Date
WO2006050534A1 true WO2006050534A1 (en) 2006-05-11

Family

ID=35717704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2005/040450 WO2006050534A1 (en) 2004-10-29 2005-10-31 Timer offsetting mechanism in a virtual machine environment

Country Status (5)

Country Link
US (1) US8146078B2 (en)
JP (1) JP4584315B2 (en)
CN (1) CN100481010C (en)
DE (1) DE112005002347T5 (en)
WO (1) WO2006050534A1 (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7475002B1 (en) * 2004-02-18 2009-01-06 Vmware, Inc. Method and apparatus for emulating multiple virtual timers in a virtual computer system when the virtual timers fall behind the real time of a physical computer system
US7840962B2 (en) * 2004-09-30 2010-11-23 Intel Corporation System and method for controlling switching between VMM and VM using enabling value of VMM timer indicator and VMM timer value having a specified time
US8739156B2 (en) * 2007-07-24 2014-05-27 Red Hat Israel, Ltd. Method for securing the execution of virtual machines
CN101441498B (en) * 2007-11-19 2010-06-09 联想(北京)有限公司 Virtual machine monitor, virtual machine system and clock allocation use method thereof
US8181175B1 (en) * 2008-01-28 2012-05-15 Hewlett-Packard Development Company, L.P. Accounting for resource usage time by a virtual machine
US10127059B2 (en) 2008-05-02 2018-11-13 Skytap Multitenant hosted virtual machine infrastructure
US8327357B2 (en) * 2009-08-31 2012-12-04 Red Hat, Inc. Mechanism for virtual time stamp counter acceleration
US8700943B2 (en) * 2009-12-22 2014-04-15 Intel Corporation Controlling time stamp counter (TSC) offsets for mulitple cores and threads
US8468524B2 (en) * 2010-10-13 2013-06-18 Lsi Corporation Inter-virtual machine time profiling of I/O transactions
US8650564B2 (en) * 2010-10-19 2014-02-11 Vmware, Inc. Method and system for synchronizing fault-tolerant virtual machines and adjusting CPU resource limit based on execution latency
US9459652B1 (en) * 2010-10-22 2016-10-04 Vmware, Inc. Virtual reference clock for virtual machines
US8490089B2 (en) * 2010-11-05 2013-07-16 Advanced Micro Devices, Inc. Guest timer facility to improve management in a virtualized processing system
BRPI1101401A2 (en) * 2011-03-29 2013-06-04 Inst Alberto Luiz Coimbra De Pos Graduacao E Pesquisas De Engenharia Coppe Ufrj Strictly growing virtual clock for high precision timing of programs in multiprocessing systems
US9183054B2 (en) 2012-06-30 2015-11-10 International Business Machines Corporation Maintaining hardware resource bandwidth quality-of-service via hardware counter
WO2014118961A1 (en) * 2013-01-31 2014-08-07 富士通株式会社 Virtual computer management program, virtual computer management method, and virtual computer system
US9703951B2 (en) 2014-09-30 2017-07-11 Amazon Technologies, Inc. Allocation of shared system resources
US9378363B1 (en) * 2014-10-08 2016-06-28 Amazon Technologies, Inc. Noise injected virtual timer
US9754103B1 (en) 2014-10-08 2017-09-05 Amazon Technologies, Inc. Micro-architecturally delayed timer
US9864636B1 (en) 2014-12-10 2018-01-09 Amazon Technologies, Inc. Allocating processor resources based on a service-level agreement
US9491112B1 (en) 2014-12-10 2016-11-08 Amazon Technologies, Inc. Allocating processor resources based on a task identifier
US10203977B2 (en) 2015-11-25 2019-02-12 Red Hat Israel, Ltd. Lazy timer programming for virtual machines
JP6510430B2 (en) * 2016-01-18 2019-05-08 株式会社日立製作所 Trace data editing apparatus and method
US10459747B2 (en) 2016-07-05 2019-10-29 Red Hat Israel, Ltd. Exitless timer access for virtual machines
US10521256B2 (en) * 2016-08-30 2019-12-31 Red Had Israel, Ltd. Virtual machine migration acceleration with page state indicators
CN108241522B (en) * 2016-12-27 2022-05-17 阿里巴巴集团控股有限公司 Sleep state switching method and device in virtualization environment and electronic equipment
US20190042295A1 (en) * 2018-06-29 2019-02-07 Intel Corporation Timing compensation for a timestamp counter
CN109471588B (en) * 2018-09-13 2021-08-10 北京米文动力科技有限公司 Synchronization method and device
US11556365B2 (en) 2019-09-24 2023-01-17 International Business Machines Corporation Obscuring information in virtualization environment
US11579650B2 (en) * 2019-12-19 2023-02-14 Advanced Micro Devices, Inc. Method and apparatus for synchronizing the time stamp counter

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317754A (en) * 1990-10-23 1994-05-31 International Business Machines Corporation Method and apparatus for enabling an interpretive execution subset
US5381535A (en) * 1990-10-24 1995-01-10 International Business Machines Corporation Data processing control of second-level quest virtual machines without host intervention

Family Cites Families (236)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3699532A (en) 1970-04-21 1972-10-17 Singer Co Multiprogramming control for a data handling system
US3996449A (en) 1975-08-25 1976-12-07 International Business Machines Corporation Operating system authenticator
US4162536A (en) 1976-01-02 1979-07-24 Gould Inc., Modicon Div. Digital input/output system and method
US4037214A (en) 1976-04-30 1977-07-19 International Business Machines Corporation Key register controlled accessing system
US4247905A (en) 1977-08-26 1981-01-27 Sharp Kabushiki Kaisha Memory clear system
US4278837A (en) 1977-10-31 1981-07-14 Best Robert M Crypto microprocessor for executing enciphered programs
US4276594A (en) 1978-01-27 1981-06-30 Gould Inc. Modicon Division Digital computer with multi-processor capability utilizing intelligent composite memory and input/output modules and method for performing the same
US4207609A (en) 1978-05-08 1980-06-10 International Business Machines Corporation Method and means for path independent device reservation and reconnection in a multi-CPU and shared device access system
JPS5823570B2 (en) 1978-11-30 1983-05-16 国産電機株式会社 Liquid level detection device
JPS5576447A (en) 1978-12-01 1980-06-09 Fujitsu Ltd Address control system for software simulation
US4307447A (en) 1979-06-19 1981-12-22 Gould Inc. Programmable controller
US4319323A (en) 1980-04-04 1982-03-09 Digital Equipment Corporation Communications device for data processing system
US4419724A (en) 1980-04-14 1983-12-06 Sperry Corporation Main bus interface package
US4366537A (en) 1980-05-23 1982-12-28 International Business Machines Corp. Authorization mechanism for transfer of program control or data between different address spaces having different storage protect keys
US4403283A (en) 1980-07-28 1983-09-06 Ncr Corporation Extended memory system and method
DE3034581A1 (en) 1980-09-13 1982-04-22 Robert Bosch Gmbh, 7000 Stuttgart READ-OUT LOCK FOR ONE-CHIP MICROPROCESSORS
JPS58140862A (en) 1982-02-16 1983-08-20 Toshiba Corp Mutual exclusion system
US4521852A (en) 1982-06-30 1985-06-04 Texas Instruments Incorporated Data processing device formed on a single semiconductor substrate having secure memory
JPS59111561A (en) 1982-12-17 1984-06-27 Hitachi Ltd Access controlling system of composite processor system
US4759064A (en) 1985-10-07 1988-07-19 Chaum David L Blind unanticipated signature systems
US4975836A (en) 1984-12-19 1990-12-04 Hitachi, Ltd. Virtual computer system
JPS61206057A (en) 1985-03-11 1986-09-12 Hitachi Ltd Address converting device
JPS62154037A (en) * 1985-12-26 1987-07-09 Hitachi Ltd Virtual computer supervising and controlling system
FR2592510B1 (en) 1985-12-31 1988-02-12 Bull Cp8 METHOD AND APPARATUS FOR CERTIFYING SERVICES OBTAINED USING A PORTABLE MEDIUM SUCH AS A MEMORY CARD
JPH0644237B2 (en) * 1986-04-09 1994-06-08 株式会社日立製作所 Virtual computer system timer control method
FR2601476B1 (en) 1986-07-11 1988-10-21 Bull Cp8 METHOD FOR AUTHENTICATING EXTERNAL AUTHORIZATION DATA BY A PORTABLE OBJECT SUCH AS A MEMORY CARD
FR2601525B1 (en) 1986-07-11 1988-10-21 Bull Cp8 SECURITY DEVICE PROHIBITING THE OPERATION OF AN ELECTRONIC ASSEMBLY AFTER A FIRST SHUTDOWN OF ITS POWER SUPPLY
FR2601535B1 (en) 1986-07-11 1988-10-21 Bull Cp8 METHOD FOR CERTIFYING THE AUTHENTICITY OF DATA EXCHANGED BETWEEN TWO DEVICES CONNECTED LOCALLY OR REMOTELY THROUGH A TRANSMISSION LINE
JPS63182749A (en) * 1987-01-26 1988-07-28 Nec Corp Timer controller for computer system
FR2618002B1 (en) 1987-07-10 1991-07-05 Schlumberger Ind Sa METHOD AND SYSTEM FOR AUTHENTICATING ELECTRONIC MEMORY CARDS
JPS6459435A (en) * 1987-08-29 1989-03-07 Nec Corp Virtual system for idle timer in virtual computer system
JPH01309136A (en) * 1988-06-08 1989-12-13 Hitachi Ltd Acceleration control system for virtual timer
US5007082A (en) 1988-08-03 1991-04-09 Kelly Services, Inc. Computer software encryption apparatus
US5079737A (en) 1988-10-25 1992-01-07 United Technologies Corporation Memory management unit for the MIL-STD 1750 bus
US5434999A (en) 1988-11-09 1995-07-18 Bull Cp8 Safeguarded remote loading of service programs by authorizing loading in protected memory zones in a terminal
FR2640798B1 (en) 1988-12-20 1993-01-08 Bull Cp8 DATA PROCESSING DEVICE COMPRISING AN ELECTRICALLY ERASABLE AND REPROGRAMMABLE NON-VOLATILE MEMORY
JPH02171934A (en) 1988-12-26 1990-07-03 Hitachi Ltd Virtual machine system
JPH02208740A (en) 1989-02-09 1990-08-20 Fujitsu Ltd Virtual computer control system
US5781753A (en) 1989-02-24 1998-07-14 Advanced Micro Devices, Inc. Semi-autonomous RISC pipelines for overlapped execution of RISC-like instructions within the multiple superscalar execution units of a processor having distributed pipeline control for speculative and out-of-order execution of complex instructions
US5442645A (en) 1989-06-06 1995-08-15 Bull Cp8 Method for checking the integrity of a program or data, and apparatus for implementing this method
JP2590267B2 (en) 1989-06-30 1997-03-12 株式会社日立製作所 Display control method in virtual machine
US5022077A (en) 1989-08-25 1991-06-04 International Business Machines Corp. Apparatus and method for preventing unauthorized access to BIOS in a personal computer system
JP2825550B2 (en) 1989-09-21 1998-11-18 株式会社日立製作所 Multiple virtual space address control method and computer system
CA2010591C (en) 1989-10-20 1999-01-26 Phillip M. Adams Kernels, description tables and device drivers
CA2027799A1 (en) 1989-11-03 1991-05-04 David A. Miller Method and apparatus for independently resetting processors and cache controllers in multiple processor systems
US5075842A (en) 1989-12-22 1991-12-24 Intel Corporation Disabling tag bit recognition and allowing privileged operations to occur in an object-oriented memory protection mechanism
EP0473913A3 (en) 1990-09-04 1992-12-16 International Business Machines Corporation Method and apparatus for providing a service pool of virtual machines for a plurality of vm users
US5108590A (en) 1990-09-12 1992-04-28 Disanto Dennis Water dispenser
US5230069A (en) 1990-10-02 1993-07-20 International Business Machines Corporation Apparatus and method for providing private and shared access to host address and data spaces by guest programs in a virtual machine computer system
US5317705A (en) 1990-10-24 1994-05-31 International Business Machines Corporation Apparatus and method for TLB purge reduction in a multi-level machine system
US5287363A (en) 1991-07-01 1994-02-15 Disk Technician Corporation System for locating and anticipating data storage media failures
US5437033A (en) 1990-11-16 1995-07-25 Hitachi, Ltd. System for recovery from a virtual machine monitor failure with a continuous guest dispatched to a nonguest mode
US5255379A (en) 1990-12-28 1993-10-19 Sun Microsystems, Inc. Method for automatically transitioning from V86 mode to protected mode in a computer system using an Intel 80386 or 80486 processor
US5453003A (en) 1991-01-09 1995-09-26 Pfefferle; William C. Catalytic method
US5551033A (en) 1991-05-17 1996-08-27 Zenith Data Systems Corporation Apparatus for maintaining one interrupt mask register in conformity with another in a manner invisible to an executing program
JPH04348434A (en) 1991-05-27 1992-12-03 Hitachi Ltd Virtual computer system
US5522075A (en) 1991-06-28 1996-05-28 Digital Equipment Corporation Protection ring extension for computers having distinct virtual machine monitor and virtual machine address spaces
US5319760A (en) 1991-06-28 1994-06-07 Digital Equipment Corporation Translation buffer for virtual machines with address space match
US5455909A (en) 1991-07-05 1995-10-03 Chips And Technologies Inc. Microprocessor with operation capture facility
US5636373A (en) * 1991-09-04 1997-06-03 International Business Machines Corporation System for synchronizing logical clock in logical partition of host processor with external time source by combining clock adjustment value with specific value of partition
JPH06236284A (en) 1991-10-21 1994-08-23 Intel Corp Method for preservation and restoration of computer-system processing state and computer system
US5627987A (en) 1991-11-29 1997-05-06 Kabushiki Kaisha Toshiba Memory management and protection system for virtual memory in computer system
JPH05158710A (en) * 1991-12-09 1993-06-25 Toshiba Corp Timer managing system
US5574936A (en) 1992-01-02 1996-11-12 Amdahl Corporation Access control mechanism controlling access to and logical purging of access register translation lookaside buffer (ALB) in a computer system
US5486529A (en) 1992-04-16 1996-01-23 Zeneca Limited Certain pyridyl ketones for treating diseases involving leukocyte elastase
US5421006A (en) 1992-05-07 1995-05-30 Compaq Computer Corp. Method and apparatus for assessing integrity of computer system software
US5237616A (en) 1992-09-21 1993-08-17 International Business Machines Corporation Secure computer system having privileged and unprivileged memories
US5293424A (en) 1992-10-14 1994-03-08 Bull Hn Information Systems Inc. Secure memory card
US5796835A (en) 1992-10-27 1998-08-18 Bull Cp8 Method and system for writing information in a data carrier making it possible to later certify the originality of this information
JP2765411B2 (en) 1992-11-30 1998-06-18 株式会社日立製作所 Virtual computer system
EP0600112A1 (en) 1992-11-30 1994-06-08 Siemens Nixdorf Informationssysteme Aktiengesellschaft Data processing system with virtual memory addressing and memory access controlled by keys
US5668971A (en) 1992-12-01 1997-09-16 Compaq Computer Corporation Posted disk read operations performed by signalling a disk read complete to the system prior to completion of data transfer
EP0602867A1 (en) 1992-12-17 1994-06-22 NCR International, Inc. An apparatus for securing a system platform
JPH06187178A (en) 1992-12-18 1994-07-08 Hitachi Ltd Input and output interruption control method for virtual computer system
US5483656A (en) 1993-01-14 1996-01-09 Apple Computer, Inc. System for managing power consumption of devices coupled to a common bus
US5469557A (en) 1993-03-05 1995-11-21 Microchip Technology Incorporated Code protection in microcontroller with EEPROM fuses
FR2703800B1 (en) 1993-04-06 1995-05-24 Bull Cp8 Method for signing a computer file, and device for implementing it.
FR2704341B1 (en) 1993-04-22 1995-06-02 Bull Cp8 Device for protecting the keys of a smart card.
JPH06348867A (en) 1993-06-04 1994-12-22 Hitachi Ltd Microcomputer
FR2706210B1 (en) 1993-06-08 1995-07-21 Bull Cp8 Method for authenticating a portable object by an offline terminal, portable object and corresponding terminal.
US5555385A (en) 1993-10-27 1996-09-10 International Business Machines Corporation Allocation of address spaces within virtual machine compute system
US5825880A (en) 1994-01-13 1998-10-20 Sudia; Frank W. Multi-step digital signature method and system
US5459869A (en) 1994-02-17 1995-10-17 Spilo; Michael L. Method for providing protected mode services for device drivers and other resident software
US5604805A (en) 1994-02-28 1997-02-18 Brands; Stefanus A. Privacy-protected transfer of electronic information
FR2717286B1 (en) 1994-03-09 1996-04-05 Bull Cp8 Method and device for authenticating a data medium intended to allow a transaction or access to a service or a place, and corresponding medium.
US5684881A (en) 1994-05-23 1997-11-04 Matsushita Electric Industrial Co., Ltd. Sound field and sound image control apparatus and method
US5539828A (en) 1994-05-31 1996-07-23 Intel Corporation Apparatus and method for providing secured communications
US5473692A (en) 1994-09-07 1995-12-05 Intel Corporation Roving software license for a hardware agent
US5533123A (en) 1994-06-28 1996-07-02 National Semiconductor Corporation Programmable distributed personal security
US5978481A (en) 1994-08-16 1999-11-02 Intel Corporation Modem compatible method and apparatus for encrypting data that is transparent to software applications
JPH0883211A (en) 1994-09-12 1996-03-26 Mitsubishi Electric Corp Data processor
DE69534757T2 (en) 1994-09-15 2006-08-31 International Business Machines Corp. System and method for secure storage and distribution of data using digital signatures
US6058478A (en) 1994-09-30 2000-05-02 Intel Corporation Apparatus and method for a vetted field upgrade
FR2725537B1 (en) 1994-10-11 1996-11-22 Bull Cp8 METHOD FOR LOADING A PROTECTED MEMORY AREA OF AN INFORMATION PROCESSING DEVICE AND ASSOCIATED DEVICE
US5903752A (en) 1994-10-13 1999-05-11 Intel Corporation Method and apparatus for embedding a real-time multi-tasking kernel in a non-real-time operating system
US5606617A (en) 1994-10-14 1997-02-25 Brands; Stefanus A. Secret-key certificates
US5564040A (en) 1994-11-08 1996-10-08 International Business Machines Corporation Method and apparatus for providing a server function in a logically partitioned hardware machine
US6269392B1 (en) * 1994-11-15 2001-07-31 Christian Cotichini Method and apparatus to monitor and locate an electronic device using a secured intelligent agent
US5560013A (en) 1994-12-06 1996-09-24 International Business Machines Corporation Method of using a target processor to execute programs of a source architecture that uses multiple address spaces
US5555414A (en) 1994-12-14 1996-09-10 International Business Machines Corporation Multiprocessing system including gating of host I/O and external enablement to guest enablement at polling intervals
US5615263A (en) 1995-01-06 1997-03-25 Vlsi Technology, Inc. Dual purpose security architecture with protected internal operating system
US5764969A (en) 1995-02-10 1998-06-09 International Business Machines Corporation Method and system for enhanced management operation utilizing intermixed user level and supervisory level instructions with partial concept synchronization
FR2731536B1 (en) 1995-03-10 1997-04-18 Schlumberger Ind Sa METHOD FOR SECURE INFORMATION RECORDING ON A PORTABLE MEDIUM
US5717903A (en) 1995-05-15 1998-02-10 Compaq Computer Corporation Method and appartus for emulating a peripheral device to allow device driver development before availability of the peripheral device
JP3451595B2 (en) 1995-06-07 2003-09-29 インターナショナル・ビジネス・マシーンズ・コーポレーション Microprocessor with architectural mode control capable of supporting extension to two distinct instruction set architectures
US5684948A (en) 1995-09-01 1997-11-04 National Semiconductor Corporation Memory management circuit which provides simulated privilege levels
US5633929A (en) 1995-09-15 1997-05-27 Rsa Data Security, Inc Cryptographic key escrow system having reduced vulnerability to harvesting attacks
US5737760A (en) 1995-10-06 1998-04-07 Motorola Inc. Microcontroller with security logic circuit which prevents reading of internal memory by external program
US6093213A (en) 1995-10-06 2000-07-25 Advanced Micro Devices, Inc. Flexible implementation of a system management mode (SMM) in a processor
JP3693721B2 (en) 1995-11-10 2005-09-07 Necエレクトロニクス株式会社 Microcomputer with built-in flash memory and test method thereof
IL116708A (en) 1996-01-08 2000-12-06 Smart Link Ltd Real-time task manager for a personal computer
WO1997025798A1 (en) 1996-01-11 1997-07-17 Mrj, Inc. System for controlling access and distribution of digital property
US5657445A (en) 1996-01-26 1997-08-12 Dell Usa, L.P. Apparatus and method for limiting access to mass storage devices in a computer system
US5835594A (en) * 1996-02-09 1998-11-10 Intel Corporation Methods and apparatus for preventing unauthorized write access to a protected non-volatile storage
SE508585C2 (en) * 1996-02-14 1998-10-19 Ericsson Telefon Ab L M Phase and frequency detectors for a predetermined number of inputs, as well as method for measuring phase and frequency
US5978892A (en) 1996-05-03 1999-11-02 Digital Equipment Corporation Virtual memory allocation in a virtual address space having an inaccessible gap
US5809546A (en) 1996-05-23 1998-09-15 International Business Machines Corporation Method for managing I/O buffers in shared storage by structuring buffer table having entries including storage keys for controlling accesses to the buffers
US6205550B1 (en) * 1996-06-13 2001-03-20 Intel Corporation Tamper resistant methods and apparatus
US6178509B1 (en) 1996-06-13 2001-01-23 Intel Corporation Tamper resistant methods and apparatus
US6175925B1 (en) 1996-06-13 2001-01-16 Intel Corporation Tamper resistant player for scrambled contents
US5729760A (en) 1996-06-21 1998-03-17 Intel Corporation System for providing first type access to register if processor in first mode and second type access to register if processor not in first mode
US5944821A (en) 1996-07-11 1999-08-31 Compaq Computer Corporation Secure software registration and integrity assessment in a computer system
US6199152B1 (en) * 1996-08-22 2001-03-06 Transmeta Corporation Translated memory protection apparatus for an advanced microprocessor
US5740178A (en) 1996-08-29 1998-04-14 Lucent Technologies Inc. Software for controlling a reliable backup memory
US6055637A (en) 1996-09-27 2000-04-25 Electronic Data Systems Corporation System and method for accessing enterprise-wide resources by presenting to the resource a temporary credential
US5844986A (en) 1996-09-30 1998-12-01 Intel Corporation Secure BIOS
US5937063A (en) 1996-09-30 1999-08-10 Intel Corporation Secure boot
US5935242A (en) 1996-10-28 1999-08-10 Sun Microsystems, Inc. Method and apparatus for initializing a device
JPH10134008A (en) 1996-11-05 1998-05-22 Mitsubishi Electric Corp Semiconductor device and computer system
US5852717A (en) 1996-11-20 1998-12-22 Shiva Corporation Performance optimizations for computer networks utilizing HTTP
DE19649292A1 (en) * 1996-11-28 1998-06-04 Deutsche Telekom Ag Access protection method for pay television
US5901225A (en) 1996-12-05 1999-05-04 Advanced Micro Devices, Inc. System and method for performing software patches in embedded systems
US5757919A (en) 1996-12-12 1998-05-26 Intel Corporation Cryptographically protected paging subsystem
US5818939A (en) 1996-12-18 1998-10-06 Intel Corporation Optimized security functionality in an electronic system
US6412035B1 (en) 1997-02-03 2002-06-25 Real Time, Inc. Apparatus and method for decreasing the response times of interrupt service routines
US5953502A (en) 1997-02-13 1999-09-14 Helbig, Sr.; Walter A Method and apparatus for enhancing computer system security
JP4000654B2 (en) 1997-02-27 2007-10-31 セイコーエプソン株式会社 Semiconductor device and electronic equipment
US6272637B1 (en) * 1997-04-14 2001-08-07 Dallas Semiconductor Corporation Systems and methods for protecting access to encrypted information
US6557104B2 (en) 1997-05-02 2003-04-29 Phoenix Technologies Ltd. Method and apparatus for secure processing of cryptographic keys
US6044478A (en) 1997-05-30 2000-03-28 National Semiconductor Corporation Cache with finely granular locked-down regions
US6075938A (en) 1997-06-10 2000-06-13 The Board Of Trustees Of The Leland Stanford Junior University Virtual machine monitors for scalable multiprocessors
US5987557A (en) 1997-06-19 1999-11-16 Sun Microsystems, Inc. Method and apparatus for implementing hardware protection domains in a system with no memory management unit (MMU)
US6175924B1 (en) 1997-06-20 2001-01-16 International Business Machines Corp. Method and apparatus for protecting application data in secure storage areas
US6035374A (en) 1997-06-25 2000-03-07 Sun Microsystems, Inc. Method of executing coded instructions in a multiprocessor having shared execution resources including active, nap, and sleep states in accordance with cache miss latency
US6584565B1 (en) 1997-07-15 2003-06-24 Hewlett-Packard Development Company, L.P. Method and apparatus for long term verification of digital signatures
US6014745A (en) 1997-07-17 2000-01-11 Silicon Systems Design Ltd. Protection for customer programs (EPROM)
US6212635B1 (en) * 1997-07-18 2001-04-03 David C. Reardon Network security system allowing access and modification to a security subsystem after initial installation when a master token is in place
US5978475A (en) 1997-07-18 1999-11-02 Counterpane Internet Security, Inc. Event auditing system
US5919257A (en) 1997-08-08 1999-07-06 Novell, Inc. Networked workstation intrusion detection system
DE19735948C1 (en) 1997-08-19 1998-10-01 Siemens Nixdorf Inf Syst Method for improving controllability in data processing equipment with translation-look-aside-buffer (TLB)
US6282657B1 (en) 1997-09-16 2001-08-28 Safenet, Inc. Kernel mode protection
US5935247A (en) 1997-09-18 1999-08-10 Geneticware Co., Ltd. Computer system having a genetic code that cannot be directly accessed and a method of maintaining the same
US6148379A (en) 1997-09-19 2000-11-14 Silicon Graphics, Inc. System, method and computer program product for page sharing between fault-isolated cells in a distributed shared memory system
US6182089B1 (en) * 1997-09-23 2001-01-30 Silicon Graphics, Inc. Method, system and computer program product for dynamically allocating large memory pages of different sizes
US5970147A (en) 1997-09-30 1999-10-19 Intel Corporation System and method for configuring and registering a cryptographic device
US6357004B1 (en) 1997-09-30 2002-03-12 Intel Corporation System and method for ensuring integrity throughout post-processing
US6061794A (en) 1997-09-30 2000-05-09 Compaq Computer Corp. System and method for performing secure device communications in a peer-to-peer bus architecture
US6085296A (en) 1997-11-12 2000-07-04 Digital Equipment Corporation Sharing memory pages and page tables among computer processes
US6219787B1 (en) 1997-12-22 2001-04-17 Texas Instruments Incorporated Method and apparatus for extending security model to native code
US6128318A (en) * 1998-01-23 2000-10-03 Philips Electronics North America Corporation Method for synchronizing a cycle master node to a cycle slave node using synchronization information from an external network or sub-network which is supplied to the cycle slave node
US6378072B1 (en) 1998-02-03 2002-04-23 Compaq Computer Corporation Cryptographic system
US6308270B1 (en) * 1998-02-13 2001-10-23 Schlumberger Technologies, Inc. Validating and certifying execution of a software program with a smart card
US6108644A (en) 1998-02-19 2000-08-22 At&T Corp. System and method for electronic transactions
US6131166A (en) 1998-03-13 2000-10-10 Sun Microsystems, Inc. System and method for cross-platform application level power management
US6192455B1 (en) * 1998-03-30 2001-02-20 Intel Corporation Apparatus and method for preventing access to SMRAM space through AGP addressing
US6374286B1 (en) 1998-04-06 2002-04-16 Rockwell Collins, Inc. Real time processor capable of concurrently running multiple independent JAVA machines
JP3898332B2 (en) * 1998-04-17 2007-03-28 富士通株式会社 Timer automatic control device and recording medium
US6173417B1 (en) 1998-04-30 2001-01-09 Intel Corporation Initializing and restarting operating systems
US6397242B1 (en) 1998-05-15 2002-05-28 Vmware, Inc. Virtualization system including a virtual machine monitor for a computer with a segmented architecture
FR2778998B1 (en) 1998-05-20 2000-06-30 Schlumberger Ind Sa METHOD FOR AUTHENTICATING A PERSONAL CODE OF A USER OF AN INTEGRATED CIRCUIT CARD
DE69942712D1 (en) 1998-05-29 2010-10-14 Texas Instruments Inc Secure computing device
US6421702B1 (en) 1998-06-09 2002-07-16 Advanced Micro Devices, Inc. Interrupt driven isochronous task scheduler system
US6339815B1 (en) 1998-08-14 2002-01-15 Silicon Storage Technology, Inc. Microcontroller system having allocation circuitry to selectively allocate and/or hide portions of a program memory address space
US6505279B1 (en) 1998-08-14 2003-01-07 Silicon Storage Technology, Inc. Microcontroller system having security circuitry to selectively lock portions of a program memory address space
JP2000076139A (en) 1998-08-28 2000-03-14 Nippon Telegr & Teleph Corp <Ntt> Portable information storage medium
US6363485B1 (en) 1998-09-09 2002-03-26 Entrust Technologies Limited Multi-factor biometric authenticating device and method
US6209106B1 (en) * 1998-09-30 2001-03-27 International Business Machines Corporation Method and apparatus for synchronizing selected logical partitions of a partitioned information handling system to an external time reference
US6463535B1 (en) 1998-10-05 2002-10-08 Intel Corporation System and method for verifying the integrity and authorization of software before execution in a local platform
US6230248B1 (en) 1998-10-12 2001-05-08 Institute For The Development Of Emerging Architectures, L.L.C. Method and apparatus for pre-validating regions in a virtual addressing scheme
US6330670B1 (en) 1998-10-26 2001-12-11 Microsoft Corporation Digital rights management operating system
US6609199B1 (en) 1998-10-26 2003-08-19 Microsoft Corporation Method and apparatus for authenticating an open system application to a portable IC device
US6327652B1 (en) 1998-10-26 2001-12-04 Microsoft Corporation Loading and identifying a digital rights management operating system
US7194092B1 (en) 1998-10-26 2007-03-20 Microsoft Corporation Key-based secure storage
US6445797B1 (en) 1998-12-16 2002-09-03 Secure Choice Llc Method and system for performing secure electronic digital streaming
US6463537B1 (en) 1999-01-04 2002-10-08 Codex Technologies, Inc. Modified computer motherboard security and identification system
US6282650B1 (en) 1999-01-25 2001-08-28 Intel Corporation Secure public digital watermark
US7111290B1 (en) 1999-01-28 2006-09-19 Ati International Srl Profiling program execution to identify frequently-executed portions and to assist binary translation
US6560627B1 (en) 1999-01-28 2003-05-06 Cisco Technology, Inc. Mutual exclusion at the record level with priority inheritance for embedded systems using one semaphore
US6188257B1 (en) * 1999-02-01 2001-02-13 Vlsi Technology, Inc. Power-on-reset logic with secure power down capability
EP1030237A1 (en) 1999-02-15 2000-08-23 Hewlett-Packard Company Trusted hardware device in a computer
US6272533B1 (en) 1999-02-16 2001-08-07 Hendrik A. Browne Secure computer system and method of providing secure access to a computer system including a stand alone switch operable to inhibit data corruption on a storage device
US7225333B2 (en) 1999-03-27 2007-05-29 Microsoft Corporation Secure processor architecture for use with a digital rights management (DRM) system on a computing device
US6615278B1 (en) 1999-03-29 2003-09-02 International Business Machines Corporation Cross-platform program, system, and method having a global registry object for mapping registry equivalent functions in an OS/2 operating system environment
US6684326B1 (en) 1999-03-31 2004-01-27 International Business Machines Corporation Method and system for authenticated boot operations in a computer system of a networked computing environment
US6651171B1 (en) 1999-04-06 2003-11-18 Microsoft Corporation Secure execution of program code
US6389537B1 (en) 1999-04-23 2002-05-14 Intel Corporation Platform and method for assuring integrity of trusted agent communications
US6275933B1 (en) 1999-04-30 2001-08-14 3Com Corporation Security system for a computerized apparatus
EP1056014A1 (en) 1999-05-28 2000-11-29 Hewlett-Packard Company System for providing a trustworthy user interface
EP1055989A1 (en) 1999-05-28 2000-11-29 Hewlett-Packard Company System for digitally signing a document
US6321314B1 (en) 1999-06-09 2001-11-20 Ati International S.R.L. Method and apparatus for restricting memory access
US6633981B1 (en) 1999-06-18 2003-10-14 Intel Corporation Electronic system and method for controlling access through user authentication
US6158546A (en) 1999-06-25 2000-12-12 Tenneco Automotive Inc. Straight through muffler with conically-ended output passage
US6301646B1 (en) 1999-07-30 2001-10-09 Curl Corporation Pointer verification system and method
US6529909B1 (en) 1999-08-31 2003-03-04 Accenture Llp Method for translating an object attribute converter in an information services patterns environment
JP2001148344A (en) * 1999-09-09 2001-05-29 Nikon Corp Aligner, method for controlling output of energy source, laser using the method and method for manufacturing device
EP1085396A1 (en) 1999-09-17 2001-03-21 Hewlett-Packard Company Operation of trusted state in computing platform
US6535988B1 (en) 1999-09-29 2003-03-18 Intel Corporation System for detecting over-clocking uses a reference signal thereafter preventing over-clocking by reducing clock rate
US6374317B1 (en) 1999-10-07 2002-04-16 Intel Corporation Method and apparatus for initializing a computer interface
US6292874B1 (en) 1999-10-19 2001-09-18 Advanced Technology Materials, Inc. Memory management method and apparatus for partitioning homogeneous memory and restricting access of installed applications to predetermined memory ranges
JP2001229037A (en) * 2000-02-16 2001-08-24 Hitachi Ltd System for measuring virtual computer system
AU2001251701A1 (en) 2000-02-25 2001-09-03 Identix Incorporated Secure transaction system
WO2001065366A1 (en) 2000-03-02 2001-09-07 Alarity Corporation System and method for process protection
JP3710671B2 (en) 2000-03-14 2005-10-26 シャープ株式会社 One-chip microcomputer, IC card using the same, and access control method for one-chip microcomputer
CA2341931C (en) 2000-03-24 2006-05-30 Contentguard Holdings, Inc. System and method for protection of digital works
US6678825B1 (en) 2000-03-31 2004-01-13 Intel Corporation Controlling access to multiple isolated memories in an isolated execution environment
US6507904B1 (en) 2000-03-31 2003-01-14 Intel Corporation Executing isolated mode instructions in a secure system running in privilege rings
US6633963B1 (en) 2000-03-31 2003-10-14 Intel Corporation Controlling access to multiple memory zones in an isolated execution environment
JP2002049605A (en) * 2000-08-02 2002-02-15 Fujitsu Ltd Time register control system
GB0020416D0 (en) 2000-08-18 2000-10-04 Hewlett Packard Co Trusted system
US6938164B1 (en) 2000-11-22 2005-08-30 Microsoft Corporation Method and system for allowing code to be securely initialized in a computer
US7631160B2 (en) 2001-04-04 2009-12-08 Advanced Micro Devices, Inc. Method and apparatus for securing portions of memory
US6976136B2 (en) 2001-05-07 2005-12-13 National Semiconductor Corporation Flash memory protection scheme for secured shared BIOS implementation in personal computers with an embedded controller
US7676430B2 (en) 2001-05-09 2010-03-09 Lenovo (Singapore) Ptd. Ltd. System and method for installing a remote credit card authorization on a system with a TCPA complaint chipset
EP1271277A3 (en) 2001-06-26 2003-02-05 Redstrike B.V. Security system and software to prevent unauthorized use of a computing device
US20030018892A1 (en) 2001-07-19 2003-01-23 Jose Tello Computer with a modified north bridge, security engine and smart card having a secure boot capability and method for secure booting a computer
US7191464B2 (en) 2001-10-16 2007-03-13 Lenovo Pte. Ltd. Method and system for tracking a secure boot in a trusted computing environment
US7103771B2 (en) 2001-12-17 2006-09-05 Intel Corporation Connecting a virtual token to a physical token
US7308576B2 (en) 2001-12-31 2007-12-11 Intel Corporation Authenticated code module
US20030126453A1 (en) 2001-12-31 2003-07-03 Glew Andrew F. Processor supporting execution of an authenticated code instruction
US7107460B2 (en) 2002-02-15 2006-09-12 International Business Machines Corporation Method and system for securing enablement access to a data security device
US7343493B2 (en) 2002-03-28 2008-03-11 Lenovo (Singapore) Pte. Ltd. Encrypted file system using TCPA
US7463599B2 (en) * 2002-05-17 2008-12-09 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for minimizing time of reception during paging
US6996748B2 (en) * 2002-06-29 2006-02-07 Intel Corporation Handling faults associated with operation of guest software in the virtual-machine architecture
US7318141B2 (en) 2002-12-17 2008-01-08 Intel Corporation Methods and systems to control virtual machines
US7155629B2 (en) * 2003-04-10 2006-12-26 International Business Machines Corporation Virtual real time clock maintenance in a logically partitioned computer system
US7415708B2 (en) * 2003-06-26 2008-08-19 Intel Corporation Virtual machine management using processor state information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317754A (en) * 1990-10-23 1994-05-31 International Business Machines Corporation Method and apparatus for enabling an interpretive execution subset
US5381535A (en) * 1990-10-24 1995-01-10 International Business Machines Corporation Data processing control of second-level quest virtual machines without host intervention

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JOHN FRANCISCOVICH: "NATURAL/ADABAS in VM/VSE", 9 July 1997 (1997-07-09), XP002367201, Retrieved from the Internet <URL:http://listserv.uark.edu/scripts/wa.exe?A2=ind9707&L=vmesa-l&P=7530> [retrieved on 20060209] *

Also Published As

Publication number Publication date
DE112005002347T5 (en) 2007-09-20
CN101044458A (en) 2007-09-26
CN100481010C (en) 2009-04-22
JP2008518367A (en) 2008-05-29
US20060130059A1 (en) 2006-06-15
US8146078B2 (en) 2012-03-27
JP4584315B2 (en) 2010-11-17

Similar Documents

Publication Publication Date Title
US8146078B2 (en) Timer offsetting mechanism in a virtual machine environment
US7840962B2 (en) System and method for controlling switching between VMM and VM using enabling value of VMM timer indicator and VMM timer value having a specified time
US7424709B2 (en) Use of multiple virtual machine monitors to handle privileged events
US9244712B2 (en) Virtualizing performance counters
US8230203B2 (en) Detecting spin loops in a virtual machine environment
US7209994B1 (en) Processor that maintains virtual interrupt state and injects virtual interrupts into virtual machine guests
US7917740B1 (en) Virtualization assist for legacy x86 floating point exception handling
US7748037B2 (en) Validating a memory type modification attempt
US10102017B2 (en) Timer access from user mode through a shared memory page
US7356735B2 (en) Providing support for single stepping a virtual machine in a virtual machine environment
US20070156986A1 (en) Method and apparatus for a guest to access a memory mapped device
US11422811B2 (en) Restartable cache write-back and invalidation
US20060277546A1 (en) Detecting virtualization
US10223149B2 (en) Implementing device models for virtual machines with reconfigurable hardware
WO2018044400A1 (en) Detecting bus locking conditions and avoiding bus locks
US20060005199A1 (en) Adaptive algorithm for selecting a virtualization algorithm in virtual machine environments
US7490206B2 (en) Method and structure for low memory relocation for dynamic memory reconfiguration
Grinberg et al. Architectural virtualization extensions: A systems perspective

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KM KN KP KR KZ LC LK LR LS LT LU LV LY MA MD MG MK MN MW MX MZ NA NG NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU LV MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 1120050023478

Country of ref document: DE

WWE Wipo information: entry into national phase

Ref document number: 200580035526.2

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2007539377

Country of ref document: JP

RET De translation (de og part 6b)

Ref document number: 112005002347

Country of ref document: DE

Date of ref document: 20070920

Kind code of ref document: P

122 Ep: pct application non-entry in european phase

Ref document number: 05818776

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: DE

Ref legal event code: 8607