Unlock instant, AI-driven research and patent intelligence for your innovation.

A virtual machine monitoring method, device and system

A technology for monitoring devices and virtual machines, applied in the fields of monitoring methods, devices and systems, can solve problems such as performance degradation, inability to monitor, and virtual machine exit, and achieve the effect of performance improvement

Active Publication Date: 2019-01-11
SHENZHEN TENCENT COMP SYST CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the research and practice process to prior art, the inventor of the present invention finds, when performing IO operation in virtual machine, can be transformed into the portio or mmio (memory mapping I / O, Memory mapping I / O, Memory Mapping I / O) of performing I / O device / O) access, which will cause the virtual machine to exit, resulting in performance degradation, but the current monitoring method cannot monitor this, so that the failure of the sub-machine cannot be accurately located

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
  • A virtual machine monitoring method, device and system
  • A virtual machine monitoring method, device and system
  • A virtual machine monitoring method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] This embodiment will be described from the perspective of a monitoring device for a virtual machine. Specifically, the monitoring device for a virtual machine may be integrated in a host machine, and may include a fast emulator (QEMU, Quick EMUlator) and a kernel-based virtual machine (KVM, Kernel- based Virtual Machine).

[0027] A method for monitoring a virtual machine, comprising: intercepting an access process to an I / O device in a sub-machine, simulating the access process of the I / O device according to the access process, monitoring and counting the number of users exiting the access during the simulation process frequency and distribution information.

[0028] Such as figure 1 As shown, the process of the monitoring method of the virtual machine can be specifically as follows:

[0029] 101. Intercept the process of accessing the I / O device in the slave machine. For example, the process of accessing the I / O device in the slave machine can be specifically inter...

Embodiment 2

[0051] According to the method described in Embodiment 1, an example will be given below for further detailed description.

[0052] In this embodiment, the virtual machine monitoring apparatus specifically includes QEMU and KVM (that is, the KVM kernel module) as an example for description.

[0053] A virtual machine monitoring method, such as figure 2 As shown, the specific process can be as follows:

[0054] 201. The KVM intercepts the process of accessing the I / O device in the slave machine, such as mmio access or portio access.

[0055] 202. KVM simulates the access process, calls the relevant callback function for processing and returns the processing result to QEMU; or, if the KVM does not simulate the I / O device, then transmits the access process to QEMU, and QEMU performs the process on the access process simulation.

[0056] During specific simulation, the address of the I / O device can be determined first according to the access process, and the corresponding I / O ...

Embodiment 3

[0109] Correspondingly, the embodiment of the present invention also provides a virtual machine monitoring device, such as Figure 3a As shown, the monitoring device of the virtual machine includes an intercepting unit 301, a simulation unit 302 and a monitoring unit 303, as follows:

[0110] The intercepting unit 301 is configured to intercept the process of accessing the input / output device in the slave machine.

[0111] Wherein, the access process may be mmio access or portio access.

[0112] The simulation unit 302 is configured to simulate the access process of the I / O device according to the access process.

[0113] The monitoring unit 303 is configured to monitor and count the number and distribution information of exit visits during the simulation process.

[0114] For example, among them, the simulation unit 302 may include a determination subunit, an allocation subunit, an establishment subunit and a simulation subunit, as follows:

[0115]The determining subunit ...

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

Embodiments of the present invention disclose a virtual machine monitoring method, apparatus and system. According to the embodiments of the present invention, through intercepting an access process of I / O equipment by a sub machine, simulating access processes of the I / O equipment according to the access process, and then monitoring and counting the time and distributed information of quit access during the simulating process, exquisite and quantitative monitoring statistics of I / O operation of the sub machine is achieved, so that faults of the sub machine can be accurately positioned, and subsequently performance of the virtual machine can be improved according to the fault cause.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a virtual machine monitoring method, device and system. Background technique [0002] System virtualization has good isolation, encapsulation, compatibility and hardware independence, so it has been widely used. The so-called system virtualization, also known as a virtual machine (Virtual Machine), refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. Wherein, the physical device where the virtual machine is located is called a parent machine, and one or more simulated systems are called slave machines of the parent machine. [0003] In order to better understand the operation status of the virtual machine, the prior art proposes to monitor the operation of the virtual machine. Existing virtual machine monitoring generally monitors each process from the sub-machine, ...

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 Patents(China)
IPC IPC(8): G06F9/455G06F11/30
Inventor 贺永红
Owner SHENZHEN TENCENT COMP SYST CO LTD