作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

XtratuM平台上的μC/OS-II半虚拟化研究与实现

周刘成,张激,李健,孙陈伟   

  1. (中国电子科技集团公司第三十二研究所,上海200233)
  • 收稿日期:2014-08-13 出版日期:2015-07-15 发布日期:2015-07-15
  • 作者简介:周刘成(1989-),男,硕士研究生,主研方向:嵌入式操作系统;张激,研究员;李健,高级工程师;孙陈伟,工程师。

Research and Implementation of μC/OS-II Para-virtualization on XtratuM Platform

ZHOU Liucheng,ZHANG Ji,LI Jian,SUN Chenwei   

  1. (The 32nd Research Institute of China Electronics Technology Group Corporation,Shanghai 200233,China)
  • Received:2014-08-13 Online:2015-07-15 Published:2015-07-15

摘要: XtratuM虚拟机管理器是一款面向嵌入式安全关键领域的虚拟机管理器。XtratuM系统的每个分区上可运行一个经过修改的客户操作系统,但目前其支持的客户操作系统并不包括μ/COS-II嵌入式实时操作系统。为此,在研究XtratuM架构的基础上,给出基于XtratuM虚拟机管理器的半虚拟化方案。利用XtratuM提供的系统调用服务向客户操作系统的μ/COS-II隐藏不必要的硬件细节,重新设计μ/COS-II的任务栈帧以及上下文切换算法以避免对特权指令的使用,将虚拟时钟中断挂接到XtratuM系统来保证μ/COS-II任务的正常调度。实验结果证明,作为客户操作系统的2个μ/COS-II可以相对独立地按照既定调度方案运行于同一个x86硬件平台上。

关键词: XtratuM虚拟机管理器, 客户操作系统, μC/OS-II实时操作系统, 半虚拟化

Abstract: XtratuM is a hypervisor designed to meet the requirements of embedded safety critical area.It is possible to run different guest operating systems which are modified on each partition of XtratuM system,but μC/OS-II can not work as XtratuM’s guest Operating System(OS) till now.Therefore,this paper proposes the solution of μC/OS-II para-virtualizaiton on XtratuM after researching the architechure of XtratuM.It makes use of the hypercalls hiding the hardware details from μ/COS-II,redesigning the task stack frame of μ/COS-II and the context switching algorithm in order to avoid using the conflicting instructions,and mounts virtual clock interrupt on XtratuM system to make sure of task scheduling.Experimental result shows that two μC/OS-IIs can run independently according to the established scheduling scheme on the same hardware platform based on x86 architecture.

Key words: XtratuM virtual machine manager, guest Operating System(OS), μC/OS-II real-time OS, para-virtualization

中图分类号: