US8539010B2

Virtual machine, virtual machine monitor and computer control method

Summary by NHIP

Virtual Machine Timer Control

The virtual machine monitor adjusts a timer setting period to align guest OS I/O wait and process time ratios with monitor-recognized ratios. It receives the original setting, modifies the period based on time comparisons, sets the adjusted period, and notifies the guest OS of the resulting interrupt.

Claim Score by NHIP

Read claim 7, the broadest

Abstract

A virtual machine monitor for a virtual machine. The virtual machine monitor makes the processor in the virtual machine: receive a timer setting from the guest OS in place of the timer, the timer setting being for making the timer generate a timer interrupt after a lapse of a setting period; change, when the guest OS inputs or outputs data from or to the I/O device via the virtual machine monitor, the setting period set in the timer so that a relation between I/O wait time recognized by the guest OS and I/O process time other than the I/O wait time becomes approximate to a relation between the I/O wait time recognized by the virtual machine monitor and the I/O process time; set the timer setting with the changed setting period in the timer; and notify, when receiving the timer interrupt, the guest OS of occurrence of the timer interrupt.

US8539010B2, drawing sheet 1
Sheet 1 of 15

Term

Projected expiry 19 June 2031.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Projected expiry

9 claims: 3 independent, 6 dependent

  1. 1
    A virtual machine, comprising:a computer including a memory, a processor, a timer and an input/output (I/O) device;and a virtual machine monitor to be loaded on the memory and executed by the processor, the virtual machine monitor controlling execution of at least one guest operating system (OS) on the processor, accepting a process request from the guest OS to the computer and handing over a result of execution made by the computer in response to the process request to the guest OS, wherein the virtual machine monitor makes the processor function as: a unit to receive a timer setting from the guest OS, the timer setting being for making the timer generate a timer interrupt after a lapse of a setting period;a timer changing unit to change the setting period set in the timer setting so that a ratio of first I/O wait time to first I/O process time other than the first I/O wait time becomes approximate to a ratio of second I/O wait time to second I/O process time, the first I/O wait time being time recognized by the guest OS as I/O wait time, time first I/O process time being time recognized by the guest OS as I/O process time, the second I/O wait time being time recognized by the virtual machine monitor as I/O wait time, and the second I/O process time being time recognized by the virtual machine monitor as I/O process time;a unit to set the timer setting with the changed setting period in the timer;and a unit to notify, when receiving the timer interrupt, the guest OS of occurrence of the timer interrupt.
  2. 4
    A non-transitory storage medium stored with a virtual machine monitor executed by a processor of a computer including a memory, the processor, a timer and an input/output (I/O) device, the virtual machine monitor controlling execution of at least one guest operating system (OS) on the processor, accepting a process request from the guest OS to the computer and handing over a result of execution made by the computer in response to the process request to the guest OS, wherein the virtual machine monitor makes the processor function as:a unit to receive a timer setting from the guest OS, the timer setting being for making the timer generate a timer interrupt after a lapse of a setting period;a timer changing unit to change the setting period set in the timer setting so that a ratio of first I/O wait time to first I/O process time other than the first I/O wait time becomes approximate to a ratio of second I/O wait time to second I/O process time, the first I/O wait time being time recognized by the guest OS as I/O wait time, the first I/O process time being time recognized by the guest OS as I/O process time, the second I/O wait time being time recognized by the virtual machine monitor as I/O wait time, and the second I/O process time being time recognized by the virtual machine monitor as I/O process time;a unit to set the timer setting with the changed setting period in the timer;and a unit to notify, when receiving the timer interrupt from the timer, the guest OS of occurrence of the timer interrupt.
  3. 7
    Broadest claimClaim Score 33, narrow(NHIP)A computer control method executed by a computer comprising a memory, a timer, an input/output (I/O) device and a processor on which to operate one guest OS and a virtual machine monitor controlling execution of the guest OS, the method comprising:making the virtual machine monitor receive a timer setting from the guest OS, the timer setting being for making the timer generate a timer interrupt after a lapse of a setting period;making the virtual machine monitor change the setting period set in the timer setting so that a ratio of first I/O wait time to first I/O process time other than the first I/O wait time becomes approximate to a ratio of second I/O wait time to second I/O process time, the first I/O wait time being time recognized by the guest OS as I/O wait time, the first I/O process time being time recognized by the guest OS as I/O process time, the second I/O wait time being time recognized by the virtual machine monitor as I/O wait time, and the second I/O process time being time recognized by the virtual machine monitor as I/O process time;setting the timer setting with the changed setting period in the timer from the virtual machine monitor;and making the virtual machine monitor notify, when receiving the timer interrupt from the timer, the guest OS of occurrence of the timer interrupt.