CN102325178A - Virtual non-volatile flash storage device equipment designing method based on hypervisor framework - Google Patents

Virtual non-volatile flash storage device equipment designing method based on hypervisor framework Download PDF

Info

Publication number
CN102325178A
CN102325178A CN201110263623A CN201110263623A CN102325178A CN 102325178 A CN102325178 A CN 102325178A CN 201110263623 A CN201110263623 A CN 201110263623A CN 201110263623 A CN201110263623 A CN 201110263623A CN 102325178 A CN102325178 A CN 102325178A
Authority
CN
China
Prior art keywords
mutex
client
real
nand flash
memory device
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.)
Pending
Application number
CN201110263623A
Other languages
Chinese (zh)
Inventor
李国辉
梅魁志
冯升
马振克
于涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN201110263623A priority Critical patent/CN102325178A/en
Publication of CN102325178A publication Critical patent/CN102325178A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a virtual nand flash designing method, and discloses a virtual nand flash equipment designing method based on a hypervisor framework. The method mainly sets the access right of nandflash to be a mutexes structure body, so that a customer system adopts a real-time thread in a virtual machine monitor (VMM) as a service agent to operate the mutexes. The customer system and the real-time thread communicate by message, so as to carry out the request and release of nand flash equipment services. The method can enable a plurality of customer systems to store file systems and resource information with nandflash hardware resources on the same hardware platform, so that a plurality of operation systems are integrated on the same hardware platform, and the virtual nand flash equipment designing method based on the hypervisor framework is applicable to the field of safe and multi-core scheduling.

Description

