Method for realizing peripheral access control based on MMU (memory management unit) in ARM virtual machine

An access control and implementation method technology, applied in program control devices, software simulation/interpretation/simulation, instruments, etc., can solve problems such as large performance loss, access conflict, and difficulty in implementation, and achieve the effect of small performance loss

Inactive Publication Date: 2012-01-04
XI AN JIAOTONG UNIV
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] However, running multiple operating systems on the same hardware platform at the same time may cause access conflicts between multiple operating systems on the same peripheral. normal operation of
The existing public solutions to this problem are generally difficult to implement, and the overall performance loss caused by the implementation is also relatively large

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 for realizing peripheral access control based on MMU (memory management unit) in ARM virtual machine
  • Method for realizing peripheral access control based on MMU (memory management unit) in ARM virtual machine
  • Method for realizing peripheral access control based on MMU (memory management unit) in ARM virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The implementation method of the MMU-based peripheral access control in the ARM virtual machine of the present invention is described in detail below in conjunction with the accompanying drawings:

[0022] First of all, for the peripherals that may have access conflicts, change the segment page table entry mapping of the peripheral register address in the upper-layer operating system, and change the Domain bit in the corresponding page table entry to a wrong value, so that the upper-layer operating system can recognize these peripherals. When the register address is accessed, a Domain Fault will occur when the MMU translates the address, thus causing a data access exception to enter the data access exception handling of the system.

[0023] Secondly, the correct address mapping of the peripheral device is established in the address space of the underlying virtual machine, so that the underlying virtual machine can normally access the register address of the peripheral de...

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 provides a method for realizing peripheral access control based on MMU (memory management unit) in an ARM virtual machine. The method comprises the following steps of: firstly, for a peripheral device required to be monitored by the virtual machine, changing a segmental page table item mapping corresponding to the physical register address of the peripheral device in each upper operating system; changing the position Domain in a corresponding page table item to a wrong value and simultaneously establishing a correct address mapping of the peripheral device in the address space of a bottom virtual machine wherein the bottom virtual machine takes over the data exception processing of hardware to capture possible address access mistakes of the upper operating systems; if Domain Fault occurs during address translation of the MMU when the upper operating systems access the address of the peripheral device, entering data exception processing mode of a processor; judging whether the mode is of the Domain Fault type or not by reading a hardware register when the action is captured by the virtual machine; if not, returning to the address space of the operating systems; and if so, processing the current access data of the operating systems by the bottom virtual machine, and allowing the virtual machines to access the corresponding peripheral register according to the processed data. The method solves the problem that the conflict of access to the same one peripheral device occurs when multiple operating systems run at the same time.

Description

technical field [0001] The invention belongs to the field of embedded virtualization technology, and relates to an implementation method of MMU-based peripheral access control in an ARM virtual machine, which is suitable for managing and controlling access to peripherals by an operating system running on the upper layer of the underlying virtual machine, and can satisfy Multiple operating systems have different access requirements to peripherals under the same hardware platform. Background technique [0002] In recent years, the popularization of mobile phones and tablet computers has set off an upsurge in the development of embedded operating systems and embedded applications. Many excellent embedded operating systems and corresponding applications have emerged on the market, and ARM processors because of their high performance And low power consumption, has become the most popular embedded application processor. In order to avoid the transplantation of applications develo...

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/455G06F13/20
Inventor 梅魁志李博良李国辉张瑞智苏至钒张恩阳
Owner XI AN JIAOTONG 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