hottub.patents
US 12,562,916 B2#3307954 Most CitedActiveUnited States (USPTO)Utility

Paging support for encrypted GPU buffers

0Forward Citations (#3307954 Global)
0.0/yrCitation Velocity (#3307954 Global)
0.00Citation PageRank (#3307954 Global)
6Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

Described herein is a paging technique that can be implemented in any accelerator with attached memory and support for operating on encrypted data when the CPU is not within the trusted compute base (TCB). Memory storing data that is encrypted using hardware physical address (HPA)-based encrypted can be paged out of accelerator device memory by decoupling encryption from the hardware physical address and re-encrypting the data for page-out. Upon page-in, the data is decrypted, the integrity and authenticity of the data is verified, then the data is re-encrypted using HPA-based encryption.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    An accelerator device comprising: a first memory device; a graphics processor coupled with the first memory device; and circuitry coupled with the first memory device and the graphics processor, the circuitry configured to: receive a request to page out a first memory page of the first memory device to a second memory device, wherein the first memory page is configured to store encrypted data that is encrypted based on a hardware physical address (HPA) of the data; decrypt the encrypted data generate a message authentication code (MAC) of the first memory page; store the MAC to a slot within a second memory page of the first memory device, wherein the slot within the second memory page corresponds with a first counter value of a counter included within the circuitry; encrypt the first memory page via a first page key and the first counter value to generate an encrypted first memory page; and copy the encrypted first memory page to the second memory device.

  2. Claim 2Depends on #1

    The accelerator device as in claim 1, wherein the circuitry is configured to: store the first counter value to first memory page metadata associated with the first memory page; store a second counter value associated with the second memory page to the first memory page metadata; and copy the first memory page metadata to the second memory device.

  3. Claim 3Depends on #2

    The accelerator device as in claim 2, wherein the circuitry is configured to: receive a request to page in the encrypted first memory page to the first memory device; determine the slot within the second memory page that stores the MAC of the first memory page based on the first counter value stored to the first memory page metadata; decrypt the encrypted first memory page via the first page key and the first counter value; verify the first memory page based on the MAC of to the slot within the second memory page; upon verification of the first memory page, encrypting data of the first memory page based on the HPA to which the data is to be stored; and store the first memory page to the first memory device.

  4. Claim 4Depends on #1

    The accelerator device as in claim 1, wherein the second memory page is stored to an access limited portion of the first memory device.

  5. Claim 5Depends on #4

    The accelerator device as in claim 4, wherein the circuitry is configured to: receive a request to page out the second memory page from the access limited portion of the first memory device; encrypt the second memory page via a second page key and a second counter value associated with the second memory page to generate an encrypted second memory page, wherein the second page key differs from the first page key; and copy the encrypted second memory page from the access limited portion of the first memory device.

  6. Claim 6Depends on #5

    The accelerator device as in claim 5, wherein the circuitry is configured to copy the encrypted second memory page to the second memory device.

  7. Claim 7Depends on #5

    The accelerator device as in claim 5, wherein the circuitry is configured to: initialize a successive instance of the second memory page in the access limited portion of the first memory device; and store second memory page metadata to the successive instance of the second memory page, the second memory page metadata including a MAC value of the encrypted second memory page, the second counter value, and a third counter value, wherein the third counter value is associated with the successive instance of the second memory page.

  8. Claim 8Depends on #7

    The accelerator device as in claim 7, wherein the circuitry is configured to: receive a request to page in the encrypted second memory page to the access limited portion of the first memory device; load the MAC value of the encrypted second memory page and the second counter value from the second memory page metadata of the successive instance of the second memory page; load the encrypted second memory page; decrypt the encrypted second memory page via the second page key and the second counter value; and store the second memory page to the access limited portion of the first memory device.

Technical Overview & Description

FIELD Embodiments described herein generally relate to computing systems. More particularly, embodiments are described to enable paging support for AES XTS encrypted GPU buffers when CPU is not within the trusted compute base of the computing system. BACKGROUND OF THE DISCLOSURE Accelerators with attached memory can store encrypted data. For example, accelerator devices can include support for data that is encrypted using the Advanced Encryption Standard (AES), including the AES XEX Tweakable Block Ciphertext Stealing (XTS) mode, which uses an encryption key as well as a tweakable key (e.g., tweak). In some implementations, the hardware physical address (HPA) of a stored block of data is used as the tweak when encrypting such data via AES XTS. This encryption mechanism is used in use cases such as, for example, playback of media that is protected via digital rights management (DRM) encryption. Using the HPA as a tweak limits the ability to decrypt encrypted data once the data is copied to a different physical address than the address for which is encrypted. However, such data cannot be paged out of the device memory of the accelerator, as there is no guarantee that the data will be paged back into the original physical address. Accordingly, many accelerator devices will disable paging entirely for buffers that are encrypted using AES XTS with HPA-based encryption. BRIEF DESCRIPTION OF THE DRAWINGS The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements, and in which: FIG. 1 is a block diagram of a processing system, according to an embodiment; FIG. 2 A- 2 D illustrate computing systems and graphics processors provided by embodiments described herein; FIG. 3 A- 3 C illustrate block diagrams of additional graphics processor and compute accelerator architectures provided by embodiments described herein; FIG. 4 is a block diagram of a graphics processing engi

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)

PatentTitleYearCitations