Virtual Machine Memory Address Assignment with Power Failure Protection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for assigning a physical memory address with power failure protection from a host machine to a virtual machine with power failure protection requirements are inefficient, requiring three mappings and thus reducing assignment efficiency.

Innovation Solution

A method where the host machine directly assigns a physical memory address from a protected physical memory area to a virtual memory address of a virtual machine upon determining that the virtual memory address belongs to a protected virtual memory area, eliminating the need for intermediate mappings by querying stored information, such as in a configuration file or shared file, to establish a mapping relationship between the virtual and physical memory addresses.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If three times of mapping is performed to assign a physical memory address with power failure protection to a virtual memory address, then the virtual machine can access protected memory, but the assignment efficiency is low

Engineering Contradiction:
Improvepower failure protectionVSAvoidassignment efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent pre-establishes a mapping relationship between virtual memory addresses and physical memory addresses with power failure protection before the virtual machine needs to access them. When the virtual machine encounters a page fault, the host machine can directly query the pre-established mapping from the virtual memory address to obtain the corresponding physical memory address, eliminating the need for three sequential mappings and significantly improving assignment efficiency while maintaining power failure protection

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces a character device as an intermediary layer that simplifies the mapping process. Instead of performing three separate mappings (physical memory address → character device → PCI device → virtual memory address), the system pre-establishes a direct mapping between virtual memory addresses and physical memory addresses with power failure protection, allowing the host machine to directly query and obtain the protected physical memory address when needed

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10817432B2Memory address assignment method for virtual machine and apparatus
Publication Date: 2020.10.27 HUAWEI TECH CO LTD
  • US10817432B2 patent drawing
  • US10817432B2 patent drawing
  • US10817432B2 patent drawing

AI summary

A memory address assignment method and a virtual machine that runs on a host machine. The host machine includes a physical memory area with power failure protection, the virtual machine includes a virtual memory area with power failure protection. The method includes determining that a virtual memory address in which a page fault occurs in the virtual machine belongs to the virtual memory area with power failure protection, and assigning a physical memory address of the host machine from the physical memory area with power failure protection to the virtual memory address.