Client operating system nucleus code dynamic replacement method of virtual machine manager

A technology of virtual machine manager and guest operating system, applied in software emulation/interpretation/simulation, multiprogramming device, program control device, etc., can solve the problem that the full virtualization method cannot modify the GuestOS and so on

Inactive Publication Date: 2009-09-23
PEKING UNIV
View PDF0 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The purpose of the present invention is to propose a dynamic replacement method for the guest operating system kernel code of a virtual machine manager on the basis of full virtualization technology, so as to solve the problem that the full virtualization method cannot modify the Guest OS

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
  • Client operating system nucleus code dynamic replacement method of virtual machine manager

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The following is a specific embodiment of the present invention, which is implemented based on the open source full virtualization virtual machine manager KVM.

[0044] First, a code replacement engine needs to be added to KVM to enable or disable the code replacement mechanism, collect code information that needs to be replaced, and also modify the page table of the guest operating system (Guest OS) to assist in the completion of code implantation; A CID is added to the host operating system, which is used to complete the code analysis and implant the user mode process of the replacement code. Follow the steps below to implement:

[0045] Step 1: First start the CID (Code Implantation Daemon) process. We allocate a section of physical memory area in the process space of CID to accommodate the implanted replacement code. We call this section of physical memory area the implantation code space. Then modify the page table of the Guest OS through the code replacement engi...

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 client operating system nucleus code dynamic replacement method of a virtual machine manager, belonging to the software technical field. The method is as follows: (1) a host operating system is internally added with a CID process, assigned with an implantation space so as to contain implanted alternate codes, and then VMM maps the implantation space to a kernel process space of Guest OS; (2) the VMM counts codesnippet needed to be replaced; (3) the CID appoints a section of replacing codes according to the statistical results; (4) the appointed replacing codes are read into the implantation space, and a call stack in which the replacing codes locate is obtained; (5) the CID finds out calling points of the replacing codes in the Guest OS; the VMM changes skip addresses of the call points into the offset address of the appointed replacing address. The invention makes the advantages of the half virtualization method being blended into the full virtualization technology possible and does dynamic replacement for Guest OS kernel in a binary system bedding surface.

Description

technical field [0001] The invention relates to a virtualization technology, in particular to a method for dynamically replacing kernel codes of a guest operating system 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, and the Guest OS does not require any modification. [0003] We know that paravirtualization can achieve good performance by modifyi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46G06F9/455
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