Paravirtualized access for device assignment by bar extension
AssigneeRed Hat Israel, Ltd.
InventorsMichael S. Tsirkin, Paolo Bonzini
Life of this patent
Estimating the term…
Abstract
A hypervisor associates a combined register space with a virtual device to be presented to a guest operating system of a virtual machine, the combined register space comprising a default register space and an additional register space. Responsive to detecting an access of the additional register space by the guest operating system of the virtual machine, the hypervisor performs an operation on behalf of the virtual machine, the operation pertaining to the access of the additional register space.
Claims17
A method comprising:
- identifying, by a processing device executing a hypervisor, a size of a default register space of a physical device to be assigned to a guest operating system of a virtual machine;
- identifying an additional register space to extend the size of the default register space for a virtual device to be presented to the guest operating system of the virtual machine;
- associating a combined register space with the virtual device, the combined register space comprising the default register space and the additional register space, wherein associating the combined register space with the virtual space comprises mapping the additional register space to a shared memory;
- and
- responsive to receiving a fault from the guest operating system indicating an access of the additional register space performing, by the processing device executing the hypervisor, an operation on behalf of the virtual machine, the operation pertaining to the access of the additional register space, wherein performing the operation comprises at least one of executing a hypervisor instruction on behalf of the guest operating system of the virtual machine, or communicating with a second physical device on behalf of the guest operating system of the virtual machine.
A computing apparatus comprising:
- a memory;
- and
- a processing device, operatively coupled to the memory, to execute a hypervisor to:
- associate a combined register space with a virtual device to be presented to a guest operating system of a virtual machine, the combined register space comprising a default register space and an additional register space, wherein to associate the combined register space with the virtual space the hypervisor is to map the additional register space to a shared memory;
- and
- responsive to receiving a fault from the guest operating system indicating an access of the additional register space, perform an operation on behalf of the virtual machine, the operation pertaining to the access of the additional register space, wherein to perform the operation, the processing device is to at least one of execute a hypervisor instruction on behalf of the guest operating system of the virtual machine, or communicate with a second physical device on behalf of the guest operating system of the virtual machine.
A non-transitory computer readable storage medium, having instructions stored therein, which cause a processing device to:
- identify, by the processing device executing a hypervisor, a size of a default register space of a physical device to be assigned to a guest operating system of a virtual machine;
- identify an additional register space to extend the size of the default register space for a virtual device to be presented to the guest operation system of the virtual machine;
- associate a combined register space with the virtual device, the combined register space comprising the default register space and the additional register space, wherein to associate the combined register space with the virtual space the processing device is to map the additional register space to a shared memory;
- and
- responsive to receiving a fault from the guest operating system indicating an access of the additional register space, perform, by the processing device executing the hypervisor, an operation on behalf of the virtual machine, the operation pertaining to the access of the additional register space, wherein to perform the operation, the processing device is to at least one of execute a hypervisor instruction on behalf of the guest operating system of the virtual machine, or communicate with a second physical device on behalf of the guest operating system of the virtual machine.
Dependencies are inferred from the claim text.