# US 8,578,083 B2 · Block map based I/O optimization for storage virtual appliances

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,083 B2
- Document ID: US8578083B2
- Status: Granted
- Kind: B2
- Application number: 12/577,637
- Filed: 2009-10-12
- Published: 2010-09-09
- Granted: 2013-11-05
- Earliest claimed: 2009-03-03
- Assignees: VMware, Inc.
- Applicants: Karthik Chandrasekaran; Supratim Deka
- Inventors: Karthik Chandrasekaran; Supratim Deka
- Web page: https://patentgrep.com/patent/US8578083B2

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of performing disk operations on a physical storage that is being managed by a storage virtual appliance (SVA), from a virtual machine (VM), is disclosed. The method includes intercepting a data read/write request form the VM. The data read/write request is intercepted in the hypervisor prior to the read/write request reaches the SVA. The VM and the SVA are hosted in the hypervisor. The read/write request includes virtual block numbers which are translated into physical block numbers before performing the read/write operation on the physical storage. The method further includes probing a copy of virtual Logical Unit Number (LUN) block numbers to physical disk block numbers mapping table (bock map table) in the hypervisor to identify physical block numbers that corresponds to the virtual block numbers in the read/write request. If a mapping of the virtual block numbers in the read/write request is available in the hypervisor cache, the virtual block numbers are translated into the physical block numbers and the read/write request is performed directly to the physical storage totally bypassing the SVA.

## Claims

### Claim 1

A method of performing disk operations on a physical storage that is being managed by a storage virtual appliance (SVA) from a virtual machine (VM), the method comprising:
intercepting a request for reading or writing data from the VM, the request being intercepted in a hypervisor prior to the request reaching the SVA, the VM and the SVA being hosted in the hypervisor, wherein the request includes virtual block numbers that are translated into physical block numbers before performing an operation to read or write data with the physical storage;
storing a mapping table including a copy of virtual block numbers to physical block numbers in the hypervisor;
probing, by the hypervisor, the copy of virtual block numbers to physical block numbers in the mapping table in the hypervisor to identify if a mapping of physical block numbers that correspond to the virtual block numbers of the request is available to determine if a bypass of the SVA should be performed; and
if the bypass of the SVA should be performed, translating, by the hypervisor, the virtual block numbers into the physical block numbers and performing, by the hypervisor, the request directly to the physical storage without using the SVA; and
if the bypass of the SVA should not be performed, sending the request to the SVA, wherein the SVA is configured to identify physical block numbers that correspond to the virtual block numbers in the request and perform the request using the physical block numbers with the physical storage.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the mapping table in the hypervisor comprises a first mapping table, the method further comprising:
maintaining the a second mapping table in the SVA, wherein the SVA manages the physical storage and provides a transparent storage functionality to the VM in which the VM is unaware of an actual physical disk in the physical storage being used for storage of data of the VM; and
making a copy of the second mapping table to form the first mapping table in the hypervisor that hosts the VM and the SVA, wherein the first mapping table in the hypervisor is kept in sync with the second mapping table in the SVA.

### Claim 3 (depends on 2)

The method as recited in claim 2, wherein making the copy of the second mapping table is performed through an application programming interface (API) provided by the hypervisor, and the API includes functions to map and upmap virtual block numbers to physical block numbers.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein determining if the bypass of the SVA should be performed comprises determining if a flag is set to bypass the SVA, wherein the flag is set when the request is for readonly purposes only.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein if the bypass of the SVA is performed and results in an error, sending the request to the SVA.

### Claim 6 (depends on 1)

The method as recited in claim 1, further comprising flushing the mapping table in the hypervisor when an error occurs when performing the request directly to the physical storage without using the SVA.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving the mapping table at the hypervisor from the SVA, wherein the received mapping table is stored in the hypervisor.

### Claim 8