Virtual nonvolatile flash memory memory device device design method based on the hypervisor framework
Technical field:
The invention belongs to embedded system Driver Design field, be specifically related to supporting virtual nand flash Equipment Design method based on the hypervisor framework.
Background technology:
The hypervisor framework refers to the monitor of virtual machine of hardware management resource and virtualized environment maintenance and goes up the architecture of running a plurality of clients.In this framework, monitor of virtual machine (Virtual Machine Monitor is hereinafter to be referred as VMM) is not a complete operating system, also supports the form operation of a plurality of clients with task simultaneously.Specifically; VMM need manage numerous hardware resources (like CPU, internal memory, I/O equipment) on the one hand; The storage allocation space; And the scheduler task operation, on the other hand also need be for client provides operation needed virtualized environment, like the communication mechanism between abstract hardware interface and client and VMM.
Nand flash is a kind of nonvolatile flash memory memory device, and it has memory capacity higher under higher storage density and the unit sizes, is widely used in the entertainment electronics appliances.This class of electronic devices generally is kept at software systems among the nand flash, and operation is arranged in the software systems of flash behind the waiting facilities electrifying startup, and in running, is stored among the flash data are permanent.In the hypervisor framework, a plurality of client operating systems need be stored in flash with its file system and operation information.In order to make a plurality of clients just a kind of mechanism need be provided, guarantee of the visit of each client mutual exclusion ground to nand flash simultaneously to nand flash operation.
At present popular virtualization scheme has Vmware and Xen, but they are primarily aimed at PC peripheral hardware commonly used and carry out virtually, and nand flash is mainly used in built-in field, so all do not relate to the virtual of nand flash equipment.In addition, compare with the separation driving model that Xen adopts, the method that this patent is narrated does not need to write specially extra front-end driven, can not drive the imbalance of serving peripheral access load between the client of transmitting and causing because of the rear end yet.
Summary of the invention:
The object of the present invention is to provide a kind of virtual nand flash Equipment Design method.Through virtual nand flash equipment, a plurality of client operating systems can be shared this equipment, and directly visit.Virtual nand flash can utilize existing ripe driver to greatest extent, only carries out a spot of modification, has improved portability.
In order to achieve the above object, the present invention adopts following technical scheme to be achieved:
Based on the virtual nonvolatile flash memory memory device device design method of hypervisor framework, client utilizes real-time thread in the monitor of virtual machine as the service broker, obtains the visiting demand to nonvolatile flash memory memory device resource; Client is notified the real-time thread request through the mode of sending out message or is discharged the access right of nonvolatile flash memory memory device, and real-time thread is accomplished after the corresponding requirements result is sent it back client operating system with the mode of message.
Obtain the mutex structure earlier before the visit nonvolatile flash memory memory device, in a single day certain client obtains this mutex can begin the nonvolatile flash memory memory device is directly conducted interviews; If client is hoped the occupied mutex of application, then its agency's real-time thread is hung the task waiting chained list into this mutex, after this mutex is released, is just waken up, accomplishes the application to nonvolatile flash memory memory device mutex.
Said nonvolatile flash memory memory device is nand flash, and nand flash has memory capacity higher under higher storage density and the unit sizes.
This method can make a plurality of clients utilize the nand flash hardware resource on the same hardware platform to carry out the storage of file system and resource information, thereby on a hardware platform, integrates a plurality of operating systems, is applicable to safety and multi-core dispatching field.
Description of drawings:
Fig. 1 is the two virtual nand flash of client drive frame shelf structure sketch mapes;
Fig. 2 is that two clients are through the relevant mutex process sketch map of real-time thread operation nand flash;
Fig. 3 is the application process sketch map of the relevant mutex of nand flash;
Fig. 4 is two client operation nand flash mutex implementation sketch mapes.
Embodiment:
Below in conjunction with accompanying drawing the present invention is done and to describe in further detail:
Referring to Fig. 1-4, to client, the access right of nand flash is set at a mutex, when client need be visited nand flash, must at first apply for this mutex.If nand flash is not used, then can apply for this mutex, utilize the original driver actuating equipment operation of nand flash then, discharge this mutex (as shown in Figure 1) after using nand flash.
Because of VMM is in charge of hardware resource, and these resources are abstracted into the plurality of data structure.Concerning nand flash, VMM utilizes mutex to represent the access right to this resource, is characterized in having only at most a user can have access to nand flash.Owing to this mutex is positioned at the VMM end, client can't directly be visited, so the real-time thread that needs to be correlated with through nand flash as the agency, is visited mutex information, and the result is fed back to client.
Be to realize said process, need create one for each client at the VMM end and handle the real-time thread that nand flash serves that this thread priority is high than client, and communicate with and mainly pass through message mode.This real-time thread promptly is in blocked state after startup, when client sends nand flash access request, just waken and carry out up relevant device operation (as shown in Figure 2).
When client need be visited nand flash equipment, at first create the message of a request service, and send and should ask to its corresponding service thread, the latter is waken and is handled up the message that receives immediately because priority is higher.Concrete parameter through this message; Identify client and need visit nand flash; Then by the corresponding mutex of this real-time thread application hardware resource, send response message to client after the success application, client then uses original driver access hardware peripheral hardware (as shown in Figure 3).
If the failure of application mutex explains that mutex was applied for before, then this client and the corresponding relevant real-time thread of nand flash thereof get clogged, and wait for that this mutex is released.
When certain client is accomplished nand flash operation, need to discharge the corresponding mutex of this device resource.Specifically, client is created a message that discharges resource, and sends and should ask to its corresponding service thread, and the latter is waken and handle up the message that receives immediately because priority is higher.Through the concrete parameter of this message, identify client and need abandon operation nand flash, then discharge this mutex by this real-time thread.In the process that discharges mutex, if there are other real-time threads to wait for this mutex, then can wake this real-time thread up, make it obtain mutex.That is to say, after the mutex that nand flash is relevant is released, wait the real-time thread of nand flash to be visited can be waken and obtain up the access right of this nand flash.The real-time thread that is waken up is then handled the mutex that gets access to, and creates the message that a success is obtained, and sends to the client of waiting for (as shown in Figure 4).
The enforcement of virtual nand flash be mainly reflected in between the establishment of relevant real-time thread, client and real-time thread communicate by letter and operating process to mutex in.
1) with the establishment of the relevant real-time thread of nand flash
Because the mutex of nand flash representative is arranged in the VMM address space, client can't directly apply for or operation such as release, thus need real-time thread operation mutual exclusion amount through the VMM end, and by the specific work of client notice real-time thread completion.That is to say that real-time thread plays the effect that the agency of visit mutex is provided for client.
When VMM starts and creates certain client, just need to create the real-time thread relevant with nand flash.Through waiting for the request message of client, thread blocks oneself, and this is similar to the daemon thread in the linux system.
2) communicating by letter between client and real-time thread
Communicating by letter between client and real-time thread is to realize through the mode of sending message.When client need be asked nand flash service, as long as send a certain message to real-time thread through the interface function between client and VMM.Because the priority of real-time thread is higher, the real-time thread that before is in blocked state is waken up and is carried out immediately.Through the concrete parameter of this message, identify client and need visit nand flash, then by the corresponding mutex of this hardware resource of this real-time thread application.After successfully applying for mutex, real-time thread is created a response message and is sent it to client, makes the latter continue to carry out.Similarly, when client uses nand flash, in the time of need abandoning related service, need to create a release message and send it to real-time thread.The parameter recognition of this real-time thread through message goes out client and need discharge mutex, and then call function discharges mutex, and last transmit operation message of successful is given client.
3) to the operation of mutex
Represent the mutex of nand flash resource access power when VMM starts, just to be initialised.When certain real-time thread relevant with nand flash is applied for this hardware device resources as the agency of client, the right to use of can call function applying for corresponding mutex.Do not use if this mutex is current, then can directly apply for this mutex, otherwise, need thread self be blocked, hang the wait task chained list in the mutex structure.Whether when real-time thread carry out to discharge the operation of mutex, can check has task waiting for this mutex, if the real-time thread that has wake-up waiting then makes it obtain this mutex, and dispatches its execution.The message that last creation operation is accomplished, and to this message of client transmission.
Above content is to combine concrete preferred implementation to further explain that the present invention did; Can not assert that embodiment of the present invention only limits to this; Those of ordinary skill for technical field under the present invention; Under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to the present invention and confirm scope of patent protection by claims of being submitted to.

