Study on Virtual Machine of x86 Architecture

Author
YuQiang
Advisor
YangXiaoJian
School
Nanjing University of Technology
Major
Applied Computer Technology
Classification
TP391.9 Computer simulation
Degree
Master's thesis
Year
2006
Downloads
571
Citations
10

Request the full text

Abstract

Virutal machine(VM) acting as a soft-tool were wildly used in many areas, such as processor emulating, anti-virus and virtual host on network. Thus the VM technology is always a hot-spot in computer science. The x86 is the most popular micro-computer architecture and plays an important role in PC market and industrial computer applications. Now many commercial x86 VM software products have been released. Besides, some non-profit organizations are active on the research work of virtual machine.The dissertation was derived from an open-source project‘Bochs’, giving a detailed description of the principle and the implementation of a VM program. Bochs is an x86 emulator, it emulates both an x86 CPU which has a‘fetch-decode-execute’unit for all x86 instruction set as well as some extended instructions and a whole PC system consisted of system board, memory and various peripherals etc.At the beginning, Some basic concepts of VM and related research works were presented. Then the Bochs project was introducted with a general description of its project designing. Based on analyzing of source code, the dissertation discussed the implementation of a virtual CPU and PC system, including registers, MMU and the fetch-decode unit of CPU and management of memory & I/O access for a PC system. After that, the dissertation foucs on some critical topics such as timer management, implementation of cache and TLB, discussed and analysed them.Moreover, a group of experiments were performed, statistical data was acquired by inserting additional code into Bochs, In the first experiment, number of each instruction was inspected and analysed, while after the next one, how cache size infects cache performace wasAnother important work of the dissertation is the design and implementation of an useful tool--IA-32 debugger. IA-32 Debugger is an x86 instruction debugger with a GUI, It was based on Bochs. By modifying the original code, it controls the

Table of contents

Summary 4-5 ABSTRACT 5-10 Chapter 1 Introduction 10-15 1.1 Introduction 10-11 1.2 virtual machine classification 11-12 1.3 virtual machine applications 12-13 1.4 x86 Virtual Machine Research and this paper work 13-15 Chapter 2 virtual machine design ideas with the Bochs project 15-21 2.1 virtual machine design ideas 15-17 2.2 open source project the Bochs introduced 17 2.3 the Bochs project organization and the principles outlined 17-21 2.3.1 Bochs project's organizational structure 17-19 2.3.2 Bochs The working principle outlined 19-21 Chapter 3, Bochs works 21-44 3.1 virtual CPU Overview 21-22 3.2 virtual CPU the realization 22-35 3.2.1 registers nbsp to; 22-24 3.2.2 MMU unit 24-27 3.2.3 Fetch and Executive the 27-34 3.2.4 handle asynchronous events 34-35 3.3 memory systems 35-37 3.4 the analog PC motherboard 37-39 3.4.1 the motherboard Overview 37-38 3.4.2 Timer the virtual 38-39 3.5 peripherals nbsp organizational structure; 39-41 3.5.1 Peripheral 39 3.5.2 Peripheral work 39-40 3.5.3 Peripheral early initialized 40-41 3.6 PCI subsystem 41-44 the PCI interconnect structure 3.6.1 PC system 41-42 3.6.2 PCI bus space 42-43 3.6.3 Bochs the analog PCI bus 43-44 Chapter 4 discussion and experimental 44 - 56 4.1 virtual machine clock system 44-46 the 4.1.1 PC system clock type 44 4.1.2 analog clock 44 -46 4.2 cache and TLB simulation are found; 46-47 4.2.1 cache simulation 46-47 4.2.2 the TLB simulation 47 4.3 virtual machine user interface (UI) 47-50 4.3.1 Input and display 47-48 4.3.2 virtual disk 48 4.3.3 and external communication interface 48-50 4.3.4 User Interface section 50 4.4 virtual machine-based experiments 50 - 56 4.4.1 instruction statistical experimental the 50-53 4.4.2 cache performance experiments 53-55 4.4.3 virtual machine experiments Summary 55-56 Chapter 5, IA-32 of the Debugger design and achieve 56-67 5.1 Overview of the Debugger 56-57 5.2 IA-32 the Debugger Debugger design overview 57-60 5.2.1 design ideas the 57-58 5.2.2 MFC the auxiliary graphical programming 58-59 5.2.3 IA--32 Debugger engineering organizations the concrete realization 59-60 5.3 IA-32 Debugger debugger 60-67 5.3.1 Virtual The the machine loading process 60 5.3.2 CPU control 60-61 5.3.3 breakpoint setting function 61 5.3.4 state View the 61-62 5.3.5 disassembly output 62-65 5.3.6 Summary 65-67 Chapter 6 virtual machine technology foresight nbsp 67-71 6.1 virtual machine execution efficiency; 67-68 6.1.1 virtual machine's efficiency status quo 67 6.1.2 Qemu design ideas 67-68 6.2 virtualization technology and Xen 68-70 6.2.1 Xen and its design thinking 69 6.2. 2 Xen 69-70 6.2.3 the Xen the processing page table problem 70 6.3 virtual machine technology foresight 70-71 reference literature 71-74 Appendix 74-78 Acknowledgements 78

Related dissertations

  1. Design and Implementation of Telecomunication Business Enterprise Data Center
  2. Development and Application of Soft-PLC for Open-NC System
    WangFei ·South China University of Technology ·2011 ·Master's thesis
  3. System level simulator without X86 on the host operating system and peripherals to achieve simulation program start
    ZhangZuo ·Fudan University ·2011 ·Master's thesis