# US 2019/0102317 A1 · Technologies for flexible virtual function queue assignment

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

- Number: US 2019/0102317 A1
- Document ID: US20190102317A1
- Status: Published application
- Kind: A1
- Application number: 15/720,954
- Filed: 2017-09-29
- Published: 2019-04-04
- Earliest claimed: 2017-09-29
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Ben-Zion Friedman; Eliel Louzoun
- Web page: https://patentgrep.com/patent/US20190102317A1

## CPC

- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 9/5016: {the resource being the memory}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 2212/1041: Resource optimization
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Technologies for I/O device virtualization include a computing device with an I/O device that includes a physical function, multiple virtual functions, and multiple assignable resources, such as I/O queues. The physical function assigns an assignable resource to a virtual function. The computing device configures a page table mapping from a virtual function memory page located in a configuration space of the virtual function to a physical function memory page located in a configuration space of the physical function. The virtual function memory page includes a control register for the assignable resource, and the physical function memory page includes another control register for the assignable resource. A value may be written to the control register in the virtual function memory page. A processor of the computing device translates the virtual function memory page to the physical function memory page using the page mapping. Other embodiments are described and claimed.

## Claims

### Claim 1

A computing device for I/O device virtualization, the computing device comprising:
one or more processors;
an I/O device that includes a physical function, a first virtual function, and an assignable resource, wherein the physical function is to assign the assignable resource to the first virtual function; and
one or more memory devices having stored therein a plurality of instructions that, when executed by the one or more processors, cause the computing device to configure a page table mapping from a first memory page to a second memory page, wherein the first memory page is located in a configuration space of the first virtual function and comprises a first control register for the assignable resource, and wherein the second memory page is located in a configuration space of the physical function and comprises a second control register for the assignable resource.

### Claim 2 (depends on 1)

The computing device of claim 1, wherein:
the page table mapping comprises an extended page table mapping included in a memory of the computing device;
the first memory page comprises a guest-physical page; and
the second memory page comprises a host-physical page.

### Claim 3 (depends on 1)

The computing device of claim 1, wherein to configure the page table mapping further comprises to allow write access to the second memory page.

### Claim 4 (depends on 1)

The computing device of claim 1, wherein:
the physical function is further to un-assign the assignable resource from the first virtual function; and
the plurality of instructions, when executed, further cause the computing device to remove the page table mapping from the first memory page to the second memory page in response to un-assignment of the assignable resource.

### Claim 5 (depends on 1)

The computing device of claim 1, wherein:
the assignable resource comprises an I/O queue;
the first control register comprises a first doorbell register; and
the second control register comprises a second doorbell register.

### Claim 6 (depends on 5)

The computing device of claim 5, wherein the first doorbell register comprises a tail pointer register or a head pointer register.

### Claim 7 (depends on 5)

The computing device of claim 5, wherein:
the plurality of instructions, when executed, further cause the computing device to write a first value to the first doorbell register in the first memory page in response to configuration of the page table mapping; and
a processor of the computing device is to (i) translate the first memory page to the second memory page with the page table mapping in response to a write the value to the first doorbell register, and (ii) store the first value in the second doorbell register in response to translation of the first memory page to the second memory page.

### Claim 8 (depends on 7)

The computing device of claim 7, wherein the first virtual function is to perform an I/O operation based on the I/O queue in response to storage of the first value in the second doorbell register.

### Claim 9 (depends on 7)

The computing device of claim 7, wherein to write the first value to the first doorbell register comprises to write the first value by a first virtual machine of the computing device, wherein the first virtual machine is associated with the first virtual function.

### Claim 10 (depends on 9)

The computing device of claim 9, wherein:
the plurality of instructions, when executed, further cause the computing device to write, by the virtual machine, an I/O descriptor to an I/O descriptor ring in a memory of the computing device; and
to write the first value to the first doorbell register comprises to write the first value to the first doorbell register in response to a write of the I/O descriptor to the I/O descriptor ring.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the I/O device is further to copy the I/O descriptor from the I/O descriptor ring to the I/O queue in response to storage of the first value in the second doorbell register.

### Claim 12 (depends on 1)

The computing device of claim 1, wherein the I/O device comprises a network interface controller.

### Claim 13

One or more machine-readable storage media comprising a plurality of instructions stored thereon that, in response to being executed, cause a computing device to:
assign, by a physical function of an I/O device of the computing device, an assignable resource of the I/O device to a first virtual function of the I/O device; and
configure a page table mapping from a first memory page to a second memory page, wherein the first memory page is located in a configuration space of the first virtual function and comprises a first control register for the assignable resource, and wherein the second memory page is located in a configuration space of the physical function and comprises a second control register for the assignable resource.

