KVM虛擬機設(shè)備虛擬化及串口轉(zhuǎn)發(fā)器的研究與應(yīng)用
本文選題:KVM + 串口轉(zhuǎn)發(fā)器。 參考:《成都理工大學》2012年碩士論文
【摘要】:虛擬化技術(shù)在最近幾年得到了飛速發(fā)展,能夠有效地提高處理器的利用率,并且處理器廠商相繼推出了支持虛擬化的處理器、芯片組等,如今,虛擬化技術(shù)被廣泛地應(yīng)用于各個領(lǐng)域。I/O設(shè)備虛擬化技術(shù)是將一臺高性能的物理設(shè)備虛擬成邏輯上獨立的多臺設(shè)備,而這些邏輯上獨立的虛擬機用來完成不同的應(yīng)用,這樣不僅可以增加應(yīng)用的安全性,也可以提高硬件資源的利用率。 在研究計算機虛擬化技術(shù)的基本理論和機制的基礎(chǔ)上,,研究了虛擬化的分類,然后著重研究KVM虛擬機的解決方案以及KVM虛擬機的執(zhí)行流程,并對VT-d技術(shù)在KVM中的應(yīng)用進行了深入的分析。 從KVM的應(yīng)用出發(fā),本文研究了KVM的實現(xiàn)步驟和使用方法。在用戶空間設(shè)計和實現(xiàn)了串口轉(zhuǎn)發(fā)器。在此基礎(chǔ)上深入地研究了KVM虛擬串口設(shè)備的機制、KVM虛擬設(shè)備與用戶空間的通信機制,并分別對KVM模擬串口設(shè)備、KVM虛擬設(shè)備和用戶空間通信以及對Linux串口驅(qū)動轉(zhuǎn)發(fā)方法進行了充分的實驗和測試,最終結(jié)合Linux串口驅(qū)動及Linux的TTY設(shè)備模型,提出了一套在內(nèi)核空間Linux驅(qū)動層實現(xiàn)串口轉(zhuǎn)發(fā)器的解決方案。該方案將整個轉(zhuǎn)發(fā)過程移到Linux內(nèi)核空間,轉(zhuǎn)發(fā)過程中的數(shù)據(jù)在內(nèi)核空間流動,不需要在內(nèi)核空間和用戶空間進行切換,減少計算機的性能開銷。 本文還針對計算機中使用最多的設(shè)備即PCI設(shè)備進行了深入的研究。結(jié)合KVM中串口設(shè)備的模擬方法,深入地分析和研究了PCI設(shè)備在KVM中的模擬方法、通信機制,以及PCI設(shè)備的驅(qū)動模型。設(shè)計和實現(xiàn)了在內(nèi)核空間多個KVM共享一個PCI設(shè)備的方案。 本文分別對用戶空間串口轉(zhuǎn)發(fā)器的實現(xiàn)方法、Linux內(nèi)核空間串口轉(zhuǎn)發(fā)器的實現(xiàn)方法、內(nèi)核空間多個KVM共享一個PCI設(shè)備的方法以及82576網(wǎng)卡使用VT-d技術(shù)進行了實例化,并做了大量的實驗和測試。實驗測試結(jié)果表明,本文設(shè)計和實現(xiàn)的用戶空間串口轉(zhuǎn)發(fā)器與內(nèi)核空間串口轉(zhuǎn)發(fā)器都具有良好的穩(wěn)定性和通用性。實驗結(jié)果表明,內(nèi)核空間多個KVM共享一個PCI設(shè)備的方法是有效的,可以解決多個KVM虛擬設(shè)備共享一個PCI設(shè)備的問題。實驗結(jié)果還說明VT-d技術(shù)在KVM中的應(yīng)用大大地提高了虛擬機的I/O性能。在上述實驗的過程中,系統(tǒng)能保持穩(wěn)定性和安全性,也證實了本文研究的設(shè)備虛擬化方法具有實際的應(yīng)用價值。
[Abstract]:Virtualization technology has been rapidly developed in recent years, which can effectively improve the utilization of processors, and processor manufacturers have introduced virtualization support processors, chipsets, and so on. Virtualization technology is widely used in various fields. I / O device virtualization technology is to virtual a high-performance physical device into logically independent multiple devices, and these logically independent virtual machines are used to accomplish different applications. This can not only increase the security of the application, but also improve the utilization of hardware resources. On the basis of studying the basic theory and mechanism of computer virtualization, this paper studies the classification of virtualization, and then focuses on the solution of KVM virtual machine and the execution flow of KVM virtual machine. The application of VT-d technology in KVM is analyzed. Starting from the application of KVM, this paper studies the implementation steps and usage methods of KVM. The serial port transponder is designed and implemented in user space. On this basis, the communication mechanism between KVM virtual device and user space is studied deeply. The KVM simulation serial port device KVM virtual device and user space communication, and the Linux serial port driver forwarding method are fully tested and tested. Finally, the Linux serial port driver and Linux TTY device model are combined. This paper presents a solution to implement serial port transponder in kernel space Linux driver layer. In this scheme, the whole forwarding process is moved to the Linux kernel space, the data in the forwarding process flows in the kernel space, and there is no need to switch between the kernel space and the user space, so the performance overhead of the computer is reduced. In this paper, the most widely used equipment in the computer, that is, PCI equipment, is studied in depth. Combined with the simulation method of serial port device in KVM, the simulation method, communication mechanism and driver model of PCI device in KVM are analyzed and studied in detail. A scheme of sharing a single PCI device among multiple KVM in kernel space is designed and implemented. In this paper, the realization method of user space serial port transponder and the method of sharing a single PCI device with multiple KVM in kernel space and the instantiation of 82576 network card using VT-d technology are discussed respectively. And did a lot of experiments and tests. The experimental results show that both the user space serial port transponder and the kernel space serial port transponder designed and implemented in this paper have good stability and versatility. The experimental results show that the method of sharing one PCI device with multiple KVM in kernel space is effective and can solve the problem of multiple KVM virtual devices sharing one PCI device. The experimental results also show that the application of VT-d technology in KVM greatly improves the I / O performance of virtual machine. In the process of the above experiments, the system can maintain stability and security, and it also proves that the device virtualization method studied in this paper has practical application value.
【學位授予單位】:成都理工大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP302;TP334.7
【參考文獻】
相關(guān)期刊論文 前10條
1 車翔;王華軍;;QEMU-KVM虛擬PCI設(shè)備優(yōu)化方法[J];電腦與電信;2011年11期
2 周全,盧顯良,任立勇,劉曉燕;基于Linux的進程遷移機制設(shè)計[J];計算機應(yīng)用;2003年08期
3 李慶華,羅犀勁;基于檢查點進程遷移機制的改進[J];計算機仿真;2003年05期
4 譚漢松,劉建勛,陳海燕;Linux中的消息通信機制及其應(yīng)用[J];計算機應(yīng)用研究;2000年10期
5 黃可杰;馬莉;;Linux環(huán)境下I/O重定向與異步通信的實現(xiàn)[J];計算機應(yīng)用與軟件;2011年03期
6 劉靜波;郭玉東;王曉睿;劉勇;;設(shè)備虛擬化方法研究與實現(xiàn)[J];計算機工程與設(shè)計;2011年08期
7 劉鳳聲;;基于VB6.0的單片機與PC通訊的實現(xiàn)與應(yīng)用[J];計算機技術(shù)與發(fā)展;2007年10期
8 鄭尚志;陳祖爵;韓云;陸軍;;Linux中信號量機制研究[J];計算機技術(shù)與發(fā)展;2007年12期
9 林龍增;羅省賢;;實現(xiàn)多個KVM虛擬機通信的串口轉(zhuǎn)發(fā)器方法[J];計算機技術(shù)與發(fā)展;2012年02期
10 張蕭;祝明發(fā);肖利民;;分布式I/O資源虛擬化技術(shù)的研究[J];微電子學與計算機;2008年10期
相關(guān)碩士學位論文 前6條
1 李紹;基于Linux的虛擬化技術(shù)研究和應(yīng)用[D];成都理工大學;2011年
2 林昆;基于Intel VT-d技術(shù)的虛擬機安全隔離研究[D];上海交通大學;2011年
3 姚遠;虛擬機高效設(shè)備訪問模型設(shè)計與實現(xiàn)[D];國防科學技術(shù)大學;2010年
4 孫世昶;虛擬化技術(shù)研究及PCI設(shè)備直接訪問的實現(xiàn)[D];大連理工大學;2006年
5 郝旭東;Intel VT-d技術(shù)的研究及其在KVM虛擬機上的實現(xiàn)[D];電子科技大學;2009年
6 劉鋒;Kernel-based Virtual Machine研究與其事件跟蹤機制實現(xiàn)[D];電子科技大學;2009年
本文編號:1956540
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/1956540.html