Virtualization is widely used now and a variety of virtual machines spring up, such as KVM, XEN and Vmware which have been employed at various levels. Meanwhile, the home-made Loongson2F CPU has become mature over the past decade and is extensively used in the current market. However, the application of Loongson processors is yet to be developed, which initiates the present study.Based on the platform of Loongson2F processor, the dissertation here at first makes an analysis of the characteristics of the clock, interruption, memory management units and the principles of XtratuM virtual machine;then the porting work of the Linux with the kernel version3.0.4is achieved on Loongson2F platform, including the taking over of clock and timer, the taking over of interruption, domain loading and switching, the realization of virtual clock and timer and the realization of XtratuM system calls. Finally, the testing and assessment of its performance in the current implementation is undertaken, which basically confirms to the expectations. The XtratuM virtual machine runs successfully on Loongson2F platform, which enables the extensively use of Loongson processors, especially Loongson2F processor in the embedded real-time virtualization fields. |