A non-transitory computer readable storage medium for storing programming instructions for performing disk operations on a physical storage that is being managed by a storage virtual appliance (SVA) from a virtual machine (VM), the computer readable media comprising:
programming instructions for intercepting a request for reading or writing data from the VM, the request being intercepted in a hypervisor prior to the request reaching the SVA, the VM and the SVA being hosted in the hypervisor, wherein the request includes virtual block numbers that are translated into physical block numbers before performing an operation to read or write data with the physical storage;
programming instructions for storing a mapping table including a copy of virtual block numbers to physical block numbers in the hypervisor;
programming instructions for probing, by the hypervisor, the copy of virtual block numbers to physical block numbers in the mapping table in the hypervisor to identify if a mapping of physical block numbers that correspond to the virtual block numbers of the request is available to determine if a bypass of the SVA should be performed; and
programming instructions for if the bypass of the SVA should be performed, translating, by the hypervisor, the virtual block numbers into the physical block numbers and performing, by the hypervisor, the request directly to the physical storage without using the SVA; and
if the bypass of the SVA should not be performed, programming instructions for sending the request to the SVA, wherein the SVA is configured to identify physical block numbers that correspond to the virtual block numbers in the request and perform the request using the physical block numbers with the physical storage.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium as recited in claim 8, wherein the mapping table in the hypervisor comprises a first mapping table, further comprising:
programming instructions for maintaining the a second mapping table in the SVA, wherein the SVA manages the physical storage and provides a transparent storage functionality to the VM in which the VM is unaware of an actual physical disk in the physical storage being used for storage of data of the VM; and
programming instructions for making a copy of the second mapping table to form the first mapping table in the hypervisor that hosts the VM and the SVA, wherein the first mapping table in the hypervisor is kept in sync with the second mapping table in the SVA.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium as recited in claim 9, wherein making the copy of the second mapping table is performed through an application programming interface (API) provided by the hypervisor, and the API includes functions to map and upmap virtual block numbers to physical block numbers.

### Claim 11 (depends on 8)

The non-transitory computer readable storage medium as recited in claim 8, wherein programming instructions for determining if the bypass of the SVA should be performed comprise programming instructions for determining if a flag is set to bypass the SVA, wherein the flag is set when the request is for readonly purposes only.

### Claim 12 (depends on 8)

The non-transitory computer readable storage medium as recited in claim 8, wherein if the bypass of the SVA is performed and results in an error, programming instructions for sending the request to the SVA.

### Claim 13 (depends on 8)

The non-transitory computer readable storage medium as recited in claim 8, further comprising flushing the mapping table in the hypervisor when an error occurs when performing the request directly to the physical storage without using the SVA.

### Claim 14

An apparatus configured to store programming instructions for performing disk operations on a physical storage that is being managed by a storage virtual appliance (SVA) from a virtual machine (VM), apparatus comprising:
one or more computer processors; and
a computer-readable storage medium comprising instructions for controlling the one or more computer processors to be operable for:
intercepting a request for reading or writing data from the VM, the request being intercepted in a hypervisor prior to the request reaching the SVA, the VM and the SVA being hosted in the hypervisor, wherein the request includes virtual block numbers that are translated into physical block numbers before performing an operation to read or write data with the physical storage;
storing a mapping table including a copy of virtual block numbers to physical block numbers in the hypervisor;
probing, by the hypervisor, the copy of virtual block numbers to physical block numbers in the mapping table in the hypervisor to identify if a mapping of physical block numbers that correspond to the virtual block numbers of the request is available to determine if a bypass of the SVA should be performed; and
if the bypass of the SVA should be performed, translating, by the hypervisor, the virtual block numbers into the physical block numbers and performing, by the hypervisor, the request directly to the physical storage without using the SVA; and
if the bypass of the SVA should not be performed, sending the request to the SVA, wherein the SVA is configured to identify physical block numbers that correspond to the virtual block numbers in the request and perform the request using the physical block numbers with the physical storage.

### Claim 15 (depends on 14)

The apparatus as recited in claim 14, wherein the mapping table in the hypervisor comprises a first mapping table, further operable for:
maintaining the a second mapping table in the SVA, wherein the SVA manages the physical storage and provides a transparent storage functionality to the VM in which the VM is unaware of actual physical disk in the physical storage being used for storage of data of the VM; and
making a copy of the second mapping table to form the first mapping table in the hypervisor that hosts the VM and the SVA, wherein the first mapping table in the hypervisor is kept in sync with the second mapping table in the SVA.

### Claim 16 (depends on 15)

The apparatus as recited in claim 15, wherein making the copy of the second block table is performed through an application programming interface (API) provided by the hypervisor, and the API includes functions to map and upmap virtual block numbers to physical block numbers.

### Claim 17 (depends on 14)

The apparatus as recited in claim 14, wherein determining if the bypass of the SVA should be performed comprises determining if a flag is set to bypass the SVA, wherein the flag is set when the request is for readonly purposes only.

### Claim 18 (depends on 14)

The apparatus as recited in claim 14, wherein if the bypass of the SVA is performed and results in an error, further operable for sending the request to the SVA.

### Claim 19 (depends on 14)

The apparatus as recited in claim 14, further operable for flushing the mapping table in the hypervisor when an error occurs when performing the request directly to the physical storage without using the SVA.
