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

Black box implementation method and system based on Hypervisor

An implementation method and black box technology, applied in the field of computer operating systems, can solve problems such as black screen restart, unfavorable analysis and troubleshooting system, and inability to record the GuestOS site, etc., achieving the effect of strong applicability and wide coverage

Pending Publication Date: 2020-06-05
中瓴智行(成都)科技有限公司
View PDF10 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In a hypervisor-based multi-system environment, especially for running a hypervisor under an embedded system, although abnormal debugging information can be viewed through the serial port, there is no access to the serial port in the actual operating environment, such as the smart cockpit system of a car. After the system is on the car, the serial port output is removed, so the on-site information of the Guest OS abnormal moment cannot be captured through the serial port
At the same time, the log system provided by the Guest OS depends on the storage function provided by the Guest OS's own operating system. Due to the abnormal crash of the Guest OS kernel, the Guest OS no longer has the ability to store at this moment, and the Guest OS log system will not be available, so it cannot record the Guest. The scene at the time of the OS crash cannot accurately understand the specific cause of the exception
For example, when the car is running, the Guest OS used for the display of the LCD instrument is abnormal and causes a black screen to restart. It is impossible to know and obtain the abnormal scene through the existing means, and the reason for the restart cannot be clearly obtained, which brings great difficulty to the follow-up engineer's fault analysis.
It can be seen that if the Guest OS running on the Hypervisor does not have the black box function, it cannot effectively record the abnormal crash site information of each guest operating system, which is not conducive to analyzing and troubleshooting the cause of system exceptions

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
  • Black box implementation method and system based on Hypervisor
  • Black box implementation method and system based on Hypervisor
  • Black box implementation method and system based on Hypervisor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] like figure 1 As shown, in step 1, the Hypervisor creates a guest operating system (Guest OS) according to user configuration, and then pre-allocates a memory area for saving black box data for each Guest OS, and records the address information of the memory area;

[0041] Step 2, the Hypervisor pre-allocates a storage address space for storing the black box in a permanent storage device (such as eMMC, SD card, solid state drive, etc.), and follows the figure 2 The storage address space is laid out in the same way, and the entire black box storage address area is partitioned according to the number of Guest OSs, and each partition is divided into non-rolling area, rolling area and memory dump area according to the saved information. The non-rolling area records the most critical data of the Guest OS, which cannot be overwritten, and will not be recorded after it is full; the rolling area records in a circular manner, and when the data in the recording area is full, rol...

Embodiment 2

[0051] like Figure 4 As shown, a Hypervisor-based black box implementation system includes:

[0052] Memory area allocation device: used to pre-allocate a memory area for storing black box data for each Guest OS when the Hypervisor creates several Guest OSs according to user configuration, and record the address information of the memory area;

[0053] Storage address space allocation device: used for Hypervisor to pre-allocate a storage address space for storing black boxes on the permanent storage device;

[0054] Storage address space partitioning device: used to partition the storage address space of the entire black box according to the number of Guest OS, that is, one Guest OS corresponds to one storage address space, and each partition is divided into non-rolling according to different information stored area, rolling area, and memory dump area; among them, the non-rolling area records part of the data of the Guest OS and cannot be overwritten, and will not be recorde...

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 black box implementation method based on a Hypervisor. The method comprises the following steps: S1, a Hypervisor creates a plurality of Guest OS according to user configuration, then pre-allocates a memory area for storing black box data for each Guest OS, and records address information of the memory area; and S2, the Hypervisor pre-allocates a storage address space forstoring the black box on the permanent storage device, and the like. According to the method, for Guest OS running on a Hypervisor, after abnormal reset is generated, the recording and monitoring functions like a black box are achieved, and the method is very practical and convenient for troubleshooting reasons for abnormal generation of the Guest OS in a virtualization system, wider in coverageand higher in applicability.

Description

technical field [0001] The invention belongs to the technical field of computer operating systems, and in particular relates to a Hypervisor-based black box implementation method and system. Background technique [0002] Hypervisor is called a virtual machine monitor (Virtual Machine Monitor), which is an operating system that runs other operating systems. The hypervisor is an intermediate operating system running between the physical hardware and the operating system, which allows multiple operating systems and applications to share a set of basic physical hardware. The operating system running on the hypervisor is called the guest operating system (Guest OS) . [0003] Since a variety of Guest OSs can run on the Hypervisor, the Guest OS may adopt a multitasking and preemptible operating system like the Linux kernel. As for the Linux kernel code, the amount of code in version 4.20 has reached 25 million lines. The code is huge and cannot be simplified. Once an abnormal cr...

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): G06F11/14G06F11/30
CPCG06F11/1441G06F11/3037G06F11/3065Y02D10/00
Inventor 不公告发明人
Owner 中瓴智行(成都)科技有限公司