標題: 一個為異質系統架構並基於KVM的系統虛擬機器
A KVM-based Hypervisor for Heterogeneous System Architecture
作者: 黃昱儒
Huang, Yu-Ju
徐慰中
Hsu, Wei-Chung
資訊科學與工程研究所
關鍵字: 虛擬化技術;系統虛擬化;圖形處理器虛擬化;異質運算;異質系統架構;Virtualization;GPU Virtualization;Kernel-based Virtual Machine;Heterogeneous system architecture;HSA
公開日期: 2015
摘要: 為解決舊有異質運算架構所存在的效能消耗及程式撰寫不便性,異質系統架構基金會提出了異質系統架構。該架構將處理器與其他運算單元放置於同一系統匯流排,使運算單元處於相同位址空間,由此省略運算單元間資料傳輸,程式開發者也可更專注於開發運算演算法而不用處理運算單元間溝通,此設計解決了效能消耗及程式撰寫不便的問題。異質系統架構為異質運算開創了嶄新的發展空間,並提供多種特性使異質運算更強大、更方便、以及更省電。 本論文探討與實作一可運行於異質系統架構之系統虛擬機,因異質系統架構為一嶄新的架構,舊有的系統虛擬機器無法直接運行及虛擬多項異質系統架構所定義的特性。本論文實作基於Linux KVM,並提出多項設計及修改以達到異質系統架構的系統虛擬化。並基於此實作,在異質系統架構上之GPU可共享於多的虛擬作業系統及原生作業系統,在實驗平台AMD Kaveri機器上,多個虛擬作業系統及原生作業系統均可同時分配工作並於GPU端執行。
Heterogeneous System Architecture (HSA) [1] is defined and developed by HSA foundation aiming at reducing programmability barrier and improving computation efficiency for heterogeneous computing. HSA tries to integrate CPU and other computing devices on the same bus and enables them to share the same virtual memory address space. Since the address space is shared, programmers do not need to take care of explicit data copying between devices, as was required in discrete GPUs in the past, and can focus more on developing algorithms. The communication overhead between CPU and devices is also reduced by eliminating such explicit data copy. HSA offers new opportunities for heterogeneous computing and introduces various features in the architecture to make heterogeneous computing more powerful, more convenient, and more power efficient. This thesis introduces HSA virtualization. Since HSA is a new architecture, which tightly integrates CPU with GPU, legacy hypervisors cannot work directly on HSA-compliant systems. This work investigates on the issues involved and implements a system virtual machine based on Linux KVM (kernel-based virtual machine) [2]. The newly created hypervisor enables major features defined by HSA inside the guest operating systems. GPU in an HSA machine can be shared between multiple guest OSes and the host OS under this implementation. We have shown that on the HSA-compliant computing system AMD Kaveri, various processes in multiple guest operating systems and host operating system can dispatch jobs to the shared GPU for execution under our new and HSA-ready hypervisor.
URI: http://140.113.39.130/cdrfb3/record/nctu/#GT070256070
http://hdl.handle.net/11536/127230
顯示於類別:畢業論文