### Claim 14 (depends on 13)

The one or more machine-readable storage media of claim 13, wherein:
the page table mapping comprises an extended page table mapping included in a memory of the computing device;
the first memory page comprises a guest-physical page; and
the second memory page comprises a host-physical page.

### Claim 15 (depends on 13)

The one or more machine-readable storage media of claim 13, wherein to configure the page table mapping further comprises to allow write access to the second memory page.

### Claim 16 (depends on 13)

The one or more machine-readable storage media of claim 13, further comprising a plurality of instructions stored thereon that, in response to being executed, cause the computing device to:
un-assign, by the physical function, the assignable resource of the I/O device from the first virtual function; and
remove the page table mapping from the first memory page to the second memory page in response to un-assigning the I/O queue.

### Claim 17 (depends on 13)

The one or more machine-readable storage media of claim 13, wherein:
the assignable resource comprises an I/O queue;
the first control register comprises a first doorbell register; and
the second control register comprises a second doorbell register.

### Claim 18 (depends on 17)

The one or more machine-readable storage media of claim 17, wherein the first doorbell register comprises a tail pointer register or a head pointer register.

### Claim 19 (depends on 17)

The one or more machine-readable storage media of claim 17, further comprising a plurality of instructions stored thereon that, in response to being executed, cause the computing device to:
write a first value to the first doorbell register in the first memory page in response to configuring the page table mapping;
translate, by a processor of the computing device, the first memory page to the second memory page using the page table mapping in response to writing the value to the first doorbell register; and
store the first value in the second doorbell register in response to translating the first memory page to the second memory page.

### Claim 20 (depends on 19)

The one or more machine-readable storage media of claim 19, further comprising a plurality of instructions stored thereon that, in response to being executed, cause the computing device to perform, by the first virtual function, an I/O operation based on the I/O queue in response to storing the first value in the second doorbell register.

### Claim 21 (depends on 19)

The one or more machine-readable storage media of claim 19, wherein to write the first value to the first doorbell register comprises to write the first value by a first virtual machine of the computing device, wherein the first virtual machine is associated with the first virtual function.

### Claim 22 (depends on 21)

The one or more machine-readable storage media of claim 21, further comprising a plurality of instructions stored thereon that, in response to being executed, cause the computing device to:
write, by the virtual machine, an I/O descriptor to an I/O descriptor ring in a memory of the computing device;
wherein to write the first value to the first doorbell register comprises to write the first value to the first doorbell register in response to writing the I/O descriptor to the I/O descriptor ring.

### Claim 23

A computing device for I/O device virtualization, the computing device comprising:
circuitry for assigning, by a physical function of an I/O device of the computing device, an assignable resource of the I/O device to a first virtual function of the I/O device; and
means for configuring a page table mapping from a first memory page to a second memory page, wherein the first memory page is located in a configuration space of the first virtual function and comprises a first control register for the assignable resource, and wherein the second memory page is located in a configuration space of the physical function and comprises a second control register for the assignable resource.

### Claim 24

A method for I/O device virtualization, the method comprising:
assigning, by a physical function of an I/O device of a computing device, an assignable resource of the I/O device to a first virtual function of the I/O device; and
configuring, by the computing device, a page table mapping from a first memory page to a second memory page, wherein the first memory page is located in a configuration space of the first virtual function and comprises a first control register for the assignable resource, and wherein the second memory page is located in a configuration space of the physical function and comprises a second control register for the assignable resource.

### Claim 25 (depends on 24)

The method of claim 24, wherein:
the page table mapping comprises an extended page table mapping included in a memory of the computing device;
the first memory page comprises a guest-physical page; and
the second memory page comprises a host-physical page.

### Claim 26 (depends on 24)

The method of claim 24, further comprising:
un-assigning, by the physical function, the assignable resource of the I/O device from the first virtual function; and
removing, by the computing device, the page table mapping from the first memory page to the second memory page in response to un-assigning the I/O queue.

### Claim 27 (depends on 24)

The method of claim 24, wherein:
the assignable resource comprises an I/O queue;
the first control register comprises a first doorbell register; and
the second control register comprises a second doorbell register.

### Claim 28 (depends on 27)

The method of claim 27, further comprising:
writing, by the computing device, a first value to the first doorbell register in the first memory page in response to configuring the page table mapping;
translating, by a processor of the computing device, the first memory page to the second memory page using the page table mapping in response to writing the value to the first doorbell register; and
storing, by the computing device, the first value in the second doorbell register in response to translating the first memory page to the second memory page.
