CN110489212A - A kind of method, apparatus and vehicle device of universal input/output port virtualization - Google Patents
A kind of method, apparatus and vehicle device of universal input/output port virtualization Download PDFInfo
- Publication number
- CN110489212A CN110489212A CN201910770092.4A CN201910770092A CN110489212A CN 110489212 A CN110489212 A CN 110489212A CN 201910770092 A CN201910770092 A CN 201910770092A CN 110489212 A CN110489212 A CN 110489212A
- Authority
- CN
- China
- Prior art keywords
- operating system
- gpio
- gpio mouthfuls
- mouthfuls
- rear end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45579—I/O management, e.g. providing access to device drivers or storage
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
- Bus Control (AREA)
Abstract
This application discloses the method, apparatus and vehicle device of a kind of universal input/output port virtualization.This method is applied to system on chip, and system on chip at least runs master operating system and from operating system;Master operating system directly controls universal input/output port GPIO mouthfuls of physics, uses virtual GPIO mouth from operating system by master operating system;Method includes the following steps: the rear end driving of master operating system receives the request using virtual GPIO mouth sent from the front-end driven of operating system side;Use the number that GPIO mouthfuls are carried in the request of virtual GPIO mouth;Corresponding GPIO mouthfuls of sysfs file is numbered in the rear end driving export of master operating system, to enable numbering corresponding GPIO mouthfuls;The rear end driving of master operating system receives corresponding GPIO mouthfuls of the direction of number sent from the front-end driven of operating system side, and direction is input or output.Using this method, master operating system can be made and from operating system while using GPIO mouthfuls, to meet the needs of practical application scene.
Description
Technical field
The present invention relates to technical field of vehicle control more particularly to a kind of method of universal input/output port virtualization,
Device and vehicle device.
Background technique
Open source projects ACRN is the virtualization scheme customized for embedded development, due to it have lightweight, in real time
Property and open source property the features such as, be gradually applied to industrial automation, IoT (Internet of Things, Internet of Things at present
Net) and the fields such as vehicle electronics intelligence cockpit system.
ACRN supports the several operation systems including linux system and android system, and also supports same
Multiple operating systems are run simultaneously on a SOC (System on Chip, system on chip), above-mentioned multiple operating systems are based on
Linux kernel (linux kernel).Specifically can while running a master operating system also operation it is one or more from
Operating system.Wherein, master operating system is SOS (Service OS, service operating system), and SOS is linux system;From operation
System is UOS (User OS, operating system of user), and UOS can be android system or linux system.
Currently, being applied to vehicle electronics intelligence cockpit system, control, periphery IC (Integrated in power supply
Circuit, integrated circuit) abnomal results state notifying, MCU (Microcontroller Unit, micro-control unit) open with SOC
The scene of many practical applications such as dynamic state notifying requires master operating system and from operating system while using GPIO
(General Purpose Input Output, universal input and output) mouth.And ACRN can not support master operating system at present
GPIO mouthfuls are used simultaneously with from operating system, GPIO mouthfuls can only be used in master operating system or from certain side of operating system, nothing
Method meets the needs of practical application scene.
Summary of the invention
In order to solve above-mentioned technical problem of the existing technology, this application provides a kind of universal input/output port is empty
The method, apparatus and vehicle device of quasi-ization can make master operating system and from operating system while use GPIO mouthfuls, actually be answered with meeting
With the demand of scene.
This application provides a kind of methods of universal input/output port virtualization, are applied to system on chip, the on piece
System at least runs the different operating system of following two: master operating system and from operating system;The master operating system is direct
Universal input/output port GPIO mouthfuls of physics are controlled, it is described to be used virtually from operating system by the master operating system
GPIO mouthfuls;
Method includes the following steps:
It is virtual that the rear end driving of the master operating system receives the use sent from the front-end driven of operating system side
GPIO mouth request;GPIO mouthfuls of number is carried in the request using virtual GPIO mouth;
Corresponding GPIO mouthfuls of the sysfs file of the rear end driving export number of the master operating system, to enable institute
It is GPIO mouthfuls corresponding to state number;
The rear end driving of the master operating system receives the number sent from the front-end driven of operating system side
Corresponding GPIO mouthfuls of direction, the direction are input or output.
Optionally, when corresponding GPIO mouthfuls of the direction of the number is input, further includes:
From the transmission of the front-end driven of operating system to the number described in the rear end driving reception of the master operating system
Corresponding GPIO mouthfuls of read operation request;
The rear end of the master operating system is driven through corresponding GPIO mouthfuls of the sysfs file of the number and reads the number
Corresponding GPIO mouthfuls of value;
The rear end driving of the master operating system returns to corresponding GPIO mouthfuls of the value of the number described from operation system
The front-end driven of system.
Optionally, when corresponding GPIO mouthful of the direction of the number is input and corresponding GPIO mouthfuls of the number defines
When for middle fracture, further includes:
The rear end driving of the master operating system receives the number pair sent from the front-end driven of operating system
The interrupt type for the GPIO mouth answered, the interrupt type are as follows: edging trigger or level triggers;The edging trigger includes single along touching
Hair and double edge triggerings.
Optionally, when corresponding GPIO mouthfuls of the interrupt type of the number is defined as edging trigger, further includes:
When the corresponding GPIO mouthfuls of corresponding physics GPIO of the number is known in the driving judgement of the rear end of the master operating system
Directly the interruption is injected to described in from the drive of the front end of operating system when mouthful being interrupted, and judge interrupt type for edging trigger
It is dynamic;
When corresponding GPIO mouthfuls of the interrupt type of the number is defined as level triggers, further includes:
When the corresponding GPIO mouthfuls of corresponding physics GPIO of the number is known in the driving judgement of the rear end of the master operating system
When mouthful being interrupted, and judge interrupt type for level triggers, it is described from operating system reading it is described number corresponding GPIO mouthfuls it is right
The value of GPIO mouthfuls of the physics answered, when meeting level triggered interrupts according to physics GPIO mouthfuls of the value is determining, the main operation system
System interrupts injection to the front-end driven from operating system for described.
Optionally, when corresponding GPIO mouthfuls of the direction of the number is output, further includes:
From the transmission of the front-end driven of operating system to the number described in the rear end driving reception of the master operating system
Corresponding GPIO mouthfuls of write operation requests;The request carries the corresponding GPIO mouthfuls of value for needing to be written of the number;
The rear end of the master operating system is driven through corresponding GPIO mouthfuls of the sysfs file of the number for the number
The corresponding GPIO mouthfuls value write-in number for needing to be written is GPIO mouthfuls corresponding.
Present invention also provides a kind of devices of universal input/output port virtualization, and described device includes: the first reception
Unit, enabling unit and the second receiving unit;
First receiving unit, it is virtual for receiving the use sent from the front-end driven of operating system side
GPIO mouthfuls of request;GPIO mouthfuls of number is carried in the request using virtual GPIO mouth;
The enabling unit, for exporting corresponding GPIO mouthfuls of the sysfs file of the number, to enable the number pair
The GPIO mouth answered;
Second receiving unit, it is corresponding for receiving the number sent from the front-end driven of operating system side
GPIO mouth direction, the direction be input or output.
Optionally, described device further include: third receiving unit, reading unit and return unit;
The third receiving unit, for receiving the corresponding to the number from the transmission of the front-end driven of operating system
GPIO mouth read operation request;
The reading unit, it is corresponding for reading the number by corresponding GPIO mouthfuls of the sysfs file of the number
GPIO mouthfuls of value;
The return unit, it is described from the front end of operating system for returning to corresponding GPIO mouthfuls of the value of the number
Driving.
Optionally, described device further include: the 4th receiving unit;
4th receiving unit, it is corresponding for receiving the number sent from the front-end driven of operating system
GPIO mouthfuls of interrupt type, the interrupt type are as follows: edging trigger or level triggers;The edging trigger include it is single along triggering and
Double edge triggerings.
Optionally, when corresponding GPIO mouthfuls of the interrupt type of the number is defined as edging trigger, described device is also wrapped
Include: first interrupts injection unit;
Described first interrupts injection unit, for knowing the number pair when the driving judgement of the rear end of the master operating system
Corresponding physics GPIO mouthfuls of the GPIO mouth answered is interrupted, and is directly injected the interruption when judging interrupt type for edging trigger
To the front-end driven from operating system;
When corresponding GPIO mouthfuls of the interrupt type of the number is defined as level triggers, described device further include: second
Interrupt injection unit;
Described second interrupts injection unit, for knowing the number pair when the driving judgement of the rear end of the master operating system
Corresponding physics GPIO mouthfuls of the GPIO mouth answered is interrupted, and when judging interrupt type for level triggers, described to read from operating system
Corresponding GPIO mouthfuls of corresponding physics GPIO mouthfuls of the value of the number is taken, level is met according to physics GPIO mouthfuls of value determination
When triggering is interrupted, injection is interrupted to the front-end driven from operating system by described.
Present invention also provides a kind of vehicle device, the vehicle device includes system on chip, and the system on chip includes any of the above
The device of universal input/output port virtualization described in.
Compared with prior art, the application has at least the following advantages:
This method can be applied to system on chip, which at least runs the different operating system of following two: main
Operating system and from operating system.Wherein, master operating system directly controls universal input/output port GPIO mouthfuls of physics, from behaviour
Make system and virtual GPIO mouth used by master operating system, specifically: the rear end driving of master operating system, which is received from operation, is
The request using virtual GPIO mouth that the front-end driven of side of uniting is sent, the number of GPIO mouthfuls of carrying, front end system in the request
The virtual of GPIO mouthfuls of hardware is realized in the GPIO mouth controller driving virtual as one, rear end driving;The rear end of master operating system
It is GPIO mouthfuls corresponding to enable the number that corresponding GPIO mouthfuls of sysfs file is numbered in driving export;The rear end of master operating system
Corresponding GPIO mouthfuls of the direction of number for receiving and sending from the front-end driven of operating system side is driven, direction is input or exports,
Even if can now be output and input by the GPIO cause for gossip from operating system.It, can using method provided by the embodiments of the present application
Make master operating system and from operating system and meanwhile use the same GPIO, to meet the needs of practical application scene.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the software architecture schematic diagram of system on chip provided by the present application;
Fig. 2 is a kind of flow chart of the method for universal input/output port virtualization that the embodiment of the present application one provides;
Fig. 3 is the flow chart of the method for the universal input/output port virtualization of another kind that the embodiment of the present application two provides;
Fig. 4 is a kind of schematic diagram of the device for universal input/output port virtualization that the embodiment of the present application three provides;
Fig. 5 is a kind of schematic diagram for vehicle device that the embodiment of the present application four provides.
Specific embodiment
ACRN can not support master operating system and from operating system while use GPIO mouthfuls at present, can only be in master operating system
Or GPIO is used from certain side of operating system, thus it is unable to satisfy the demand of practical application scene.It is applied to below with ACRN
It is illustrated for vehicle electronics intelligence cockpit system.
For the vehicle electronics intelligence cockpit system based on ACRN, instrument (IC) runs on SOS (Service OS, clothes
Business operating system), which is linux system.IVI (In-Vehicle Infotainment, on-vehicle information amusement system simultaneously
System) it runs on UOS (User OS, operating system of user), quantity can be one or more, which can be Android
System or linux system.
For actual vehicle electronics intelligence cockpit system, in the control of power supply, periphery IC, abnormal (such as USB interface is inserted
There is overcurrent when pulling out peripheral hardware) detection state notifying, MCU (Microcontroller Unit, micro-control unit) and SOC starting shape
Many scenes such as state notice require SOS and UOS and meanwhile use GPIO (General Purpose Input Output, it is general
Type input/output port).And ACRN can not support SOS and UOS while use the same GPIO at present, it can only be the one of SOS or UOS
Side uses GPIO, and then function when influence practical application is realized.It is understood that the GPIO of actual hardware includes many
GPIO mouthfuls, the GPIO mouth in the embodiment of the present application refers to one GPIO mouthfuls in GPIO hardware.When UOS uses multiple GPIO mouthfuls,
Request uses multiple GPIO mouthfuls.
In order to solve the above-mentioned technical problem of the prior art, this application provides a kind of universal input/output ports to virtualize
Method, master operating system can be made to directly control universal input/output port GPIO mouthfuls of physics, pass through institute from operating system
Master operating system is stated using virtual GPIO mouth, and then master operating system can be made and from operating system while the same object of use
The GPIO of reason meets the demand of practical application scene.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment one:
The embodiment of the present application provides a kind of method of universal input/output port virtualization, is applied to system on chip, should
System on chip at least runs the different operating system of following two: master operating system and from operating system.Wherein, master operating system
The GPIO mouth for directly controlling physics uses virtual GPIO mouth from operating system by master operating system.Above-mentioned master operating system
With from operating system be based on Linux kernel, can have from operating system it is multiple, specific quantity depend on application scenarios and
Hardware capabilities, the application are not especially limited this.
The software architecture of system on chip is illustrated in conjunction with attached drawing first below.
Referring to Fig. 1, which is the software architecture schematic diagram for the system on chip that the embodiment of the present application one provides.
Wherein, master operating system can be SOS100, be specifically as follows linux system;Can be from operating system
UOS200。
When system on chip only runs a UOS, which can be android system or linux system.Work as on piece
When system runs multiple UOS, multiple UOS can be android system, or be linux system, or part is Android
Components of system as directed is linux system.
Wherein, linux system can use all I/O pins of the pinctrl management subsystem including GPIO, and
There is corresponding configuration mode to equipment periphery pin.
Front-end driven 201 operates in the Linux kernel of UOS200, the GPIO controller driving virtual as one.
Rear end driving 101 operates in the ACRN-DM of SOS100, realizes the virtual of GPIO hardware, and device type can be with
For PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) equipment.
Rear end driving 101 and front-end driven 201 between by MMIO (Memory-mapped I/O, memory-mapped I/O) into
Row communication.
Referring to fig. 2, which is a kind of method for universal input/output port virtualization that the embodiment of the present application one provides
Flow chart.
Method includes the following steps:
Step 301: it is virtual that the rear end driving of master operating system receives the use sent from the front-end driven of operating system side
GPIO mouth request;Use the number that GPIO mouthfuls are carried in the request of virtual GPIO mouth.
It is identical with the number of the GPIO mouth in the side UOS200 in the side SOS100 when practical application, GPIO mouthfuls of all physics
It is visible to UOS200.
When UOS200 is needed to GPIO mouthfuls of operations, sent first by front-end driven 201 using virtual GPIO mouth
Request, the request are received by MMIO by the rear end driving 101 of SOS100.
Use the number that GPIO mouthfuls are carried in the request of virtual GPIO mouth.It should be noted that SOS100 and UOS200
All GPIO mouths can be accessed, but same GPIO mouthfuls can only be monopolized by the side SOS100 or UOS200, therefore UOS200
The GPIO mouth of application operation cannot be the GPIO mouth used by SOS100.
Step 302: corresponding GPIO mouthfuls of sysfs file is numbered in the rear end driving export of master operating system, to enable volume
It is number GPIO mouthfuls corresponding.
The sysfs is a file system memory-based, its effect is to mention kernel information in a manner of file
User program is supplied to use.Sysfs has two group interfaces, and a group interface is directed to kernel spacing, is used for device map to file system
In system, another group interface is directed to user's space, for reading or operating these equipment.The present embodiment passes through 102 energy of sysfs file
Corresponding GPIO mouthfuls enough to be will be numbered mapped in file system, and can be corresponding to enable the number by sysfs file 102
GPIO mouthfuls.
Step 303: it is corresponding that the rear end driving of master operating system receives the number sent from the front-end driven of operating system side
GPIO mouth direction, direction be input or output.
The virtualization of GPIO mouthfuls of basic functions includes the setting in GPIO mouthfuls of directions, and wherein GPIO mouthfuls of direction can be defined as
Input, can also be defined as exporting, i.e. IN or OUT.The front-end driven 201 of UOS200 sends corresponding GPIO mouthfuls of the side of the number
To by MMIO by 101 reception of rear end driving of SOS100.
Rear end driving 101 exports the corresponding GPIO mouthfuls of corresponding sysfs file of the number, so that the GPIO mouthfuls is enabled,
Realize the setting to GPIO mouthfuls of direction.Specifically, rear end driving 101 can be literary by the sysfs by physics GPIO driving 103
Part is converted into actual hardware operation, to enable the GPIO mouthfuls.
Further, when numbering corresponding GPIO mouthfuls of direction is input, this method may also comprise the following steps::
Step 303a: it is corresponding that the rear end driving of master operating system receives the number sent from the front-end driven of operating system
GPIO mouthfuls of read operation request.
Step 303b: the rear end of master operating system be driven through number corresponding GPIO mouthfuls sysfs file read it is corresponding
GPIO mouthfuls of value.
The GPIO mouthfuls of value can be low and high level, and the corresponding value of usual high level is 1, and the corresponding value of low level is 0.
Step 303c: the rear end driving of master operating system will be numbered corresponding GPIO mouthfuls of value and be returned to from operating system
Front-end driven.
Described above is the case where GPIO mouthfuls of direction is when inputting, and is described below when corresponding GPIO mouthfuls of the side of number
When to export, this method may also comprise the following steps::
Step 303d: what the rear end driving reception of master operating system was sent from the front-end driven of operating system corresponds to number
GPIO mouth write operation requests;Request carries the corresponding GPIO mouthfuls of value for needing to be written of number.
Step 303e: the rear end of master operating system be driven through number corresponding GPIO mouthfuls sysfs file will number pair
The value write-in that the GPIO mouth answered needs to be written is GPIO mouthfuls corresponding.
The method of universal input/output port virtualization provided by the embodiments of the present application is applied to system on chip, system on chip
The master operating system of operation directly controls universal input/output port GPIO mouthfuls of physics, system on chip operation at least one from
Operating system uses virtual GPIO mouth from operating system by master operating system.Using method provided by the embodiments of the present application,
Can make master operating system and from operating system and meanwhile use the same hardware GPIO, to meet the needs of practical application scene.
Further, since GPIO mouthfuls of virtualization can be used as using GPIO mouthfuls of physics from operating system, for
Certain to need the program using GPIO mouthfuls of physics, then these programs are not required to change and can be grafted directly to from operating system, also
It can be reduced the development cycle of program.
Above embodiments, which illustrate to realize from operating system by master operating system, to be set GPIO mouthful of direction and right
Working principle when GPIO mouthfuls of value is written and read illustrates to realize from operating system by master operating system with reference to the accompanying drawing
GPIO mouthfuls interrupt the working principle virtualized.
Embodiment two:
Referring to Fig. 3, which is the method for the universal input/output port virtualization of another kind that the embodiment of the present application two provides
Flow chart.
Method shown in the figure realizes the virtualization of GPIO interruption, and UOS is i.e. from operating system, SOS, that is, main operation system in figure
System.
Interrupt type may include: edging trigger (edge triggered) or level triggers (level triggered).
Wherein, edging trigger includes single along triggering and double along triggering.It is single to can specifically include rising edge triggering and failing edge touching along triggering
Hair.
When interrupt type is that rising edge triggers, the value that GPIO mouthfuls of physics becomes 1 from 0;
When interrupt type is that failing edge triggers, the value that GPIO mouthfuls of physics becomes 0 from 1.
Since level triggers can not be directly realized by, level triggers can be by edging trigger simulated implementation, specifically can be with
Simulated implementation is triggered by a rising edge triggering and a failing edge, such as high level triggering can be converted to and first occur on one
It rises along triggering, then a failing edge triggering occurs, GPIO mouthfuls of value becomes 1 from 0 at this time, then becomes 0 from 1.Low level triggering can
The triggering of failing edge first occurs to be converted to, then a rising edge triggering occurs, GPIO mouthfuls of value becomes 0 from 1 at this time, then by
0 becomes 1.
With continued reference to Fig. 1, the simulation of all interrupt types is all realized in the driving of the rear end of master operating system SOS, due to
GPIO subsystem (including gpiolib subsystem and interrupting subsystem) only has edge by the interrupt type that sysfs interface provides
Type, no level triggers type are triggered, therefore the interruption of level triggers type needs to be converted into edging trigger type, especially by
Double edge triggering simulated implementations.When interrupting is edging trigger type, the interrupt type setting of SOS is identical with UOS.When SOS is received
It does not make a decision, directly injects the interruption in UOS, therefore be able to ascend UOS to edging trigger when the down trigger of physics GPIO
The response speed of the interruption of type.The present embodiment the method is in application, all GPIO mouthfuls are shared an interrupt number, in order to know
Injection Zhong Duan and not be interrupted.
This method specifically includes the following steps:
The front-end driven of step 401:UOS drives the request sent using virtual GPIO mouth to the rear end of SOS.
This uses GPIO mouthfuls of corresponding numbers of carrying in the request of virtual GPIO mouth.
Sysfs file is written in GPIO mouthfuls of corresponding numbers by the rear end driving of step 402:SOS.
It is input that corresponding GPIO mouthfuls of direction is numbered in the front-end driven setting of step 403:UOS.
The rear end of step 404:SOS is driven through the setting of sysfs file and numbers corresponding GPIO mouthfuls of direction as input.It needs
It is noted that direction needs to be set as inputting, i.e. IN in GPIO mouthfuls of conducts when fracture.
The front-end driven of step 405:UOS is enabled to interrupt.
The front-end driven of UOS is defined as middle fracture for corresponding GPIO mouthfuls of the number.
The rear end of step 406:SOS, which drives, increases to epoll queue for the GPIO mouthfuls of sysfs file.
The rear end driving of SOS intercepts and captures the front-end driven of UOS for the corresponding GPIO mouthfuls of operation for being defined as middle fracture of the number,
GPIO mouthfuls of the physics of sysfs file is increased to epoll monitoring queue by rear end driving.
The epoll improved poll that is Linux kernel for processing high-volume filec descriptor, can significantly improve journey
System CPU utilization rate in the case that sequence is only a small amount of active in largely concurrently connecting, can be when the event of acquisition, nothing
The descriptor set being entirely listened must be traversed, as long as retouching for ready queue is added by the asynchronous wake-up of kernel I/O event in traversal
State Fu Jihe.Epoll additionally provides edging trigger, so that user's space is possible to other than the horizontal triggering for providing I/O event
I/O state is cached, the calling of epoll_wait and epoll_pwait is reduced, improves application program efficiency.
Specifically, rear end driving increases to the value property file in GPIO mouthfuls of the physics corresponding sysfs files
Epoll monitors queue, which includes corresponding physics GPIO mouthfuls of value.
Corresponding GPIO mouthfuls of the interrupt type of the number is arranged in the front-end driven of step 407:UOS.The interrupt type is side
Along triggering or level triggers.
The rear end driving of step 408:SOS receives corresponding GPIO mouthfuls of the interruption class of number that the front-end driven of UOS is sent
Directly the interruption is arranged to SOS if interrupt type is edging trigger type for type.If interrupt type is level triggers
Type is arranged again after being then converted to double types along triggering to SOS.
UOS sets the GPIO mouthfuls of interrupt type, which is driven by the rear end of SOS and intercept and capture, if interrupt type is side
Along one of triggering type, which is directly passed through sysfs file configuration to GPIO mouthfuls of physics by rear end driving.If
The interruption is level triggers type, rear end driving the level triggers type is converted to it is double along triggering types, i.e., with rising edge and
Failing edge simulates to form the level triggers type, then by this pair edge triggering type set to GPIO mouthfuls of physics.
Step 409: being recycled by epoll and determine interrupt type.
The rear end driving of SOS monitors the value property file in GPIO mouthfuls of sysfs file using epoll mode, in turn
Monitor whether the GPIO mouthfuls have interruption.Such as when GPIO mouthfuls of the physics for including in value property file of value becomes 1 from 0
When, the interruption of edging trigger type has occurred, specially rising edge triggers.
When having interruption to occur for GPIO mouthfuls of physics, the rear end driving of SOS makes epoll wait function unblocking, and judgement should
The interrupt type that GPIO mouthfuls of physics.
When the rear end driving judgement that corresponding GPIO mouthfuls of the interrupt type of the number is defined as edging trigger and SOS knows this
When numbering corresponding physics GPIO mouthfuls and being interrupted, judge that interrupt type then directly injects interrupts into the front end of UOS for edging trigger
Driving.
When numbering corresponding GPIO mouthfuls of interrupt type and being defined as level triggers and volume is known in the rear end driving judgement of SOS
Numbers corresponding GPIO mouthfuls corresponding physics GPIO mouthfuls when being interrupted, when SOS judges interrupt type for level triggers, UOS, which is read, to be compiled
Number corresponding GPIO mouthfuls of corresponding physics GPIO mouthfuls of value determine according to GPIO mouthfuls of physics of values when meeting level triggered interrupts,
Inject interrupts into the front-end driven of UOS.Specifically, SOS judges whether to meet level triggered interrupts by the value of GPIO.
Step 410: triggering the interrupt service routine of UOS.
After SOS is injected to the front-end driven of UOS to interrupt, the interrupt service routine of UOS is triggered.In addition, SOS also will record
The GPIO mouth specifically interrupted, so as to UOS reading.
Step 411:UOS reads the value of all GPIO interrupt registers.
One interrupt register of each GPIO mouthfuls of correspondence, UOS is by reading the value of all GPIO interrupt registers with determination
The GPIO mouth interrupted.
Step 412:UOS returns to the value of interrupt register to SOS.
Step 413:UOS triggers GPIO mouthfuls of interrupt functions.
After GPIO mouthfuls interrupt, the virtual GPIO mouthfuls of corresponding interrupt registers of UOS are configured by SOS.
Using the method for universal input/output port virtualization provided by the embodiments of the present application, make to realize from operating system
The virtualization of GPIO basic function specifically includes the setting and reading of GPIO mouthfuls of direction, GPIO mouthfuls of value and interrupt type.
Wherein, when the virtualization for function of breaking in the implementation, it is the GPIO mouth of edging trigger for interrupt type, it is directly set and interrupts class
Type is edging trigger type;It is the GPIO mouth of level triggers for interrupt type, sets double along triggering class for its interrupt type
Type.Each GPIO mouthfuls has corresponding sysfs file, and master operating system can determine by GPIO mouthfuls of corresponding sysfs files
The GPIO mouth interrupted, and then according to the value of GPIO mouthfuls of value property file acquisition in sysfs file, when the GPIO mouthfuls
Interrupt type be edging trigger type when, directly inject interrupts into the delay that interruption is thereby reduced from operating system;When this
When GPIO mouthfuls of interrupt type is level triggers type, current GPIO mouthfuls of value is read to judge whether to meet level triggers item
Part is injected interrupts into from operating system when a triggering condition is met, and then is realized by double break simulations along triggering type
The interruptions of level triggers types.
Embodiment three:
Method based on the universal input/output port virtualization that above-mentioned implementation provides, the embodiment of the present application also provides one
The device of kind universal input/output port virtualization, the device can integrate in system on chip, the system on chip at least run with
Under two different operating systems: master operating system and from operating system.Wherein, it master operating system and is based on from operating system
Linux kernel, can have from operating system it is multiple, specific quantity depend on application scenarios and hardware capabilities, the application couple
This is not especially limited.It illustrates with reference to the accompanying drawing.
Referring to fig. 4, which is a kind of device for universal input/output port virtualization that the embodiment of the present application three provides
Schematic diagram.
The device includes: the first receiving unit 501, enabling unit 502 and the second receiving unit 503.
First receiving unit 501, for receiving from the transmission of the front-end driven of operating system side using virtual GPIO mouth
Request.
This uses the number that GPIO mouthfuls are carried in the request of virtual GPIO mouth.
Master operating system and all GPIO mouths can be accessed from operating system, but same GPIO mouthfuls can only be by main behaviour
Make system or exclusive from operating system side, thus from the GPIO mouth that operating system application operates cannot be made by master operating system
GPIO mouthfuls.
Enabling unit 502, it is corresponding to enable numbering for exporting corresponding GPIO mouthfuls of the sysfs file of the number
GPIO mouthfuls.
Second receiving unit 503, it is GPIO mouthfuls corresponding for receiving the number sent from the front-end driven of operating system side
Direction, the direction be input or output.
The virtualization of GPIO mouthfuls of basic functions includes the setting in GPIO mouthfuls of directions, and wherein GPIO mouthfuls of direction can be defined as
Input, can also be defined as exporting, i.e. IN or OUT.
Further, when numbering corresponding GPIO mouthfuls of direction is input, the device further include: third receiving unit
504, reading unit 505 and return unit 506.
Third receiving unit 504, for receiving the GPIO corresponding to the number sent from the front-end driven of operating system
The read operation request of mouth.
Reading unit 505, for reading to number corresponding GPIO mouthfuls by numbering corresponding GPIO mouthfuls of sysfs file
Value.
The GPIO mouthfuls of value can be low and high level, and the corresponding value of usual high level is 1, and the corresponding value of low level is 0.
Return unit 506 returns to front-end driven from operating system for will number corresponding GPIO mouthfuls of value.
When numbering corresponding GPIO mouthfuls of direction is output, which can also include: the 4th receiving unit 507 and write
Enter unit 508.
4th receiving unit 507, for receiving the GPIO mouthfuls corresponding to number sent from the front-end driven of operating system
Write operation requests.
The request carries the corresponding GPIO mouthfuls of value for needing to be written of number.
Writing unit 508, for corresponding GPIO mouthfuls of needs will to be numbered by numbering corresponding GPIO mouthfuls of sysfs file
It is GPIO mouthfuls corresponding that the number is written in the value of write-in.
Further, in order to realize the virtualizations of GPIO mouthfuls of interrupt functions, the device further include: the 4th receiving unit 509.
4th receiving unit 509, it is GPIO mouthful corresponding for receiving the number sent from the front-end driven of operating system
Interrupt type.
The interrupt type are as follows: edging trigger or level triggers.Wherein, edging trigger includes single along triggering and double along triggering.
It is single to can specifically include rising edge triggering and failing edge triggering along triggering.
When interrupt type is that rising edge triggers, the value that GPIO mouthfuls of physics becomes 1 from 0;
When interrupt type is that failing edge triggers, the value that GPIO mouthfuls of physics becomes 0 from 1.
Level triggers can be by edging trigger simulated implementation, specifically can be by a rising edge triggering and a failing edge touching
Send out simulated implementation.
When corresponding GPIO mouthfuls of the interrupt type of number is defined as edging trigger, which can also include: in first
Disconnected injection unit 510.
First interrupts injection unit 510, for knowing the corresponding GPIO of number when the driving judgement of the rear end of master operating system
Mouthfuls corresponding physics GPIO mouthfuls are interrupted, and when judging interrupt type for edging trigger, inject interrupts into from operating system
Front-end driven.
When corresponding GPIO mouthfuls of the interrupt type of number is defined as level triggers, which can also include: in second
Disconnected injection unit 511.
Second interrupts injection unit 511, for knowing the corresponding GPIO of number when the driving judgement of the rear end of master operating system
Mouthfuls corresponding physics GPIO mouthful are interrupted, and when judge interrupt type for level triggers, number from operating system reading corresponding
GPIO mouthfuls of corresponding physics GPIO mouthfuls of values are infused when meeting level triggered interrupts according to GPIO mouthfuls of physics of values are determining by interrupting
Enter to the front-end driven from operating system.
The concrete operating principle of each unit about the device may refer to the related description of embodiment one and embodiment two,
Details are not described herein by the application.
The embodiment of the present application, which provides device, can be applied to system on chip, and the master operating system of system on chip operation is directly controlled
Universal input/output port GPIO mouthfuls of physics processed, at least one of system on chip operation pass through master operating system from operating system
Use virtual GPIO mouth.Using device provided by the embodiments of the present application, can make master operating system and from operating system simultaneously
Using GPIO, to meet the needs of practical application scene.
Further, since from operating system GPIO mouthfuls can be virtualized to using GPIO mouthfuls of physics equally to use, for
Certain to need the program using GPIO mouthfuls of physics, then these programs are not required to change and can be grafted directly to from operating system, also
It can be reduced the development cycle of program.
In addition, being the GPIO mouth of edging trigger for interrupt type, being directly arranged when the virtualization for function of breaking in the implementation
Its interrupt type is edging trigger type;It is the GPIO mouth of level triggers for interrupt type, sets double for its interrupt type
Along triggering type.Each GPIO mouthfuls has corresponding sysfs file, and reading unit passes through GPIO mouthfuls of corresponding sysfs file energy
It enough determines the GPIO mouth interrupted, and then obtains GPIO mouthfuls of value according to the value property file in sysfs file, according to
The value of the GPIO mouth of acquisition determines the GPIO mouthfuls of interrupt type.When the GPIO mouthfuls of interrupt type is edging trigger type,
First interruption injection unit directly injects interrupts into the delay that interruption is thereby reduced from operating system;When in the GPIO mouthfuls
When disconnected type is level triggers type, reading unit reads current GPIO mouthfuls of value to judge whether to meet level triggers condition,
The second interruption injection unit is injected interrupts into from operating system when a triggering condition is met, and then passes through double edge triggering types
Break simulation realizes the interruption of level triggers type.
Example IV:
Method and device based on the universal input/output port virtualization that above-mentioned implementation provides, the embodiment of the present application also mention
A kind of vehicle device has been supplied, has been illustrated with reference to the accompanying drawing.
Referring to Fig. 5, which is a kind of schematic diagram for vehicle device that the embodiment of the present application four provides.
The vehicle device 600 includes system on chip 601, and system on chip 601 includes the device of universal input/output port virtualization
602。
System on chip 601 at least runs the different operating system of following two: master operating system and from operating system.Its
In, master operating system directly controls universal input/output port GPIO mouthfuls of physics, makes from operating system by master operating system
With virtual GPIO mouth.
Above-mentioned master operating system and from operating system be based on Linux kernel, can have from operating system it is multiple, specifically
Quantity depend on application scenarios and hardware capabilities, the application is not especially limited this.The software architecture of system on chip is specific
It may refer to Fig. 1, the present embodiment repeats no more again.
The explanation of device 602 about the virtualization of universal input/output port may refer to embodiment three, and the present embodiment exists
This is repeated no more.
The embodiment of the present application provides vehicle device and includes the device of universal input/output port virtualization, therefore can make main behaviour
Make system and from operating system while using GPIO, to meet the needs of practical application scene.
Further, since from operating system GPIO mouthfuls can be virtualized to using GPIO mouthfuls of physics equally to use, for
Certain to need the program using GPIO mouthfuls of physics, then these programs are not required to change and can be grafted directly to from operating system, also
It can be reduced the development cycle of program.
In addition, being the GPIO mouth of edging trigger for interrupt type, being directly arranged when the virtualization for function of breaking in the implementation
Its interrupt type is edging trigger type;It is the GPIO mouth of level triggers for interrupt type, sets double for its interrupt type
Along triggering type.Each GPIO mouthfuls has corresponding sysfs file, and master operating system passes through GPIO mouthfuls of corresponding sysfs files
It can determine the GPIO mouth interrupted, and then obtain GPIO mouthfuls of value according to the value property file in sysfs file, when
When the GPIO mouthfuls of interrupt type is edging trigger type, directly injects interrupts into from operating system, thereby reduce interruption
Delay;When the GPIO mouthfuls of interrupt type is level triggers type, current GPIO mouthfuls of value is read to judge whether to meet electricity
Flat trigger condition, injects interrupts into from operating system when a triggering condition is met, and then passes through double interruptions along triggering type
The simulated implementation interruption of level triggers types.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two
More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner
It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word
Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to
Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c
(a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also
To be multiple.
The above described is only a preferred embodiment of the present invention, being not intended to limit the present invention in any form.Though
So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention.It is any to be familiar with those skilled in the art
Member, without departing from the scope of the technical proposal of the invention, all using the methods and technical content of the disclosure above to the present invention
Technical solution makes many possible changes and modifications or equivalent example modified to equivalent change.Therefore, it is all without departing from
The content of technical solution of the present invention, according to the technical essence of the invention any simple modification made to the above embodiment, equivalent
Variation and modification, all of which are still within the scope of protection of the technical scheme of the invention.
Claims (10)
1. a kind of method of universal input/output port virtualization, which is characterized in that be applied to system on chip, the system on chip
At least different operating system of operation following two: master operating system and from operating system;The master operating system directly controls
Universal input/output port GPIO mouthfuls of physics, it is described that virtual GPIO is used by the master operating system from operating system
Mouthful;
Method includes the following steps:
It is virtual that the rear end driving of the master operating system receives the use sent from the front-end driven of operating system side
GPIO mouthfuls of request;GPIO mouthfuls of number is carried in the request using virtual GPIO mouth;
Corresponding GPIO mouthfuls of the sysfs file of the rear end driving export number of the master operating system, to enable the volume
It is number GPIO mouthfuls corresponding;
It is corresponding that the rear end driving of the master operating system receives the number sent from the front-end driven of operating system side
GPIO mouth direction, the direction be input or output.
2. the method according to claim 1, wherein when corresponding GPIO mouthfuls of the direction of the number is input
When, further includes:
The rear end driving of the master operating system receives the corresponding to the number from the transmission of the front-end driven of operating system
GPIO mouth read operation request;
The rear end of the master operating system is driven through corresponding GPIO mouthfuls of the sysfs file of the number and reads the number correspondence
GPIO mouth value;
The rear end driving of the master operating system returns to corresponding GPIO mouthfuls of the value of the number described from operating system
Front-end driven.
3. according to the method described in claim 2, it is characterized in that, when corresponding GPIO mouthfuls of the direction of the number is input
And the number is GPIO mouthfuls when being defined as middle fracture corresponding, further includes:
It is corresponding that the rear end driving of the master operating system receives the number sent from the front-end driven of operating system
GPIO mouthfuls of interrupt type, the interrupt type are as follows: edging trigger or level triggers;The edging trigger include it is single along triggering and
Double edge triggerings.
4. according to the method described in claim 3, it is characterized in that, when corresponding GPIO mouthfuls of the interrupt type definition of the number
When for edging trigger, further includes:
When corresponding GPIO mouthfuls corresponding physics GPIO mouthfuls quilts of the number are known in the driving judgement of the rear end of the master operating system
Injection directly is interrupted to the front-end driven from operating system by described when interrupting, and judging interrupt type for edging trigger;
When corresponding GPIO mouthfuls of the interrupt type of the number is defined as level triggers, further includes:
When corresponding GPIO mouthfuls corresponding physics GPIO mouthfuls quilts of the number are known in the driving judgement of the rear end of the master operating system
Interrupt, and when judge interrupt type for level triggers, it is described from operating system reading it is described number corresponding GPIO mouthfuls it is corresponding
The value that GPIO mouthfuls of physics determines that the master operating system will when meeting level triggered interrupts according to physics GPIO mouthfuls of the value
It is described to interrupt injection to the front-end driven from operating system.
5. the method according to claim 1, wherein when corresponding GPIO mouthfuls of the direction of the number is output
When, further includes:
The rear end driving of the master operating system receives the corresponding to the number from the transmission of the front-end driven of operating system
GPIO mouth write operation requests;The request carries the corresponding GPIO mouthfuls of value for needing to be written of the number;
The rear end of the master operating system is driven through corresponding GPIO mouthfuls of the sysfs file of the number and corresponds to the number
GPIO mouth need be written value write-in it is described number it is corresponding GPIO mouthfuls.
6. a kind of device of universal input/output port virtualization, which is characterized in that described device include: the first receiving unit,
Enabling unit and the second receiving unit;
First receiving unit, for receive it is described sent from the front-end driven of operating system side using virtual GPIO mouth
Request;GPIO mouthfuls of number is carried in the request using virtual GPIO mouth;
The enabling unit, it is corresponding to enable the number for exporting corresponding GPIO mouthfuls of the sysfs file of the number
GPIO mouthfuls;
Second receiving unit, it is corresponding for receiving the number sent from the front-end driven of operating system side
GPIO mouthfuls of direction, the direction are input or output.
7. device according to claim 6, which is characterized in that described device further include: third receiving unit, reading unit
And return unit;
The third receiving unit, it is described from the corresponding to the number of the front-end driven of operating system transmission for receiving
GPIO mouthfuls of read operation request;
The reading unit, for reading the corresponding GPIO of the number by corresponding GPIO mouthfuls of the sysfs file of the number
The value of mouth;
The return unit, it is described from the drive of the front end of operating system for returning to corresponding GPIO mouthfuls of the value of the number
It is dynamic.
8. device according to claim 7, which is characterized in that described device further include: the 4th receiving unit;
4th receiving unit, for receiving the corresponding GPIO of the number sent from the front-end driven of operating system
The interrupt type of mouth, the interrupt type are as follows: edging trigger or level triggers;The edging trigger includes single along triggering and double edges
Triggering.
9. device according to claim 8, which is characterized in that when corresponding GPIO mouthfuls of the interrupt type definition of the number
When for edging trigger, described device further include: first interrupts injection unit;
Described first interrupts injection unit, for knowing that the number is corresponding when the driving judgement of the rear end of the master operating system
GPIO mouthfuls corresponding physics GPIO mouthfuls are interrupted, and directly inject the interruption to institute when judging interrupt type for edging trigger
State the front-end driven from operating system;
When corresponding GPIO mouthfuls of the interrupt type of the number is defined as level triggers, described device further include: second interrupts
Injection unit;
Described second interrupts injection unit, for knowing that the number is corresponding when the driving judgement of the rear end of the master operating system
GPIO mouthfuls corresponding physics GPIO mouthfuls are interrupted, and when judging interrupt type for level triggers, described to read institute from operating system
Corresponding GPIO mouthfuls of corresponding physics GPIO mouthfuls of the value of number is stated, level triggers are met according to physics GPIO mouthfuls of value determination
When interruption, injection is interrupted to the front-end driven from operating system by described.
10. a kind of vehicle device, which is characterized in that the vehicle device includes system on chip, and the system on chip includes that claim 6-9 appoints
The device of universal input/output port virtualization described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910770092.4A CN110489212B (en) | 2019-08-20 | 2019-08-20 | Universal input/output port virtualization method and device and vehicle machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910770092.4A CN110489212B (en) | 2019-08-20 | 2019-08-20 | Universal input/output port virtualization method and device and vehicle machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489212A true CN110489212A (en) | 2019-11-22 |
CN110489212B CN110489212B (en) | 2022-08-02 |
Family
ID=68552338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910770092.4A Active CN110489212B (en) | 2019-08-20 | 2019-08-20 | Universal input/output port virtualization method and device and vehicle machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489212B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328314A (en) * | 2021-12-31 | 2022-04-12 | 华勤通讯香港有限公司 | Address automatic acquisition method, device, terminal equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080082729A1 (en) * | 2006-10-02 | 2008-04-03 | Samsung Electronics Co. Ltd. | Device driver including a flash memory file system and method thereof and a flash memory device and method thereof |
CN105677383A (en) * | 2015-12-28 | 2016-06-15 | 北京华大智宝电子***有限公司 | Method for updating data of smart card |
CN106062714A (en) * | 2014-03-27 | 2016-10-26 | 英特尔公司 | Virtual general-purpose i/o controller |
CN106796530A (en) * | 2016-12-22 | 2017-05-31 | 深圳前海达闼云端智能科技有限公司 | A kind of virtual method, device and electronic equipment, computer program product |
CN108027791A (en) * | 2015-09-10 | 2018-05-11 | 高通股份有限公司 | Input/output signal bridge joint and virtualization in multinode network |
WO2018208915A1 (en) * | 2017-05-10 | 2018-11-15 | Qualcomm Incorporated | Hardware event priority sensitive programmable transmit wait-window for virtual gpio finite state machine |
US20190050350A1 (en) * | 2018-10-16 | 2019-02-14 | Intel Corporation | USB Method and Apparatus in a Virtualization Environment with Multi-VM |
US20190129881A1 (en) * | 2017-11-01 | 2019-05-02 | Qualcomm Incorporated | Heterogeneous virtual general-purpose input/output |
-
2019
- 2019-08-20 CN CN201910770092.4A patent/CN110489212B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080082729A1 (en) * | 2006-10-02 | 2008-04-03 | Samsung Electronics Co. Ltd. | Device driver including a flash memory file system and method thereof and a flash memory device and method thereof |
CN106062714A (en) * | 2014-03-27 | 2016-10-26 | 英特尔公司 | Virtual general-purpose i/o controller |
EP3123322A1 (en) * | 2014-03-27 | 2017-02-01 | Intel Corporation | Virtual general-purpose i/o controller |
CN108027791A (en) * | 2015-09-10 | 2018-05-11 | 高通股份有限公司 | Input/output signal bridge joint and virtualization in multinode network |
CN105677383A (en) * | 2015-12-28 | 2016-06-15 | 北京华大智宝电子***有限公司 | Method for updating data of smart card |
CN106796530A (en) * | 2016-12-22 | 2017-05-31 | 深圳前海达闼云端智能科技有限公司 | A kind of virtual method, device and electronic equipment, computer program product |
WO2018208915A1 (en) * | 2017-05-10 | 2018-11-15 | Qualcomm Incorporated | Hardware event priority sensitive programmable transmit wait-window for virtual gpio finite state machine |
US20190129881A1 (en) * | 2017-11-01 | 2019-05-02 | Qualcomm Incorporated | Heterogeneous virtual general-purpose input/output |
US20190050350A1 (en) * | 2018-10-16 | 2019-02-14 | Intel Corporation | USB Method and Apparatus in a Virtualization Environment with Multi-VM |
Non-Patent Citations (3)
Title |
---|
ZHUOQUN CHENG ET.AL: ""Building Real-Time Embedded Applications on QduinoMC: A Web-Connected 3D Printer Case Study"", 《2017 IEEE REAL-TIME AND EMBEDDED TECHNOLOGY AND APPLICATIONS SYMPOSIUM (RTAS)》 * |
刘同法等编著: "《最小***应用与C程序编写》", 30 April 2014 * |
周立功主编: "《嵌入式Linux开发教程 上》", 31 March 2016 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328314A (en) * | 2021-12-31 | 2022-04-12 | 华勤通讯香港有限公司 | Address automatic acquisition method, device, terminal equipment and storage medium |
CN114328314B (en) * | 2021-12-31 | 2024-05-28 | 华勤通讯香港有限公司 | Automatic address acquisition method and device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110489212B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10579305B2 (en) | Method and apparatus for processing read/write request in physical machine | |
CN102207886B (en) | Virtual machine high-speed simulation is assisted | |
US10572623B2 (en) | Back-pressure in virtual machine interface | |
CN106030548B (en) | Multinode maincenter for trust computing | |
WO2022213832A1 (en) | Computer device, virtualization acceleration device, remote control method and storage medium | |
EP3161628A1 (en) | Intelligent gpu scheduling in a virtualization environment | |
CN114818599A (en) | Chip simulation verification system | |
WO2007024444A1 (en) | Method and apparatus for supporting universal serial bus devices in a virtualized environment | |
CN111813713A (en) | Data acceleration operation processing method and device and computer readable storage medium | |
CN103116517A (en) | Adjustment method of I/O channels of virtualization platform and adjustment device | |
US9575796B2 (en) | Virtual device timeout by memory offlining | |
WO2022032990A1 (en) | Command information transmission method, system, and apparatus, and readable storage medium | |
CN105556473A (en) | I/O task processing method, device and system | |
US7644222B2 (en) | Low latency event communication system and method | |
CN111857943B (en) | Data processing method, device and equipment | |
US10545697B1 (en) | Reverse order request queueing by para-virtual device drivers | |
CN110489212A (en) | A kind of method, apparatus and vehicle device of universal input/output port virtualization | |
CN106789337A (en) | A kind of network performance optimizing method of KVM | |
TWI811560B (en) | Resource integration system and resource integration method | |
CN109154895B (en) | Contextual data control | |
Rasmusson et al. | Performance overhead of KVM on Linux 3.9 on ARM Cortex-A15 | |
US20220335109A1 (en) | On-demand paging support for confidential computing | |
CN107608756B (en) | CPU hardware characteristic-based virtual machine introspection triggering method and system | |
EP3671472B1 (en) | Data access method and device | |
CN115292000A (en) | Method and device for dynamic migration of virtual machine and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |