1 / 19

Xen and the Art of Virtualization - Focus on paravirtualization -

Xen and the Art of Virtualization - Focus on paravirtualization - EECS 2003-12087 Lee, Woen Chan. Contents. Introduction Xen ’ s Approach

regis
Download Presentation

Xen and the Art of Virtualization - Focus on paravirtualization -

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Xen and the Art of Virtualization - Focus on paravirtualization - EECS 2003-12087 Lee, Woen Chan

  2. Contents • Introduction • Xen’s Approach • Paravirtualized interfaces • CPU • MMU • Device I/O

  3. Introduction • Drawbacks of full virtualization of x86 architecture • Critical instruction emulation • x86 MMU virtualization • These problems can be solved only at the cost of increased complexity and reduced performance.

  4. Xen’s Approach • To obtain high performance, modify guest OS code. -> paravirtualization! • Make guest OS aware that VMM exists. • Do not require changes to ABI. • Cost of porting guest OS is small

  5. Xen’s Approach • Xen architecture Xen 1.2 Architecture Xen 3.0 Architecture

  6. Xen’s Approach • Flexibility • Separate mechanism and policy • Implement and use your own policies! • Domain0 is used for overall system management • Domain0 also do device management

  7. Paravirtualizedinterfaces - CPU • Arch Xen/x86 • Critical instructions are replaced with Xen hypercalls • Avoid scanning/patching and fault trapping • Xen runs in ring 0 • Ring 1/2 for guest OS, 3 for user apps. • Prevent guest OS from directly executing privileged instructions • Jump to Xen in ring 0 by hepercalls • Guest OS may install ‘fast trap’ handler • Direct ring user-space to guest OS system calls

  8. Paravirtualizedinterfaces - MMU • MMU virtualization : shadow vs. direct • Using shadow pages(in VMware)

  9. Paravirtualizedinterfaces - MMU • Direct-mode(Xen) • Guest OSes allocate and manage own PTs • Hypercall to change PT base • Xen must validate PT update before use • Update may be queued and batch processed • Validation rules • Guest may only map pages it owns • Pagetable pages may only be mapped RO

  10. Paravirtualizedinterfaces - MMU • Direct-mode(Xen)

  11. Paravirtualizedinterfaces - MMU • Page fault handling

  12. Paravirtualizedinterfaces - MMU • Page fault handling

  13. Paravirtualizedinterfaces - MMU • Page fault handling

  14. Paravirtualizedinterfaces - MMU • Page fault handling

  15. 1.1 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 L X V U L X V U Page fault (µs) Process fork (µs) lmbench results on Linux (L), Xen (X), VMWare Workstation (V), and UML (U) Paravirtualizedinterfaces - MMU • MMU Performance

  16. Paravirtualizedinterfaces – I/O • Device I/O • Zero-copy data transfer • cf) traditional spooled-device emulation • Lightweight event delivery

  17. Paravirtualizedinterfaces – I/O • Asynchronous I/O ring

  18. Paravirtualizedinterfaces – I/O • Device channel

  19. Paravirtualizedinterfaces – I/O • TCP results

More Related