Memory virtualization method based on guest operatiion system kernel code replacement

A guest operating system and memory virtualization technology, applied in the memory virtualization of the virtual machine manager, in the field of virtualization, can solve problems such as poor performance of memory virtualization

Inactive Publication Date: 2010-11-10
PEKING UNIV
View PDF1 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The purpose of the present invention is to establish a new memory virtualization method based on guest operating system kernel code replacement, under the premise of not modifying the Guest OS kernel source code, re...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory virtualization method based on guest operatiion system kernel code replacement
  • Memory virtualization method based on guest operatiion system kernel code replacement
  • Memory virtualization method based on guest operatiion system kernel code replacement

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] This embodiment implements a new memory paravirtualization prototype system based on the open source full virtualization virtual machine manager KVM and a 32-bit Linux guest operating system.

[0038] 1. Establish a virtual machine direct page table access mechanism, which allows to replace the guest physical memory page number in the Guest OS page table entry with the machine memory page number without modifying the source code of the Guest OS, so as to realize virtual A mapping of memory addresses to machine memory addresses. As mentioned earlier, those page table entries pointing to the page table will be protected and rewritten into a special format, Figure 4 Describes the specific format of a protected page table entry. The lowest 12 bits of the protected page table entry are the attribute bits of the page table entry, and we set them all to zero to distinguish them from ordinary page table entries. The 22nd to 26th bits are the recovery table number bits, which...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a memory virtualization method based on guest operatiion system kernel code replacement, which belongs to the technical field of computer software. The method comprises the following steps: (1) converting all page table entries PTE pointing page table pages or page directory pages into protected page table entries P-PTE; simultaneously, maintaining a recovery table for each process; (2) establishing a memory page number mapping table G2H from a guest to a host and a memory page number mapping table H2G from the host to the guest in a VMM (Virtual Machine Manager) to complete bidirectional memory address conversion; and (3) reading the page directory pages PDE and common page table entries PTE and P-PTE and writing in the PDE and the PTE according to the mapping tables G2H and H2G. Compared with the prior art, the invention has small expenses and high performance of memory virtualization on the premise of not modifying a guest operatiion system kernel source code, and thereby, the problem of poorer memory virtualization performance in the traditional full-Virtualization system is solved.

Description

technical field [0001] The invention relates to a virtualization technology, in particular to a memory virtualization technology of a virtual machine manager, and belongs to the technical field of computer software. Background technique [0002] The virtual machine (Virtual Machine, VM) technology originated in the 1960s. Its core idea is to virtualize multiple virtual computers (VMs) on a physical host, on which multiple independent operating systems can run simultaneously. A guest operating system (Guest OS) accesses actual physical resources through a virtual machine manager (Virtual Machine Monitor, VMM). Currently there are several different virtualization technologies: one is Paravirtualization, which requires some modifications to the source code of the Guest OS; the other is Full Virtualization, which requires no modification of the Guest OS. [0003] We know that paravirtualization can achieve good performance by modifying the source code of the Guest OS, while ful...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F12/10G06F9/455G06F12/1018
Inventor 汪小林罗英伟孙逸峰李宇李晓明
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products