# US 11,119,948 B2 · Memory protection circuit and memory protection method

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

- Number: US 11,119,948 B2
- Document ID: US11119948B2
- Status: Granted
- Kind: B2
- Application number: 16/405,585
- Filed: 2019-05-07
- Published: 2019-11-28
- Granted: 2021-09-14
- Earliest claimed: 2018-05-25
- Assignees: Renesas Electronics Corporation
- Applicants: Renesas Electronics Corporation
- Inventors: Takashi Ichikawa
- Web page: https://patentgrep.com/patent/US11119948B2

## CPC

- G06F 12/1475: {in a virtual system, e.g. with translation means}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 12/1458: {by checking the subject access rights}
- G06F 9/5016: {the resource being the memory}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1016: Performance improvement
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

To provide a memory protection circuit and a memory protection method suitable for quick data transfer between a plurality of virtual machines via a common memory, according to an embodiment, a memory protection circuit includes a first ID storing register that stores therein an ID of any of a plurality of virtual machines managed by a hypervisor, an access determination circuit that permits the virtual machine having the ID stored in the first ID storing register to access a memory, a second ID storing register that stores therein an ID of any of the virtual machines, and an ID update control circuit that permits the virtual machine having the ID stored in the second ID storing register to rewrite the ID stored in the first ID storing register.

## Claims

### Claim 1

A memory protection circuit comprising:
a first ID storing register that stores therein an ID (Identification) of any of a plurality of virtual machines managed by a hypervisor;
an access determination circuit that permits the virtual machine having the ID stored in the first ID storing register to access a memory;
a second ID storing register that stores therein an ID of any of the virtual machines; and
an ID update control circuit that permits the virtual machine having the ID stored in the second ID storing register to rewrite the ID stored in the first ID storing register.

### Claim 2 (depends on 1)

The memory protection circuit according to claim 1,
wherein the second ID storing register stores therein IDs of first and second virtual machines of the virtual machines, and
wherein the ID update control circuit is configured to rewrite the ID stored in the first ID storing register from an ID of one of the first and second virtual machines to an ID of the other, when a request of rewriting the ID stored in the first ID storing register has been issued from either of the first and second virtual machines.

### Claim 3 (depends on 1)

The memory protection circuit according to claim 1,
wherein the second ID storing register stores therein IDs of three or more of the virtual machines, and
wherein the ID update control circuit is configured to rewrite the ID stored in the first ID storing register to an ID of any of the three or more virtual machines, when a request of rewriting the ID stored in the first ID storing register has been issued from the any of the three or more virtual machines.

### Claim 4 (depends on 1)

The memory protection circuit according to claim 1, further comprising an ID lock register that makes a lock signal active when the virtual machine having the ID stored in the first ID storing register requests a lock,
wherein the ID update control circuit is configured not to rewrite the ID stored in the first ID storing register when the lock signal is active, even if rewriting of the ID stored in the first ID storing register has been requested from the virtual machine having the ID stored in the second ID storing register.

### Claim 5 (depends on 4)

The memory protection circuit according to claim 4, wherein the ID lock register is configured to make the lock signal inactive, when rewriting the ID stored in the first ID storing register has been requested from the virtual machine having the ID stored in the first ID storing register in a period in which the lock signal is active.

### Claim 6 (depends on 4)

The memory protection circuit according to claim 4, further comprising:
a counter that starts a count-up operation in synchronization with a timing at which the lock signal is made active; and
a comparator circuit that compares a count value of the counter and a predetermined threshold value with each other,
wherein the ID lock register is configured to forcibly switch the lock signal from an active state to an inactive state when a comparison result representing that the count value has reached the predetermined threshold value is output from the comparator circuit.

### Claim 7 (depends on 1)

The memory protection circuit according to claim 1, wherein the ID stored in the first storing register is rewritten in response to a request from the hypervisor, irrespective of a request from the virtual machine having the ID stored in the second ID storing register.

### Claim 8

A memory protection system comprising:
an arithmetic processing circuit that implements processing of a hypervisor and a plurality of virtual machines;
a memory; and
a memory protection circuit, wherein the memory protection circuit comprising:
a first ID storing register that stores therein an ID (Identification) of any of the virtual machines managed by the hypervisor;
an access determination circuit that permits the virtual machine having the ID stored in the first ID storing register to access the memory;
a second ID storing register that stores therein an ID of any of the virtual machines; and
an ID update control circuit that permits the virtual machine having the ID stored in the second ID storing register to rewrite the ID stored in the first ID storing register.

### Claim 9

A memory protection method comprising:
storing an ID (Identification) of any of a plurality of virtual machines managed by a hypervisor in a first ID storing register;
storing an ID of any of the virtual machines in a second ID storing register;
permitting the virtual machine having the ID stored in the second ID storing register to rewrite the ID stored in the first ID storing register; and
permitting the virtual machine having the ID stored in the first ID storing register to access a memory.

### Claim 10 (depends on 9)

The memory protection method according to claim 9,
wherein IDs of first and second virtual machines of the virtual machines are stored in the second ID storing register, and
wherein the ID stored in the first ID storing register is rewritten from an ID of one of the first and second virtual machines to an ID of the other, when a request of rewriting the ID stored in the first ID storing register has been issued from either of the first and second virtual machines.