Claims (3)

1. based on the virtual nonvolatile flash memory memory device device design method of hypervisor framework, it is characterized in that: client utilizes real-time thread in the monitor of virtual machine as the service broker, obtains the visiting demand to nonvolatile flash memory memory device resource; Client is notified the real-time thread request through the mode of sending out message or is discharged the access right of nonvolatile flash memory memory device, and real-time thread is accomplished after the corresponding requirements result is sent it back client operating system with the mode of message.
2. virtual nonvolatile flash memory memory device device design method as claimed in claim 1; It is characterized in that: obtain the mutex structure earlier before the visit nonvolatile flash memory memory device, in a single day certain client obtains this mutex can begin the nonvolatile flash memory memory device is directly conducted interviews; If client is hoped the occupied mutex of application, then its agency's real-time thread is hung the task waiting chained list into this mutex, after this mutex is released, is just waken up, accomplishes the application to nonvolatile flash memory memory device mutex.
3. virtual nonvolatile flash memory memory device device design method as claimed in claim 1, it is characterized in that: said nonvolatile flash memory memory device is nand flash, and nand flash has memory capacity higher under higher storage density and the unit sizes.
CN201110263623A 2011-09-07 2011-09-07 Virtual non-volatile flash storage device equipment designing method based on hypervisor framework Pending CN102325178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110263623A CN102325178A (en) 2011-09-07 2011-09-07 Virtual non-volatile flash storage device equipment designing method based on hypervisor framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110263623A CN102325178A (en) 2011-09-07 2011-09-07 Virtual non-volatile flash storage device equipment designing method based on hypervisor framework

Publications (1)

Publication Number Publication Date
CN102325178A true CN102325178A (en) 2012-01-18

Family

ID=45452847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110263623A Pending CN102325178A (en) 2011-09-07 2011-09-07 Virtual non-volatile flash storage device equipment designing method based on hypervisor framework

Country Status (1)

