# US 2023/0068102 A1 · Hash operations in memory for data sharing

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

- Number: US 2023/0068102 A1
- Document ID: US20230068102A1
- Status: Published application
- Kind: A1
- Application number: 17/462,828
- Filed: 2021-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Dhawal Bavishi
- Web page: https://patentgrep.com/patent/US20230068102A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1016: Performance improvement
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/651: Multi-level translation tables
- G06F 2212/656: Address space sharing
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes receiving a command, from a host, to an address of a memory device, the command comprising a different address. The method also includes determining based on the address whether to perform a hash operation and, responsive to determining to perform the hash operation, accessing data stored in memory cells having the different address. The method further includes performing the hash operation using the data to generate a signature for the data and providing the host access to the signature to determine whether the data is duplicate data.

## Claims

### Claim 1

A method, comprising:
receiving a command, from a host, to an address of a memory device, the command comprising a different address;
determining based on the address whether to perform a hash operation;
responsive to determining to perform the hash operation, accessing data stored in memory cells having the different address;
performing the hash operation, in a memory sub-system, using the data to generate a signature for the data; and
providing the host access to the signature to determine whether the data is duplicate data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the signature is unique for the data.

### Claim 3 (depends on 1)

The method of claim 1, further comprising providing the host access to the signature by storing the signature in a destination address provided as metadata to the command.

### Claim 4 (depends on 1)

The method of claim 1, wherein the address corresponds to a region of the memory device reserved as an indication to perform the hash operation.

### Claim 5 (depends on 1)

The method of claim 1, further comprising providing the address to the host at startup of the memory device.

### Claim 6 (depends on 1)

The method of claim 1, further comprising providing the address to the host during discovery at startup of the memory device.

### Claim 7 (depends on 1)

The method of claim 1, wherein the command comprises the different address as metadata.

### Claim 8 (depends on 1)

The method of claim 1, further comprising performing the hash operation sequentially on chunks of the data to generate the signature for the data.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
retaining intermediate results of the hash operation performed on the chunks of the data; and
utilize the intermediate results to perform the hash operation on a next chunk of the chunks of the data.

### Claim 10

An apparatus, comprising:
a processing device, configured to:
access a first system physical address of memory cells, of a memory device, that store data, wherein the first system physical address is provided by a hypervisor and wherein the first system physical address is associated with a first guest physical address;
provide the first system physical address to a memory sub-system to perform a hash operation on the data;
access a signature of the data generated using the hash operation;
compare the signature to other signatures to determine whether the data and different data are duplicate data, wherein the different data is stored in different memory cells having a second system physical address associated with a second guest physical address;
responsive to determining that the data and the different data are duplicate data, update a translation table by associating the first guest physical address and the second guest physical address with the system physical address.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the processing device is further configured to, responsive to determining that the data and the different data are duplicate data, provide a command to the memory device to delete the different data.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the translation table is used by the hypervisor implemented by a host comprising the processing device.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processing device is configured to execute the hypervisor and wherein the hypervisor is configured to:
receive the first guest physical address and the second guest physical address;
generate the first system physical address from the first guest physical address and the second system physical address from the second guest physical address utilizing the translation table.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the first guest physical address is received from a first virtual machine and the second guest physical address is received from a second virtual machine.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the first guest physical address and the second guest physical address are received from a same virtual machine.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the first guest physical address corresponds to a first operating system hosted by the same virtual machine and the second guest physical address corresponds to a second operating system hosted by the same virtual machine.

### Claim 17

An apparatus, comprising:
a memory array;
a processing device coupled to the memory array and configured to:
receive a command, from a host, to a first address of a memory device, the command comprising a second address and a third address as metadata;
determine based on the first address whether to perform an operation;
responsive to determining, using the first address, to perform the operation:
access data stored in memory cells, of the memory device, having the second address;
access different data stored in different memory cells, of the memory device, having the third address;
perform the operation using the data to generate a first signature for the data and the different data to generate a second signature;
responsive to comparing the first signature to the second signature, provide an indication of whether the data and the different data are duplicate data.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the processing device is further configured to receive the first address of memory cells of the memory device via an address bus coupling the host to the processing device.

### Claim 19 (depends on 17)

The apparatus of claim 17, wherein the processing device is further configured to receive the first address of the memory device, wherein the first address does not correspond to memory cells of the memory device.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the first address is to a register of the memory device.

### Claim 21 (depends on 17)

The apparatus of claim 17, wherein the commands to the first address identify the operation.

### Claim 22 (depends on 17)

The apparatus of claim 17, wherein the processing apparatus is further configured to, responsive to receipt of a different command, delete one of the data and the different data.

### Claim 23 (depends on 17)

The apparatus of claim 17, wherein processing apparatus is configured to perform the operation using a fixed state machine.

### Claim 25 (depends on 17)

The apparatus of claim 17, configured to update a firmware of the processing device to perform a hash operation using the data to generate the first signature for the data and the different data to generate the second signature.

### Claim 26 (depends on 17)

The apparatus of claim 17, configured to update a firmware of the processing device to perform a different operation using the data to generate the first signature for the data and the different data to generate the second signature.
