System and method for ballooning with assigned devices
AssigneeRed Hat Israel, Ltd.
InventorsPaolo Bonzini, Michael Tsirkin
Life of this patent
Estimating the term…
Abstract
A system and method for ballooning with assigned devices includes inflating a memory balloon, determining whether a first memory page is locked based on information associated with the first memory page, when the first memory page is locked unlocking the first memory page and removing first memory addresses associated with the first memory page from management by an input/output memory management unit (IOMMU), and reallocating the first memory page. The first memory page is associated with a first assigned device.
Claims20
A method of memory ballooning, the method comprising:
- inflating a memory balloon by requesting that a memory page be added to the memory balloon;
- in response to placement of a first memory page in the memory balloon, determining whether the first memory page is locked and is being accessed by a direct memory access (DMA) controller based on information associated with the first memory page;
- when the first memory page is locked and is being accessed by the DMA controller unlocking the first memory page and removing first memory addresses associated with the first memory page from management by an input/output memory management unit (IOMMU);
- and
- reallocating the first memory page;
- wherein the first memory page is associated with a first assigned device.
A non-transitory machine-readable medium comprising a first plurality of machine-readable instructions which when executed by one or more processors associated with a host operating system are adapted to cause the one or more processors to perform a method comprising:
- inflating a memory balloon by requesting that a memory page be added to the memory balloon;
- in response to placement of a first memory page in the memory balloon, determining whether the first memory page is locked and is being accessed by a direct memory access (DMA) controller based on information associated with the first memory page;
- when the first memory page placed in the memory balloon is locked and is being accessed by the DMA controller unlocking the first memory page and removing first memory addresses associated with the first memory page from management by an input/output memory management unit (IOMMU);
- and
- reallocating the first memory page;
- wherein the first memory page placed in the memory balloon is associated with a first assigned device.
Dependencies are inferred from the claim text.