×

Using capability indicators to indicate support for guest driven surprise removal of virtual PCI devices

  • US 10,394,586 B2
  • Filed: 08/13/2015
  • Issued: 08/27/2019
  • Est. Priority Date: 08/13/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for removing a virtual device from a virtual machine having a guest operating system (OS), the virtual machine managed by a hypervisor executing on a processing device, comprising:

  • receiving, by the hypervisor, a notification from the guest OS, the notification comprising a capability indicator value indicating a support level for surprise removal of a virtual device of the guest OS, the surprise removal of the virtual device comprising removal of the virtual device from the virtual machine without first providing a warning to the guest OS;

    storing, by the hypervisor, the capability indicator value corresponding to the virtual device in a mapping table;

    subsequently receiving, by the processing device executing the hypervisor, a request to remove the virtual device from the virtual machine;

    responsive to receiving the request to remove the virtual device, accessing, by the hypervisor, the mapping table to obtain the capability indicator value corresponding to the virtual device;

    identifying, by the processing device executing the hypervisor, in view of the obtained capability indicator value, a particular set of actions associated with the obtained capability indicator value, the particular set of actions to be performed to remove the virtual device from the virtual machine, the particular set of actions including at least removing the virtual device from the virtual machine without first providing the warning to the guest OS when the capability indicator indicates a safe support level, or at least first providing the warning to the guest OS before removing the virtual device from the virtual machine when the capability indicator indicates an unsafe support level; and

    removing the virtual device from the virtual machine using the particular set of actions.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×