×

System and method for handling I/O timeout deadlines in virtualized systems

  • US 9,122,505 B1
  • Filed: 01/31/2013
  • Issued: 09/01/2015
  • Est. Priority Date: 01/31/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for avoiding Guest I/O timeout, comprising:

  • a. generating a request to an I/O device in a Guest Operating System (OS) running inside a Virtual Machine (VM);

    b. setting a VM timeout deadline to prevent the VM from failing if a response from the I/O device is not received;

    c. in a hypervisor that manages the VM, setting a supervisory timeout deadline for the I/O device to respond, wherein the supervisory timeout deadline is shorter than the VM timeout deadline;

    d. if a response from the I/O device is not received prior to expiration of the supervisory timeout deadline, using the hypervisor to pause the Guest OS by halting all processes running on a virtual CPU associated with the VM, in order to prevent the Guest OS from hanging;

    e. freezing system time of the Guest OS;

    f. activating a handler for the I/O device response in the hypervisor, to process the response from the I/O device;

    g. upon receipt of the response by the handler after the supervisory timeout deadline, forwarding the response to the Guest OS, unpausing the Guest OS and unfreezing the system time of the Guest OS;

    h. upon receipt of the response by the Guest OS after the supervisory timeout deadline, and after the Guest OS is unpaused by the hypervisor, the Guest OS is able to receive the response from the hardware device and delete the VM timeout deadline; and

    i. if no response is received from the I/O device, the Guest OS is kept in a paused state with a frozen Guest system time.

View all claims
  • 6 Assignments
Timeline View
Assignment View
    ×
    ×