Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
    • 指導教授
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/22310
完整後設資料紀錄
DC 欄位值語言
dc.contributor.advisor薛智文
dc.contributor.authorYu-Feng Linen
dc.contributor.author林榆豐zh_TW
dc.date.accessioned2021-06-08T04:15:19Z-
dc.date.copyright2011-08-19
dc.date.issued2011
dc.date.submitted2011-08-18
dc.identifier.citation[1] Qemu. http://www.qemu.org/.
[2] Simple DirectMedia Layer. http://www.libsdl.org/.
[3] XenWindowsGplPv.
http://wiki.xensource.com/xenwiki/XenWindowsGplPv/.
[4] B. Clark, T. Deshane, E. Dow, S. Evanchik, M. Finlayson, J. Herne, and J.Matthews. Xen and the art of repeated research. In Proc. USENIX Annual Technical Conference, June 2004.
[5] Beng Heng Ng, Billy Lau and Atul Prakash. Direct Access to Graphics Card Leveraging VT-d . Technical report, 2009.
[6] AMD Corporation. AMD64 virtualization codenamed “Pacifica” technology: Secure Virtual Machine architecture reference manual, May 2005.
[7] Chisnall David. The Definitive Guide to the Xen Hypervisor. Prentice Hall, 2008. ISBN-13: 978-0-13-234971-0, ISBN-10: 0-13-234971-X.
[8] I. Pratt, Fraser, Hand, Limpach, Warfield, Magenheimer, Nakajima, & Mallick. Xen 3.0 and the art of virtualization. In OLS ’05. Ottawa, 2005.
[9] Intel. Intel Virtualization Technology Specification for the IA-32 Intel Architecture, April 2005.
[10] K. Fraser, S. Hand, R. Neugebauer, I. Pratt, A. Warfield, and M. Williams. Safe hardware access with the xen virtual machine monitor. In OASIS ’04: Proceedings of the 1st Workshop on Operating System and Architectural Support for the on demand IT Infrastructure, October 2004.
[11] Kangho Kim, Cheiyol Kim and Sung-In Jung. Inter-domain socket communications supporting high performance and full binary compatibility on xen. In Proceedings of the fourth ACM International Conference On Virtual
Execution Environments, 2008.
[12] Microsoft. Windows Driver Kit, Microsoft Corporation, 2009.
http://msdn.microsoft.com/en-us/windows/hardware/gg487428/.
[13] P. Barham, B. Dragovic, K. Fraser, S. Hand, T. L. Harris, A. Ho, R.Neugebauer, I. Pratt, and A. Warfield. Xen and the art of virtualization. In SOSP ’03: Proceedings of the 19th Symposium on Operating Systems
Principles, pages 164–177. ACM, October 2003.
[14] Yuri Schaffer. Xen vga passthrough. Technical report, Univeriteit van Amsterdam, 2009.
[15] Citrix Systems. Xen wiki: Vtd howto, vt-d pass-through.
http://wiki.xensource.com/xenwiki/VTdHowTo/.
[16] Kenneth R.Wood & Andy Hopper Tristan Richardson, Quentin Stafford-Fraser. Virtual Network Computing. In IEEE Internet Computing, volume 2, pages 33–38, Jan/Feb 1998.
[17] Xiaolan Zhang, Suzanne McIntosh, Pankaj Rohatgi and John Griffin. Xensocket: A high-throughput interdomain transport for virtual machines. In Xen Summit, 2007.
dc.identifier.urihttp://tdr.lib.ntu.edu.tw/jspui/handle/123456789/22310-
dc.description.abstract隨著使用者端虛擬化越來越盛行,顯示相關的虛擬化技術近年來在虛擬化軟體和虛擬化硬體指令的支援下蓬勃發展。Xen 是一套提供虛擬化的軟體,它支援了 VGA 派送 (Pass-through) 技術,可以將實體顯示卡指定給任何一個全虛擬機器,大幅度改善該虛擬機器的顯示效能。SDL 是一套跨平台多媒體函式庫,常用來存取系統底層的資訊;開啟了 VGA 派送後,傳統在 Xen 上基於 SDL 的顯示機制卻無法正常運作,因為該機制只支援由特定虛擬機器來控管實體顯示卡。有鑑於此,我們利用共享記憶體設計並實作一套基於 SDL 新的顯示機制。這套機制特別在於當實體顯示卡派送給某一全虛擬化機器使用後,它還是可以很有效率地支援顯示使用者端各虛擬機器的桌面。本論文比較多種不同的顯示機制,並由實驗結果驗證我們提出的顯示機制有較穩定的畫面更新頻率且使用較低的系統資源。所以,這套新的顯示機制可以在虛擬化的使用者端環境下,以更好的效能取代傳統的顯示機制。zh_TW
dc.description.abstractAs client-side virtualization becomes more popular, lots of display related technologies for virtualization have also been developed with the advance of virtualized software and hardware support. Xen is a software supporting virtualization with a feature called VGA pass-through to directly assign the physical VGA device to any fully-virtualized virtual machine and significantly improve the
display performance of the virtual machine; whereas SDL is a cross-platform multimedia library, usually used to access low-level system information. However, after the VGA pass-through is turned on, the original SDL-based display
mechanism on Xen cannot work properly because it only supports that the physical VGA device is controlled by a specific virtual machine. Therefore, we design and implement a new SDL-based display mechanism with shared memory so that, after the physical VGA device is passed through to some virtual machine, our mechanism still can display the desktop of any other virtual machine efficiently. This thesis then compares several display mechanisms and the experimental results verify that our mechanism provides more stable refresh rate with lower CPU usage. As a result, our new SDL-based display mechanism can replace the original one used in the client-side virtualized environment
with better performance.
en
dc.description.provenanceMade available in DSpace on 2021-06-08T04:15:19Z (GMT). No. of bitstreams: 1
ntu-100-R98922047-1.pdf: 2788409 bytes, checksum: 259450574b919e4d623016326cc86747 (MD5)
Previous issue date: 2011
en
dc.description.tableofcontents1 Introduction
1
2 Related Work and Background
4
2.1 Xen Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1.1 Xen Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Split Driver Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.1 Ring Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.2 Event Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Framebuffer Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.1 HVM Framebuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.2 PV Framebuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4 Original Display Mechanisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.5 After VGA Pass-through . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3 Design and Implementation
13
3.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Sharing the Framebuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.1 Creating the Virtual Device . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2.2 Mapping the Framebuffer into Kernel Space Memory . . . . . . . . . . . 15
3.2.3 Sharing Memory between Domains . . . . . . . . . . . . . . . . . . . . . 17
3.2.4 Mapping Granted Frames in Dom0 User-Mode . . . . . . . . . . . . . . . 17
3.3 Splitting SDL Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.1 Frontend Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.2 Backend Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 SDL Event Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.5 Releasing the Framebuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4 Experiment and Result
23
4.1 Without VGA Pass-through . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.1.1 CPU Usage of Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1.2 Refresh Interval of Framebuffer for Domain-U . . . . . . . . . . . . . . . 28
4.2 With VGA Pass-through . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.2.1 CPU Usage of Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.2.2 Refresh Interval of Framebuffer for Domain-U . . . . . . . . . . . . . . . 34
5 Conclusion and Future Work
39
Bibliography
40
dc.language.isoen
dc.subject顯示機制zh_TW
dc.subjectXenzh_TW
dc.subjectSDLzh_TW
dc.subjectVGAzh_TW
dc.subject派送zh_TW
dc.subject虛擬化技術zh_TW
dc.subject虛擬機器zh_TW
dc.subject共享記憶體zh_TW
dc.subjectSDLen
dc.subjectXenen
dc.subjectVGAen
dc.subjectdisplay mechanismen
dc.subjectshared memoryen
dc.subjectvirtual machineen
dc.subjectvirtualizationen
dc.subjectpass-throughen
dc.title一種在 Xen 上基於 SDL 的有效率顯示機制zh_TW
dc.titleAn Efficient SDL-based Display Mechanism on Xenen
dc.typeThesis
dc.date.schoolyear99-2
dc.description.degree碩士
dc.contributor.oralexamcommittee張榮貴,陳敬
dc.subject.keywordXen,SDL,VGA,派送,虛擬化技術,虛擬機器,共享記憶體,顯示機制,zh_TW
dc.subject.keywordXen,SDL,VGA,pass-through,virtualization,virtual machine,shared memory,display mechanism,en
dc.relation.page43
dc.rights.note未授權
dc.date.accepted2011-08-18
dc.contributor.author-college電機資訊學院zh_TW
dc.contributor.author-dept資訊工程學研究所zh_TW
顯示於系所單位:資訊工程學系

文件中的檔案:
檔案 大小格式 
ntu-100-1.pdf
  未授權公開取用
2.72 MBAdobe PDF
顯示文件簡單紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved