Method and device for managing virtual machine devices

A technology for managing virtual machines and virtual devices, which is applied in the field of devices for managing virtual machines, and can solve problems such as CPU resource waste, simulated processor resource overhead, and reduced virtual machine performance.

Inactive Publication Date: 2017-10-17
HUAWEI TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor found that the existing technology has at least the following problems: as a user mode process, the simulated processor has resource overhead, and when the number of virtual machines on the host machine is large, the CPU overhead of all simulated processors is very high
In order to ensure that the virtual machine device can get a timely response, the frequency of the timer is generally set very high, but when the virtual machine does not use the device, the timer still maintains high precision, resulting in waste of CPU resources and reducing the performance of the virtual machine

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
  • Method and device for managing virtual machine devices
  • Method and device for managing virtual machine devices
  • Method and device for managing virtual machine devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] In this embodiment, the device of the virtual machine is a U disk, and the state of the device of the virtual machine is whether there is an event to be processed as an example for illustration, see image 3 , which can include:

[0060] 301. The simulation processor obtains the current state of the device of the virtual machine, that is, the U disk;

[0061] Optionally, the status of the U disk can be whether there is an event to be processed;

[0062] For example, the timer of the USB disk in qemu periodically checks whether the virtual machine has a USB disk event according to a certain frequency.

[0063] 302. If the state of the U disk is that there is no event to be processed, change the current frequency F of the timer corresponding to the U disk to the second frequency F2 corresponding to the state of "no event to be processed";

[0064] The frequency of the timer affects the real-time performance of the virtual machine's event response to the device correspon...

Embodiment 2

[0074] The principle of this embodiment is the same as that of Embodiment 1, so only the different parts will be described in detail. In this embodiment, the device of the virtual machine is a USB mouse, and the status of the USB mouse is whether it will be used as an example. See Figure 4 ,include:

[0075] 401. The simulation processor obtains the current state of the device of the virtual machine, that is, the USB mouse;

[0076] Optionally, the status of the USB mouse can be whether it is about to be used;

[0077] Exemplarily, it can be judged whether the USB mouse is about to be used in the following manner:

[0078] For example: if the simulation processor detects that the current mode of the USB mouse is "login to the virtual machine using VNC", it can be judged that the current state of the USB mouse is about to be used;

[0079] 402. If the USB mouse is not about to be used, change the current frequency F of the timer corresponding to the USB mouse to the fourth f...

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 provide a method and device for managing virtual machine devices. The invention relates to the computer field, and solves the problem in the prior art that the timer still maintains high precision when the virtual machine does not use the device, resulting in waste of CPU resources. The specific solution is: by obtaining the current state of the virtual machine device; and according to the current state of the virtual machine device and the preset corresponding relationship between the virtual machine device state and the timer frequency, the virtual machine device Change the current frequency of the timer to the frequency of the timer corresponding to the current state of the virtual machine's device. The invention is used for a device for managing virtual machines.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for managing virtual machine devices. Background technique [0002] The virtualization platform can run multiple virtual machines on a set of hardware devices. The virtual machine's device is a virtual device that can be simulated by an emulated processor and managed accordingly. The simulated processor can be a user-mode process on the host machine, and each virtual machine has its own simulated processor process; there are several timers (timers) in the simulated processor to process events of the virtual machine device, the timer Periodically check whether the device has an event that needs to be processed to realize the response to the device event. The trigger frequency of the timer affects the real-time response to the device event. [0003] Under normal circumstances, the timer in the analog processor regularly queries and processes device events according to...

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/455
Inventor 王锐迟建春
Owner HUAWEI TECH CO LTD
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