Methods and systems for tracking a virtual memory of a virtual machine
AssigneeCavium, Inc.
InventorsMerav Sicron, Rafi Shalom
Life of this patent
Estimating the term…
Abstract
Methods and systems for a virtual machine environment are provided. One method includes allocating a memory for storing a dirty pages data structure for tracking writes to a virtual machine memory by an adapter coupled to a computing device and shared by a plurality of virtual machines; initiating a tracking operation by the adapter or a virtual function driver to track writes to the virtual memory; providing access to the dirty pages data structure in response to a query command, while the adapter or the virtual function driver tracks writes to the virtual machine memory; and providing a number of dirty pages within the dirty pages data structure and a pointer the dirty pages data structure by the adapter or the virtual function driver.
Claims20
A method comprising;
- allocating a memory for storing a dirty pages data structure for tracking writes to a virtual machine memory by an adapter coupled to a computing device and shared by a plurality of virtual machines;
- initiating a tracking operation by the adapter to track writes to the virtual machine memory;
- maintaining the dirty pages data structure while tracking the writes to the virtual machine memory;
- detecting a last entry of the dirty pages data structure that was reported by the adapter in response to a query command;
- providing access to the dirty pages data structure from the detected last entry in response to a next query command, while the adapter continues to track writes to the virtual machine memory;
- and
- providing a number of dirty pages within the dirty pages data structure and a pointer to the dirty pages data structure by the adapter, when the adapter is instructed to stop tracking writes to the virtual machine memory.
A method, comprising:
- allocating a memory for storing a dirty pages data structure by a virtual function driver for tracking writes to a virtual machine memory;
- initiating a tracking operation by a virtual function driver executed by the virtual machine to access a physical resource;
- maintaining the dirty pages data structure while tracking the writes to the virtual machine memory by the virtual function driver;
- detecting a last entry of the dirty pages data structure that was reported by in response to a query command;
- providing access to the dirty pages data structure from the detected last entry in response to a next query command by the virtual function driver, while the virtual function driver continues to track writes to the virtual machine memory;
- and
- providing a number of dirty pages within the dirty pages data structure and a pointer to the dirty pages data structure, when the virtual function driver is instructed to stop tracking writes to the virtual machine memory.
A non-transitory, machine readable storage medium having stored thereon instructions for performing a method, comprising machine executable code which when executed by at least one machine, causes the machine to:
- allocate a memory for storing a dirty pages data structure by a virtual function driver for tracking writes to a virtual machine memory;
- initiate a tracking operation by a virtual function driver executed by the virtual machine to access a physical resource;
- maintain the dirty pages data structure while tracking the writes to the virtual machine memory by the virtual function driver;
- detect a last entry of the dirty pages data structure that was reported by in response to a query command;
- provide access to the dirty pages data structure from the detected last entry in response to a next query command by the virtual function driver, while the virtual function driver continues to track writes to the virtual machine memory;
- and
- provide a number of dirty pages within the dirty pages data structure and a pointer to the dirty pages data structure, when the virtual function driver is instructed to stop tracking writes to the virtual machine memory.
Dependencies are inferred from the claim text.