Country Link
CN (1) CN102325178A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445633A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Method and system for improving performance of virtual machine through NVRAM
CN111858503A (en) * 2020-06-04 2020-10-30 武汉达梦数据库有限公司 Parallel execution method and data synchronization system based on log analysis synchronization
CN113672411A (en) * 2021-08-25 2021-11-19 烽火通信科技股份有限公司 Method and device for realizing virtualization drive adaptation layer of network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230972A1 (en) * 2002-10-24 2004-11-18 International Business Machines Corporation Management of locks in a virtual machine environment
CN101059761A (en) * 2006-04-20 2007-10-24 联想(北京)有限公司 Dummy machine system and its hardware access method
CN101158924A (en) * 2007-11-27 2008-04-09 北京大学 Dynamic EMS memory mappings method of virtual machine manager

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230972A1 (en) * 2002-10-24 2004-11-18 International Business Machines Corporation Management of locks in a virtual machine environment
CN101059761A (en) * 2006-04-20 2007-10-24 联想(北京)有限公司 Dummy machine system and its hardware access method
CN101158924A (en) * 2007-11-27 2008-04-09 北京大学 Dynamic EMS memory mappings method of virtual machine manager

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《中国优秀硕士学位论文全文数据库》 20091231 刘晓芬 RT-Hypervisor:一个用于实时嵌入式系统的虚拟机监视器的设计与实现 1-3 , 第3期 *
刘晓芬: "RT-Hypervisor:一个用于实时嵌入式系统的虚拟机监视器的设计与实现", 《中国优秀硕士学位论文全文数据库》, no. 3, 31 December 2009 (2009-12-31) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445633A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Method and system for improving performance of virtual machine through NVRAM
CN111858503A (en) * 2020-06-04 2020-10-30 武汉达梦数据库有限公司 Parallel execution method and data synchronization system based on log analysis synchronization
CN111858503B (en) * 2020-06-04 2023-03-28 武汉达梦数据库股份有限公司 Parallel execution method and data synchronization system based on log analysis synchronization
CN113672411A (en) * 2021-08-25 2021-11-19 烽火通信科技股份有限公司 Method and device for realizing virtualization drive adaptation layer of network equipment
CN113672411B (en) * 2021-08-25 2023-08-11 烽火通信科技股份有限公司 Method and device for realizing network equipment virtualization driving adaptation layer

Similar Documents

Publication Publication Date Title
US8589941B2 (en) Resource affinity via dynamic reconfiguration for multi-queue network adapters
JP6381956B2 (en) Dynamic virtual machine sizing
CN104508634B (en) The dynamic resource allocation of virtual machine
EP3073374A1 (en) Thread creation method, service request processing method and related device
US8448006B2 (en) Performing virtual and/or physical resource management for power management
US20180157519A1 (en) Consolidation of idle virtual machines
US8677374B2 (en) Resource management in a virtualized environment
US11579908B2 (en) Containerized workload scheduling
CN101482832A (en) System and method for supporting metered clients with manycore
Alvarruiz et al. An energy manager for high performance computer clusters
US9811346B2 (en) Dynamic reconfiguration of queue pairs
CN111213127B (en) Virtualized operation for directly assigned devices
US9471368B2 (en) Sharing resources allocated to an entitled virtual machine
CN102404253B (en) Method for designing virtual network adapter supporting hardware abstraction layer of Linux
WO2021018267A1 (en) Live migration method for virtual machine and communication device
CN102325178A (en) Virtual non-volatile flash storage device equipment designing method based on hypervisor framework
US20140245050A1 (en) Power management for host with devices assigned to virtual machines
CN101539864B (en) Method for self adaptedly safeguarding the normal starting of credible client virtual domain
WO2015180111A1 (en) Method, apparatus and device for managing system resource
Patel et al. Hybrid Computing for Interactive Datacenter Applications
CN108431777A (en) The method and apparatus utilized for processing unit
CN115981795B (en) Method for realizing system isolation on android device through container
Rajesh et al. I/O workload in virtualized data center using hypervisor
KR20130053891A (en) Cloud green computing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120118