Detection of guest disk cache
AssigneeRed Hat Israel, Ltd.
InventorsMarcelo Tosatti, Avi Kivity, Henri Han Van Riel
Life of this patent
Estimating the term…
Abstract
A virtual machine disk page detector running on a computing device detects guest disk cache usage. The detector detects a request from a virtual operating system to read an object into a virtual memory page from a virtual disk, maintains a record of a page identifier and a corresponding virtual disk address in a guest cache data structure, and modifies a protection identifier of the virtual memory page to indicate that the virtual memory page is protected.
Claims20
A method comprising:
- detecting a request from a virtual operating system to read data from an anonymous memory allocation into a virtual memory page from a virtual disk, wherein the anonymous memory allocation comprises anonymous memory dedicated to a virtual machine and that is freed by the virtual machine while the virtual machine is running;
- maintaining a record of a page identifier and a corresponding first virtual disk address in a guest cache data structure;
- and
- modifying, by a processing device executing a hypervisor, a first protection identifier of the virtual memory page to indicate that the virtual memory page is write-protected.
A non-transitory computer readable storage medium comprising executable instructions that, when executed by a processing device, cause the processing device to:
- detect, by the processing device, a request from a virtual operating system to read data from an anonymous memory allocation into a virtual memory page from a virtual disk, wherein the anonymous memory allocation comprises anonymous memory dedicated to a virtual machine and that is freed by the virtual machine while the virtual machine is running;
- maintain, by the processing device, a record of a page identifier and a corresponding first virtual disk address in a guest cache data structure;
- and
- modify, by the processing device executing a hypervisor, a first protection identifier of the virtual memory page to indicate that the virtual memory page is write-protected.
An apparatus comprising:
- a memory to store a record of a page identifier;
- and
- a processing device, coupled to the memory, wherein the processing device is to:
- detect a request from a virtual operating system to read data from an anonymous memory allocation into a virtual memory page from a virtual disk, wherein the anonymous memory allocation comprises anonymous memory dedicated to a virtual machine and that is freed by the virtual machine while the virtual machine is running;
- maintain the record of the page identifier and a corresponding first virtual disk address in a guest cache data structure;
- and
- modify a first protection identifier of the virtual memory page to indicate that the virtual memory page is write-protected.
Dependencies are inferred from the claim text.