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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


