# US 8,578,064 B2 · Interception and management of I/O operations on portable storage devices

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

- Number: US 8,578,064 B2
- Document ID: US8578064B2
- Status: Granted
- Kind: B2
- Application number: 12/435,273
- Filed: 2009-05-04
- Published: 2010-02-18
- Granted: 2013-11-05
- Earliest claimed: 2008-08-12
- Assignees: Moka5, Inc.
- Applicants: John Whaley; Thomas Joseph Purtell, II
- Inventors: John Whaley; Thomas Joseph Purtell, II
- Web page: https://patentgrep.com/patent/US8578064B2

## CPC

- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- G06F 2213/0058: Bus-related hardware virtualisation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One embodiment provides a system that processes an input/output (I/O) operation associated with a portable storage device. During operation, the system loads a virtual computing environment stored on the portable storage device into a host computer system coupled to the portable storage device. Next, the system intercepts the I/O operation from the virtual computing environment to the portable storage device. Finally, the system decouples the I/O operation from the virtual computing environment by processing the I/O operation independently of a representation of the I/O operation in the virtual computing environment.

## Claims

### Claim 1

A computer-implemented method for processing an input/output (I/O) operation, comprising:
loading a virtual computing environment stored on a portable storage device into a host computer system coupled to the portable storage device, wherein the host computer system includes a physical memory;
maintaining a mapping of logical memory locations in the virtual computing environment to memory locations in the portable storage device;
intercepting an invocation of the I/O operation from the virtual computing environment in the host computer system to the portable storage device, wherein the I/O operation is one of a read operation or a write operation, and wherein intercepting a write operation involves processing the write operation by:
storing the write operation in a log that stores write operations that are yet to be processed, and
returning control to the virtual computing environment upon storing the write operation in the log;
decoupling the invocation of the I/O operation from the processing of the I/O operation, wherein the decoupling comprises providing a representation of the I/O operation to the virtual computing environment, wherein processing a write operation involves transferring data specified by the write operation from the log to the portable storage device; and
processing the I/O operation in the portable storage device independently of the representation of the I/O operation to the virtual computing environment in the host computer system using the mapping.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein processing the read operation involves:
determining one or more locations storing data requested in the read operation; and
retrieving the data from the one or more locations based on an efficiency of accessing the data at the one or more locations.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the data is retrieved from at least one of the portable storage device, a log comprising one or more write operations, and a cache on the host computer system.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein processing the write operation further involves:
committing the write operation by updating the mapping.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein processing the write operation further involves at least one of:
periodically compacting a set of blocks in the portable storage device;
compressing the blocks;
encrypting the blocks; and
generating one or more authentication codes associated with the blocks.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein periodically compacting the blocks involves:
consolidating and reordering partially freed blocks from the blocks in the portable storage device; and
updating the mapping based on the consolidated blocks.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the I/O operation is intercepted by a program stored on the portable storage device.

### Claim 8

A system for processing an input/output (I/O) operation, comprising:
a hypervisor configured to load a virtual computing environment stored on a portable storage device into a host computer system coupled to the portable storage device, wherein the host computer system includes a physical memory;
the hypervisor further configured to maintain a mapping of logical memory locations in the virtual computing environment to memory locations in the portable storage device;
an interceptor configured to intercept an invocation of the I/O operation from the virtual computing environment in the host computer system to the portable storage device, wherein the I/O operation is one of a read operation or a write operation, wherein the interceptor is configured to process a write operation by:
storing the write operation in a log that stores write operations that are yet to be processed, and
returning control to the virtual computing environment upon storing the write operation in the log;
a log processor configured to decouple the invocation of the I/O operation from the processing of the I/O operation, wherein the decoupling comprises providing a representation of the I/O operation to the virtual computing environment, wherein the log processor is configured to execute a write operation by transferring data specified by the write operation from the log to the portable storage device; and
the log processor further configured to process the I/O operation in the portable storage device independently of the representation of the I/O operation to the virtual computing environment in the host computer system using the mapping.

### Claim 9 (depends on 8)

The system of claim 8, wherein the interceptor is configured to process the read operation by:
determining one or more locations storing data requested in the read operation; and
retrieving the data from the one or more locations based on an efficiency of accessing the data at the one or more locations.

### Claim 10 (depends on 9)

The system of claim 9, wherein the data is retrieved from at least one of the portable storage device, a log comprising one or more write operations, and a cache on the host computer system.

### Claim 11 (depends on 8)

The system of claim 8, wherein the log processor is further configured to process the write operation by:
committing the write operation by updating the mapping.

### Claim 12 (depends on 11)

The system of claim 11, wherein processing the write operation further involves at least one of:
periodically compacting a set of blocks in the portable storage device;
compressing the blocks;
encrypting the blocks; and
generating one or more authentication codes associated with the blocks.

### Claim 13 (depends on 8)

The system of claim 8, wherein the interceptor is stored on the portable storage device.

### Claim 14

A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for processing an input/output (I/O) operation, the method comprising:
loading a virtual computing environment stored on a portable storage device into a host computer system coupled to the portable storage device, wherein the host computer system includes a physical memory;
maintaining a mapping of logical memory locations in the virtual computing environment to memory locations in the portable storage device;
intercepting an invocation of the I/O operation from the virtual computing environment in the host computer system to the portable storage device, wherein the I/O operation is one of a read operation or a write operation, and wherein intercepting a write operation involves processing the write operation by:
storing the write operation in a log that stores write operations that are yet to be processed, and
returning control to the virtual computing environment upon storing the write operation in the log;
decoupling the invocation of the I/O operation the processing of the I/O operation, wherein the decoupling comprises providing a representation of the I/O operation to the virtual computing environment, wherein processing a write operation involves transferring data specified by the write operation from the log to the portable storage device; and
processing the I/O operation in the portable storage device independently of the representation of the I/O operation to the virtual computing environment in the host computer system using the mapping.

### Claim 15 (depends on 14)

The computer-readable storage medium of claim 14, wherein processing a read operation corresponding to the I/O operation involves:
determining one or more locations storing data requested in the read operation; and
retrieving the data from the one or more locations based on an efficiency of accessing the data at the one or more locations.
