# US 11,119,968 B2 · Increasing cache hits for USB request blocks that target a redirected USB device

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

- Number: US 11,119,968 B2
- Document ID: US11119968B2
- Status: Granted
- Kind: B2
- Application number: 16/057,669
- Filed: 2018-08-07
- Published: 2020-02-13
- Granted: 2021-09-14
- Earliest claimed: 2018-08-07
- Assignees: Dell Products L.P.
- Applicants: Dell Products L.P.
- Inventors: Gokul Thiruchengode Vajravel; Ankit Kumar
- Web page: https://patentgrep.com/patent/US11119968B2

## CPC

- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F 2213/0042: Universal serial bus [USB]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Cache hits are increased for URBs that target a redirected USB device. When a virtual bus driver in a VDI environment queues an IRP for an URB that targets the redirected USB device, it can ensure that the IRP and therefore the URB is completed on the same processor that originated the URB. This can be accomplished in both NUMA and non-NUMA multiprocessor environments.

## Claims

### Claim 1

A method, implemented by a virtual bus driver that executes on a server in a virtual desktop infrastructure (VDI) environment, for increasing cache hits for universal serial bus (USB) request blocks (URBs) that target a USB device that is connected to a client terminal and redirected to the server, the method comprising:
receiving, at the virtual bus driver that executes on the server, an I/O request packet (IRP) that is associated with an URB that targets the USB device that is connected to the client terminal and redirected to the server;
in conjunction with queuing the IRP while the URB is sent to the redirected USB device that is connected to the client terminal such that the URB is sent over a network to the client terminal while the IRP is queued, obtaining an identifier of a first processor that is currently executing and storing an association between the queued IRP and the identifier, the server comprising more than one processor;
upon receiving, from the client terminal, a response to the URB that was sent to the redirected USB device, obtaining and employing the identifier to request that a routine for completing the IRP be executed by the first processor; and
as the first processor executes the routine, completing the IRP using the response to the URB that was received from the client terminal.

### Claim 2 (depends on 1)

The method of claim 1, wherein queuing the IRP includes marking the IRP as pending.

### Claim 3 (depends on 1)

The method of claim 1, wherein the queue is an internal queue managed by the virtual bus driver.

### Claim 4 (depends on 1)

The method of claim 1, wherein sending the URB to the redirected USB device comprises sending, to a server-side agent, information about the IRP and contents of the URB to enable an equivalent request to be created on the client terminal for submission to the redirected USB device.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
while the IRP is queued, queueing one or more additional IRPs, each of which targets a USB device that is redirected to the server, and storing an identifier of a current processor with each of the additional IRPs.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
creating a deferred procedure call (DPC) object and associating the routine with the DPC object.

### Claim 7 (depends on 6)

The method of claim 6, wherein employing the identifier to request that the routine for completing the IRP be executed by the first processor comprises calling a function to cause the DPC object to be inserted into a DPC queue of the first processor.

### Claim 8 (depends on 7)

The method of claim 7, wherein employing the identifier to request that the routine for completing the IRP be executed by the first processor further comprises calling a function that specifies that the routine is to be executed on the first processor prior to calling the function to cause the DPC object to be inserted into the DPC queue of the first processor.

### Claim 9 (depends on 1)

The method of claim 1, wherein completing the IRP using the response to the URB comprises populating content of the response into the URB.

### Claim 10 (depends on 1)

The method of claim 1, wherein the server comprises a non-uniform memory access (NUMA) architecture.

### Claim 11

One or more computer storage media storing computer-executable instructions which when executed on a server in a multiprocessor environment implement a method for increasing cache hits for universal serial bus (USB) request blocks (URBs) that target a USB device that is connected to a client terminal and redirected to the server, the method comprising:
Receiving, at a virtual bus driver that executes on the server, I/O request packets (IRPs) each of which is associated with an URB that targets a USB device that is connected to a client terminal and redirected to the server;
for each IRP:
queueing the IRP;
in conjunction with queuing the IPR, obtaining an identifier of a current processor;
storing an association between the queued IRP and the identifier;
while the IRP is queued, sending the associated URB to the client terminal to which the targeted USB device is connected;
upon receiving a response to the associated URB, obtaining and employing the corresponding identifier of the current processor to request that a routine for completing the IRP be executed by the same processor; and
as the same processor executes the routine, completing the IRP using the response to the associated URB.

### Claim 12 (depends on 11)

The computer storage media of claim 11, wherein the method further comprises:
creating a deferred procedure call (DPC) object and associating the routine with the DPC object.

### Claim 13 (depends on 12)

The computer storage media of claim 12, wherein employing the corresponding identifier to request that the routine for completing the IRP be executed by the same processor comprises calling a function to cause the DPC object to be inserted into a DPC queue of the same processor.

### Claim 14 (depends on 13)

The computer storage media of claim 13, wherein employing the corresponding identifier to request that the routine for completing the IRP be executed by the same processor further comprises calling a function that specifies that the routine is to be executed on the same processor prior to calling the function to cause the DPC object to be inserted into the DPC queue of the same processor.

### Claim 15 (depends on 11)

The computer storage media of claim 11, wherein completing the IRP using the response to the associated URB comprises populating content of the response into the associated URB.

### Claim 16 (depends on 11)

The computer storage media of claim 11, wherein queuing the IRP includes marking the IRP as pending.

### Claim 17 (depends on 11)

The computer storage media of claim 11, wherein the IRPs are queued in one or more internal queues.

### Claim 18

A method for increasing cache hits for universal serial bus (USB) request blocks (URBs) that target a USB device that is connected to a client terminal and redirected to the server, the method comprising:
receiving, at a virtual bus driver that executes on the server, an I/O request packet (IRP) that is associated with an URB that targets the USB device that is connected to the client terminal and redirected to the server;
queuing the IRP;
while the IRP is queued, sending the URB to the client terminal for submission to the redirected USB device;
in conjunction with queuing the IRP while the URB is sent to the client terminal for submission to the redirected USB device, obtaining an identifier of a first processor that is currently executing and storing an association between the queued IRP and the identifier, the server comprising more than one processor;
upon receiving a response to the URB that was sent to the redirected USB device, obtaining and employing the identifier to request that a routine for completing the IRP be executed by the first processor; and
as the first processor executes the routine, completing the IRP using the response to the URB.

### Claim 19 (depends on 18)

The method of claim 18, wherein employing the identifier to request that the routine for completing the IRP be executed by the first processor comprises calling a function to cause a DPC object to be inserted into a DPC queue of the first processor.

### Claim 20 (depends on 19)

The method of claim 19, wherein employing the identifier to request that the routine for completing the IRP be executed by the first processor further comprises calling a function that specifies that the routine is to be executed on the first processor prior to calling the function to cause the DPC object to be inserted into the DPC queue of the first processor.
