# US 2024/0202289 A1 · Using Ownership Identifiers in Metadata in a Memory for Protecting Encrypted Data Stored in the Memory

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

- Number: US 2024/0202289 A1
- Document ID: US20240202289A1
- Status: Published application
- Kind: A1
- Application number: 18/081,540
- Filed: 2022-12-14
- Published: 2024-06-20
- Earliest claimed: 2022-12-14
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: David Kaplan; Kedarnath Balakrishnan
- Web page: https://patentgrep.com/patent/US20240202289A1

## CPC

- G06F 21/1066: {Hiding content}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device includes a memory and controller circuitry. The controller circuitry, responsive to a read request to read encrypted data stored in the memory, acquires, from metadata stored with the encrypted data in the memory, an ownership identifier identifying a type of writing entity that stored the encrypted data in the memory. The controller circuitry uses the ownership identifier to control whether, when responding to the read request, data decrypted from the encrypted data is returned or substitute data is returned instead of data decrypted from the encrypted data.

## Claims

### Claim 1

An electronic device, comprising:
a memory; and
controller circuitry, the controller circuitry being configured to:
acquire, from metadata stored with encrypted data in the memory, an ownership identifier; and
control, based on the ownership identifier, whether to, when responding to a read request to read the encrypted data from the memory:
return data decrypted from the encrypted data; or
return substitute data.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the controller circuitry is configured to return the substitute data when:
the ownership identifier indicates that a writing entity that stored the encrypted data in the memory is a supporting virtual machine; and
a reading entity identifier associated with the read request indicates that a reading entity is not a supporting virtual machine.

### Claim 3 (depends on 2)

The electronic device of claim 2, wherein, when responding to the read request, the controller circuitry is configured to return data decrypted from the encrypted data in cases other than when the ownership identifier indicates that the writing entity is a supporting virtual machine and the reading entity identifier indicates that the reading entity is not a supporting virtual machine.

### Claim 4 (depends on 3)

The electronic device of claim 3, wherein the writing entity and the reading entity are each one of:
a legacy virtual machine that does not support the controller circuitry returning the substitute data;
a supporting virtual machine that supports the controller circuitry returning the substitute data; or
a hypervisor.

### Claim 5 (depends on 2)

The electronic device of claim 2, wherein:
the ownership identifier and the reading entity identifier are, or are generated from, key identifiers (IDs) from among a set of key IDs; and
the set of key IDs includes one or more key IDs allocated to a hypervisor, a first subset of key IDs to be allocated to supporting virtual machines, and a second subset of key IDs to be allocated to legacy virtual machines, the first subset being separate from the second subset.

### Claim 6 (depends on 1)

The electronic device of claim 1, further comprising encryption circuitry configured to, when data decrypted from the encrypted data is returned:
acquire, based on the read request, a decryption key associated with a reading entity; and
perform a decryption operation to decrypt the encrypted data using the decryption key, wherein the decryption operation:
results in properly decrypted data when the reading entity is an entity that stored the encrypted data in the memory or is permitted to access the encrypted data; and
results in improperly decrypted data when an entity other than the reading entity stored the encrypted data in the memory or is not permitted to access the encrypted data.

### Claim 7 (depends on 1)

The electronic device of claim 1, further comprising encryption circuitry, wherein:
the encryption circuitry is configured to encrypt data using an encryption key associated with a writing entity, the encryption key being acquired based on a write request to store the data in the memory;
the controller circuitry is configured to generate, based on a writing entity identifier from the write request, an ownership identifier that identifies a type of the writing entity; and
the controller circuitry is configured to store the encrypted data in the memory and the ownership identifier in the metadata stored with the encrypted data in the memory.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein:
the substitute data includes a plurality of bits; and
bit values for the plurality of bits in the substitute data are set in accordance with a specified pattern of bit values.

### Claim 9 (depends on 1)

The electronic device of claim 1, wherein the ownership identifier identifies a type of a writing entity that stored the encrypted data in the memory, the type of the writing entity being one of a hypervisor, a legacy virtual machine, and a supporting guest virtual machine.

### Claim 10 (depends on 1)

The electronic device of claim 1, wherein the metadata includes a plurality of error correction code (ECC) bits and at least some of the plurality of ECC bits are repurposed for storing the ownership identifier.

### Claim 11

A method for handling data in an electronic device, the method comprising:
acquiring, from metadata stored with encrypted data in a memory, an ownership identifier; and
controlling, based on the ownership identifier, whether to, when responding to a read request to read the encrypted data from the memory:
return data decrypted from the encrypted data; or
return substitute data.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
returning the substitute data when:
the ownership identifier indicates that a writing entity that stored the encrypted data in the memory is a supporting virtual machine; and
a reading entity identifier associated with the read request indicates that a reading entity is not a supporting virtual machine.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
returning the data decrypted from the encrypted data in cases other than when the ownership identifier indicates that the writing entity is a supporting virtual machine and the reading entity identifier indicates that the reading entity is not a supporting virtual machine.

### Claim 14 (depends on 13)

The method of claim 13, wherein the writing entity and the reading entity are each one of:
a legacy virtual machine that does not support the controller circuitry returning the substitute data;
a supporting virtual machine that supports the controller circuitry returning the substitute data; or
a hypervisor.

### Claim 15 (depends on 12)

The method of claim 12, wherein:
the ownership identifier and the reading entity identifier are, or are generated from, key identifiers (IDs) from among a set of key IDs; and
the set of key IDs includes one or more key IDs allocated to a hypervisor, a first subset of key IDs to be allocated to supporting virtual machines, and a second subset of key IDs to be allocated to legacy virtual machines, the first subset being separate from the second subset.

### Claim 16 (depends on 11)

The method of claim 11, further comprising, for returning the data decrypted from the encrypted data:
acquiring, based on the read request, a decryption key associated with a reading entity; and
decrypting the encrypted data using the decryption key, which:
results in properly decrypted data when the reading entity is an entity that stored the encrypted data in the memory or is permitted to access the encrypted data; and
results in improperly decrypted data when an entity other than the reading entity stored the encrypted data in the memory or is not permitted to access the encrypted data.

### Claim 17 (depends on 11)

The method of claim 11, further comprising:
encrypting data using an encryption key associated with a writing entity, the encryption key being acquired based on a write request to store the data in the memory;
generating, based on a writing entity identifier from the write request, an ownership identifier that identifies a type of the writing entity; and
storing the encrypted data in the memory and the ownership identifier in the metadata stored with the encrypted data in the memory.

### Claim 18 (depends on 11)

The method of claim 11, wherein:
the substitute data includes a plurality of bits; and
bit values for the plurality of bits in the substitute data are set in accordance with a specified pattern of bit values.

### Claim 19 (depends on 11)

The method of claim 11, wherein the ownership identifier identifies a type of a writing entity that stored the encrypted data in the memory, the type of the writing entity being one of a hypervisor, a legacy virtual machine, and a supporting guest virtual machine.

### Claim 20 (depends on 11)

The method of claim 11, wherein the metadata includes a plurality of error correction code (ECC) bits and at least some of the plurality of ECC bits are repurposed for storing the ownership identifier.
