Real time input/output address translation for virtualized systems
Abstract
In an example, a device includes a memory and a processor core coupled to the memory via a memory management unit (MMU). The device also includes a system MMU (SMMU) cross-referencing virtual addresses (VAs) with intermediate physical addresses (IPAs) and IPAs with physical addresses (PAs). The device further includes a physical address table (PAT) cross-referencing IPAs with each other and cross-referencing PAs with each other. The device also includes a peripheral virtualization unit (PVU) cross-referencing IPAs with PAs, and a routing circuit coupled to the memory, the SMMU, the PAT, and the PVU. The routing circuit is configured to receive a request comprising an address and an attribute and to route the request through at least one of the SMMU, the PAT, or the PVU based on the address and the attribute.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A device comprising: a routing circuit; and a set of translation circuits coupled to the routing circuit, wherein: the routing circuit is configured to cause a memory request to be provided to a first translation circuit from among the set of translation circuits based on an attribute of the memory request; the first translation circuit is configured to: determine whether a first address associated with the memory request corresponds to a hit in an address translation table; and based on the first address corresponding to a miss in the address translation table, determine based on the attribute, whether the first address is an intermediate address; the set of translation circuits includes a second translation circuit configured to, based on the attribute specifying that the first address is an intermediate address, determine a second address based on the first address; and the routing circuit is configured to determine, based on the attribute of the memory request, whether to cause the second translation circuit to determine the second address.
- Claim 2Depends on #1
The device of claim 1, wherein: the attribute is a first attribute; the memory request has a second attribute associated with a virtual machine associated with the memory request; and the second translation circuit is configured to: store a set of contexts; and select a context for determining the second address from among the set of contexts based on the second attribute.
- Claim 3Depends on #1
The device of claim 1, wherein: the attribute is a first attribute; and the memory request includes a second attribute that specifies the second translation circuit from among the set of translation circuits.
- Claim 4Depends on #1
The device of claim 1, wherein: the memory request includes an address; and the routing circuit is configured to cause the memory request to be provided to the first translation circuit further based on the address of the memory request.
- Claim 5Depends on #1
The device of claim 1, wherein: the address translation table is configured to be managed by an operating system; and the determining of the second address by the second translation circuit is based on a hypervisor.
- Claim 6Depends on #1
The device of claim 1, wherein the routing circuit is configured to provide the memory request between the first translation circuit and the second translation circuit.
- Claim 7Depends on #1
The device of claim 1, wherein, based on the attribute specifying that the first address is not an intermediate address, the first translation circuit is configured to provide the first address to a memory.
- Claim 8Depends on #1
The device of claim 1, wherein: the routing circuit is configured to couple to a set of peripherals; and the routing circuit is configured to receive the memory request from the set of peripherals.
- Claim 9Depends on #1
The device of claim 1, wherein the second translation circuit is configured to modify the attribute of the memory request to specify that the second address is not an intermediate address.
- Claim 10Independent Claim
A device comprising: a set of processor cores configured to execute an operating system and a hypervisor; a routing circuit configured to couple to a set of peripherals and to receive a memory request from the set of peripherals; and a set of translation circuits coupled to the routing circuit, wherein: the routing circuit is configured to cause the memory request to be provided to a first translation circuit from among the set of translation circuits based on an attribute of the memory request; the first translation circuit is configured to: determine whether a first address is a miss in an address table that is based on the operating system; and based on the first address being a miss in the address table, determine, based on the attribute, whether the first address is an intermediate address; the set of translation circuits includes a second translation circuit configured to, when the attribute specifies that the first address is an intermediate address, determine a second address for the first address based on the hypervisor; and the routing circuit is configured to determine, based on the attribute of the memory request, whether to cause the second translation circuit to determine the second address.
- Claim 11Depends on #10
The device of claim 10, wherein; the attribute is a first attribute; the set of processor cores are configured to execute a virtual machine; the memory request is associated with the virtual machine; the memory request has a second attribute that is associated with the virtual machine; and the second translation circuit is configured to: store a set of contexts; and select a context for determining the second address from among the set of contexts based on the second attribute.
- Claim 12Depends on #10
The device of claim 10, wherein: the attribute is a first attribute; and the memory request includes a second attribute that specifies the second translation circuit from among the set of translation circuits.
- Claim 13Depends on #10
The device of claim 10, wherein: the memory request includes an address; and the routing circuit is configured to cause the memory request to be provided to the first translation circuit further based on the address of the memory request.
- Claim 14Depends on #10
The device of claim 10, wherein the routing circuit is configured to provide the memory request between the first translation circuit and the second translation circuit.
- Claim 15Depends on #10
The device of claim 10 further comprising a memory coupled to the set of translation circuits, wherein the first translation circuit is configured to, when the attribute specifies that the first address is not an intermediate address, provide the first address to the memory.
- Claim 16Depends on #10
The device of claim 10, wherein the second translation circuit is configured to, when the attribute specifies that the first address is an intermediate address, modify the attribute to specify that the second address is not an intermediate address.
- Claim 17Independent Claim
A method comprising: receiving, at a routing circuit, a first memory request that specifies a first address and a first attribute; providing, using the routing circuit, the first memory request to a first translation circuit of a set of translation circuits based on the first attribute; determining, using the first translation circuit, whether the first address is a miss in an address translation table; based on the first address being a miss in the address translation table, determining, based on the first attribute, whether the first address is an intermediate address; based on the first attribute specifying that the first address is an intermediate address: routing the first address to a second translation circuit; determining, using the second translation circuit, a second address for the first address; and performing the first memory request using the second address; receiving, at the routing circuit, a second memory request that specifies a third address and a second attribute; providing, using the routing circuit, the second memory request to the first translation circuit based on the second attribute; determining, using the first translation circuit, whether the third address is a miss in the address translation table; based on the third address being a miss in the address translation table, determining, based on the second attribute, whether the third address is an intermediate address; and based on the second attribute specifying that the third address is not an intermediate address, performing the second memory request using the third address.
- Claim 18Depends on #17
The method of claim 17, wherein: the first memory request has a third attribute that is associated with a virtual machine associated with the first memory request; and the method further comprises selecting a context from among a set of contexts for the determining of the second address based on the third attribute.
- Claim 19Depends on #17
The method of claim 17, wherein: the first memory request includes a third attribute that specifies the second translation circuit from among the set of translation circuits.
- Claim 20Depends on #17
The method of claim 17, wherein: the address translation table is based on an operating system; and the determining of the second address by the second translation circuit is based on a hypervisor.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 17/171,185, filed Feb. 9, 2021, which is a continuation of U.S. patent application Ser. No. 16/256,821, filed Jan. 24, 2019, now U.S. Pat. No. 10,949,357, each of which is incorporated by reference herein in its entirety. SUMMARY In accordance with at least one example of the disclosure, a device comprises a memory, a processor core coupled to the memory via a memory management unit (MMU), a system MMU (SMMU) cross-referencing virtual addresses (VAs) with intermediate physical addresses (IPAs) and IPAs with physical addresses (PAs), a physical address table (PAT) cross-referencing IPAs with each other and cross-referencing PAs with each other, a peripheral virtualization unit (PVU) cross-referencing IPAs with PAs, and a routing circuit coupled to the memory, the SMMU, the PAT, and the PVU. The routing circuit is configured to receive a request comprising an address and an attribute and to route the request through at least one of the SMMU, the PAT, or the PVU based on the address and the attribute. In accordance with at least one example of the disclosure, a device comprises a routing circuit configured to couple to a peripheral device and a system memory management unit (SMMU) coupled to the routing circuit, the SMMU comprising a translation buffer unit (TBU) and a translation control unit (TCU). The device also comprises a physical address table (PAT) coupled to the routing circuit, a peripheral virtualization unit (PVU) coupled to the routing circuit, and a memory coupled to the routing circuit, the SMMU, the PAT, and the PVU. In accordance with at least one example of the disclosure, a method comprises a routing circuit receiving a request from a peripheral device, the request comprising an address and an attribute. The method also comprises the routing circuit determining a type of the attribute, and, in response to the attribute being a first type, th
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|