# US 10,956,321 B2 · Secure management of operations on protected virtual machines

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

- Number: US 10,956,321 B2
- Document ID: US10956321B2
- Status: Granted
- Kind: B2
- Application number: 16/240,763
- Filed: 2019-01-06
- Published: 2019-05-23
- Granted: 2021-03-23
- Earliest claimed: 2014-05-05
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Niels T. Ferguson; Yevgeniy Anatolievich Samsonov; Kinshumann; Samartha Chandrashekar; John Anthony Messec; Mark Fishel Novak; Christopher McCarron; Amitabh Prakash Tamhane; Qiang Wang; David Matthew Kruse; Nir Ben-Zvi; Anders Bertil Vinberg
- Web page: https://patentgrep.com/patent/US10956321B2

## CPC

- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/6209: {to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself}
- G06F 21/6281: {at program execution time, where the protection is within the operating system}
- H04L 9/0822: {using key encryption key}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/3247: {involving digital signatures}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/062: {for key distribution, e.g. centrally by trusted party (cryptographic mechanisms or cryptographic arrangements for key distribution involving a central third party H04L9/0819)}
- H04L 63/0823: {using certificates (cryptographic mechanisms or cryptographic arrangements for entity authentication involving certificates H04L9/3263)}
- H04L 63/12: {Applying verification of the received information (cryptographic mechanisms or cryptographic arrangements for data integrity or data verification H04L9/32)}
- H04W 12/10: Integrity
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F 2212/652: Page size control
- H04L 2209/127: Trusted platform modules [TPM]
- H04L 2209/24: Key scheduling, i.e. generating round keys or sub-keys for block encryption
- H04L 2209/72: Signcrypting, i.e. digital signing and encrypting simultaneously
- H04L 2463/062: applying encryption of the keys
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A virtual secure mode is enabled for a virtual machine operating in a computing environment that is associated with a plurality of different trust levels. First, a virtual secure mode image is loaded into one or more memory pages of a virtual memory space of the virtual machine. Then, the one or more memory pages of the virtual memory space are made inaccessible to one or more trust levels having a relatively lower trust level than a launching trust level that is used by a virtual secure mode loader to load the virtual secure mode image. A target virtual trust level is also enabled on a launching virtual processor for the virtual machine that is higher than the launching trust level.

## Claims

### Claim 1

A method for operating a computing system to transition a virtual machine from one security trust level to a different security trust level, the method comprising:
the computing system causing the virtual machine which is executing on the computer system at a launching trust level to load a virtual secure mode image into one or more memory pages of a virtual memory space of the virtual machine, the virtual secure mode image corresponding to a target trust level that is higher than the launching trust level and prior to the virtual machine being enabled to execute at the target trust level;
the computing system restricting access to the one or more memory pages in response to the virtual secure mode image being loaded into the one or more memory pages; and
the computing system verifying the virtual secure mode image and enabling the virtual machine to transition from executing at the launching trust level to execute at the target virtual trust level.

### Claim 2 (depends on 1)

The method of claim 1, wherein the enabling the virtual machine to execute at the target virtual trust level includes enabling a first virtual processor of the virtual machine to execute at the target virtual trust level without enabling all virtual processors of the virtual machine to execute at the target virtual trust level.

### Claim 3 (depends on 2)

The method of claim 2, wherein the method further includes:
enabling one or more separate virtual processors in the virtual machine to execute on the target virtual trust level.

### Claim 4 (depends on 1)

The method of claim 1, wherein the method further includes providing a virtual register to track the virtual machine executing at the target virtual trust level.

### Claim 5 (depends on 4)

The method of claim 4, wherein the launching trust level and the target virtual trust level are included in a plurality of different trust levels, the plurality of different trust levels including at least three different trust levels that are tracked by the virtual register.

### Claim 6 (depends on 1)

The method of claim 1, wherein verifying the virtual secure mode image includes generating at least one hash of the virtual secure mode image.

### Claim 7 (depends on 6)

The method of claim 6, wherein the method further includes sending the at least one hash to a trusted platform module for attestation of software configuration for the virtual machine.

### Claim 8 (depends on 1)

The method of claim 1, wherein the restricting access comprises preventing the one or more memory pages from being accessed from a virtual component that is executing at a trust level that is lower than the target trust level.

### Claim 9

A computing system comprising:
one or more processors; and
one or more storage media having stored thereon computer-executable instructions that are executable by the one or more processors to cause the computing system to implement a method for transitioning a virtual machine from one security trust level to a different security trust level, the method comprising:
a computing system causing the virtual machine which is executing on the computer system at a launching trust level to load a virtual secure mode image into one or more memory pages of a virtual memory space of the virtual machine, the virtual secure mode image corresponding to a target trust level that is higher than the launching trust level and prior to the virtual machine being enabled to execute at the target trust level;
the computing system restricting access to the one or more memory pages in response to the virtual secure mode image being loaded into the one or more memory pages; and
the computing system verifying the virtual secure mode image and enabling the virtual machine to execute at the target virtual trust level.

### Claim 10 (depends on 9)

The computing system of claim 9, wherein the enabling the virtual machine to execute at the target virtual trust level includes enabling a first virtual processor of the virtual machine to execute at the target virtual trust level without enabling all virtual processors of the virtual machine to execute at the target virtual trust level.

### Claim 11 (depends on 10)

The computing system of claim 10, wherein the method further includes:
enabling one or more separate virtual processors in the virtual machine to execute on the target virtual trust level.

### Claim 12 (depends on 9)

The computing system of claim 9, wherein the method further includes providing a virtual register to track the virtual machine executing at the target virtual trust level.

### Claim 13 (depends on 12)

The computing system of claim 12, wherein the launching trust level and the target virtual trust level are included in a plurality of different trust levels, the plurality of different trust levels including at least three different trust levels that are tracked by the virtual register.

### Claim 14 (depends on 9)

The computing system of claim 9, wherein verifying the virtual secure mode image includes generating at least one hash of the virtual secure mode image.

### Claim 15 (depends on 9)

The computing system of claim 9, wherein the restricting access comprises preventing the one or more memory pages from being accessed from a virtual component that is executing at a trust level that is lower than the target trust level.

### Claim 16 (depends on 9)

The computing system of claim 9, wherein the method further includes subsequently causing the virtual machine to execute at a different trust level than the target virtual trust level.

### Claim 17 (depends on 16)

The computing system of claim 16, wherein the method further includes disenabling the virtual machine to execute at the target virtual trust level.
