Presentation is loading. Please wait.

Presentation is loading. Please wait.

Virtualization The XEN Approach. Virtualization 2 CS5204 – Operating Systems XEN: paravirtualization References and Sources Paul Barham, et.al., “Xen.

Similar presentations


Presentation on theme: "Virtualization The XEN Approach. Virtualization 2 CS5204 – Operating Systems XEN: paravirtualization References and Sources Paul Barham, et.al., “Xen."— Presentation transcript:

1 Virtualization The XEN Approach

2 Virtualization 2 CS5204 – Operating Systems XEN: paravirtualization References and Sources Paul Barham, et.al., “Xen and the Art of Virtualization,” Symposium on Operating Systems Principles 2003 (SOSP’03), October 19-22, 2003, Bolton Landing, New York. Presentation by Ian Pratt available at http://www.cl.cam.ac.uk/netos/papers/2005-xen-may.ppt Computer Laboratory

3 Virtualization 3 CS5204 – Operating Systems Xen - Structure Employs paravirtualization strategy  Deals with machine architectures that cannot be virtualized  Requires modifications to guest OS  Allows optimizations “Domain 0”  has special access to control interface for platform management  Has back-end device drivers Xen VMM  entirely event driven  no internal threads Xen 3.0 Architecture

4 Virtualization 4 CS5204 – Operating Systems MMU Virtualizion : Shadow-Mode MMU Accessed & dirty bits Guest OS VMM Hardware guest writes guest reads Virtual → physical Virtual → Machine Updates

5 Virtualization 5 CS5204 – Operating Systems MMU Virtualization : Direct-Mode MMU Guest OS Xen VMM Hardware guest writes guest reads Virtual → Machine

6 Virtualization 6 CS5204 – Operating Systems Queued Update Interface (Xen 1.2) MMU Guest OS Xen VMM Hardware validation guest writes guest reads Virtual → Machine

7 Virtualization 7 CS5204 – Operating Systems Writeable Page Tables : 1 – write fault MMU Guest OS Xen VMM Hardware page fault first guest write guest reads Virtual → Machine

8 Virtualization 8 CS5204 – Operating Systems Writeable Page Tables : 2 - Unhook MMU Guest OS Xen VMM Hardware guest writes guest reads Virtual → Machine X

9 Virtualization 9 CS5204 – Operating Systems Writeable Page Tables : 3 - First Use MMU Guest OS Xen VMM Hardware page fault guest writes guest reads Virtual → Machine X

10 Virtualization 10 CS5204 – Operating Systems Writeable Page Tables : 4 – Re-hook MMU Guest OS Xen VMM Hardware validate guest writes guest reads Virtual → Machine

11 Virtualization 11 CS5204 – Operating Systems I/O Safe hardware interfaces  I/O Spaces Restricts access to I/O registers  Isolated Device Drive Driver isolated from VMM in its own “domain” (i.e., VM) Communication between domains via device channels Unified interfaces  Common interface for group of similar devices  Exposes raw device interface (e.g., for specialized devices like sound/video) Separate request/response from event notification I/O descriptor rings  Used to communicate I/O requests and responses  For bulk data transfer devices (DMA, network), buffer space allocated out of band by GuestOS  Descriptor contains unique identifier to allow out of order processing  Multiple requests can be added before hypercall made to begin processing  Event notification can be masked by GuestOS for its convenience

12 Virtualization 12 CS5204 – Operating Systems Device Channels Connects “front end” device drivers in GuestOS with “native” device driver Is an I/O descriptor ring Buffer page(s) allocated by GuestOS and “granted” to Xen Buffer page(s) is/are pinned to prevent page-out during I/O operation Pinning allows zero-copy data transfer

13 Virtualization 13 CS5204 – Operating Systems System Performance LXVU SPEC INT2000 (score) LXVU Linux build time (s) LXVU OSDB-OLTP (tup/s) LXVU SPEC WEB99 (score) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 Benchmark suite running on Linux (L), Xen (X), VMware Workstation (V), and UML (U) Benchmark suites  Spec INT200: compute intensive workload  Linux build time: extensive file I/O, scheduling, memory management  OSBD-OLTP: transaction processing workload, extensive synchronous disk I/O  Spec WEB99: web-like workload (file and network traffic) Fair comparison?

14 Virtualization 14 CS5204 – Operating Systems I/O Performance Systems  L: Linux  IO-S: Xen using IO-Space access  IDD: Xen using isolated device driver Benchmarks  Linux build time: file I/O, scheduling, memory management  PM: file system benchmark  OSDB-OLTP: transaction processing workload, extensive synchronous disk I/O  httperf: static document retrieval  SpecWeb99: web-like workload (file and network traffic)


Download ppt "Virtualization The XEN Approach. Virtualization 2 CS5204 – Operating Systems XEN: paravirtualization References and Sources Paul Barham, et.al., “Xen."

Similar presentations


Ads by Google