Xv6 Explained

xv6
Developer:MIT
Family:Unix-like
Language:English
Ui:Command-line interface
License:MIT license
Source Model:Open source
Kernel Type:Monolithic
Supported Platforms:multiprocessor Intel x86 and RISC-V
Programmed In:C and assembly

xv6 is a modern reimplementation of Sixth Edition Unix in ANSI C for multiprocessor x86 and RISC-V systems. It was created for educational purposes in MIT's Operating System Engineering course in 2006.[1]

Purpose

MIT's Operating System Engineering course formerly used the original V6 source code. xv6 was created as a modern replacement, because PDP-11 machines are not widely available and the original operating system was written in archaic pre-ANSI C. Unlike Linux or BSD, xv6 is simple enough to cover in a semester, yet still contains the important concepts and organization of Unix.

Self-documentation

One feature of the Makefile for xv6 is the option to produce a PDF of the entire source code listing in a readable format. The entire printout is only 99 pages, including cross references.[2] This is reminiscent of the original V6 source code, which was published in a similar form in Lions' Commentary on UNIX 6th Edition, with Source Code.

xv6 book

xv6 source code is paired with a commentary book that explains key concepts of operating systems using xv6 as an example. It also mentions which parts of the OS can be improved further, and how. For example, version 5 of RISC-V xv6[3] book, among others, introduces the following topics:

Compared to other teaching operating systems

xv6 differs from other operating systems being very small to be covered in a semester (especially compared to Minix or Pintos), by kernel type (xv6 monolithic vs Minix microkernel vs Nachos user-space simulated), and by having more of modern techniques (for example, Xinu lacking paging and virtual memory).

Educational use

xv6 has been used in operating systems courses at many universities, including:

External links

RISC-V:

x86-32 (unmaintained):

x86-64 (maintained by University of Strasbourg):

Notes and References

  1. Web site: Xv6, a simple Unix-like teaching operating system. Xv6 is a teaching operating system developed in the summer of 2006. 2025-05-06.
  2. Web site: xv6 source listing (x86 only, not available for RISC-V). pdf. 2018-01-10.
  3. Cox, Russ; Kaashoek, Frans; Morris, Robert. xv6: A Simple, Unix-like Teaching Operating System. MIT Department of Electrical Engineering and Computer Science. https://pdos.csail.mit.edu/6.1810/2025/xv6/book-riscv-rev5.pdf
  4. Web site: Operating Systems – 2012/Spring – Main . 2012-03-26 .
  5. Web site: COMS W4118: Operating Systems I, Fall 2013 . 2013-09-09 .
  6. Web site: Operating Systems, Fall 2022 . 2022-12-09 .
  7. Web site: CSCI 3411 – Operating Systems, Fall 2018 . 2018-09-27.
  8. Web site: ECEN427 - Operating Systems, Fall 2023 . 2023-09-27.
  9. Web site: General Information — CS-3210, Fall 2017 1 documentation. 2019-06-21. cs3210.cc.gatech.edu.
  10. Web site: Lecture Notes on Operating Systems. 2020-09-28. www.cse.iitb.ac.in.
  11. Web site: iust os. 2020-11-14. os-course.github.io.
  12. Web site: 600.318/418: Operating Systems . 2015-11-07 . 2015-11-04 . https://web.archive.org/web/20151104145926/http://gaming.jhu.edu/~phf/2015/fall/cs318/ . dead .
  13. Web site: Basispraktikum Betriebssystementwicklung, ST 2024 . 2024-11-13 . 2024-10-04 . https://web.archive.org/web/20241004060408/https://os.itec.kit.edu/3942.php . dead .
  14. Web site: 1DV201: Operating system . 2013-03-14 .
  15. Web site: 課程大綱 .
  16. Web site: SistOp14: Operating Systems . 2015-08-06 .
  17. Web site: Operating Systems . 2015-08-06 .
  18. Web site: CS 3650: Computer Systems, Fall 2014 . 2014-12-09 .
  19. Web site: EECS 343: Operating System, Fall 2016–17 . 2018-11-11 . 2018-10-24 . https://web.archive.org/web/20181024043126/http://www.aqualab.cs.northwestern.edu/class/333-eecs343-xv6 . dead .
  20. Web site: CS 333 Introduction to Operating Systems . 2018-04-10 . 2018-10-25 . https://web.archive.org/web/20181025214315/https://www.pdx.edu/computer-science/cs333 . dead .
  21. Web site: 01:198:416: Operating Systems Design . 2010-02-05 . 2012-09-11 . https://web.archive.org/web/20120911021940/http://www.cs.rutgers.edu/~iftode/cs416_2008.html . dead .
  22. Web site: Advanced Operating Systems – Operating Systems Teaching and Research Unit . 2025-10-13 . www.os.rwth-aachen.de.
  23. Web site: Operačné systémy. UIM. sk-SK. 2019-10-28.
  24. Web site: School of Computing at Southern Adventist University . 2017-12-10 . 2018-10-20 . https://web.archive.org/web/20181020050115/http://www.southern.edu/academics/academic-sites/computing/ . dead .
  25. Web site: CSE 306 -- Course Information. 2021-04-14. 2023-04-13. https://web.archive.org/web/20230413220114/https://bsd7.cs.stonybrook.edu/~cse306/syllabus.html. dead.
  26. Web site: 094210 Computer Organization and Operating System, Spring 2020 . 2020-05-14.
  27. Web site: CSC 4508 - Operating Systems . 2024-06-26.
  28. Web site: FrontPage – OS Teaching Wiki . 2010-03-18 .
  29. Web site: DCC605: Sistemas Operacionais . 2015-11-16.
  30. Web site: COMP20180 Intro to Operating Systems . 2023-04-04.
  31. Web site: Operativni sistemi 2 - Projektni zadatak . sr-RS . 2021-11-20 . Zadatak studenta je da izmeni deo operativnog sistem xv6 tako da podrži raspoređivače čije je opis dat u ovom projektu. . live . https://web.archive.org/web/20200922143449/http://os.etf.bg.ac.rs/OS2/projekat/ . September 22, 2020 .
  32. Web site: CS 202: Advanced Operating System . 2017-12-02 .
  33. Web site: CISC361: Operating Systems . 2025-03-31 .
  34. Web site: CS385 – Operating Systems Concepts and Design . 2015-03-18 . 2021-09-21 . https://web.archive.org/web/20210921113544/https://www.cs.uic.edu/CS385 . dead .
  35. Web site: Module and Programme Catalogue. 2020-10-14. webprod3.leeds.ac.uk.
  36. Web site: Progettazione di Sistemi Operativi . 2017-10-09 . 2021-09-21 . https://web.archive.org/web/20210921112113/https://www.ingmo.unimore.it/site/home/didattica/insegnamento.html?P0_cds_cod=20-262&P0_aa_ord_id=2009&P0_pds_cod=20-262-1&P0_aa_off_id=2017&P0_lang=ita&P0_ad_cod=IIM-36&P0_aa_corso=1&P0_fac_id=10005&P0_coorte=2017&P0_pagpre=880010930 . dead .
  37. Web site: COSC440: Advanced Operating system . 2015-07-14 . 2022-02-09 . https://web.archive.org/web/20220209173604/http://www.cs.otago.ac.nz/cosc440/ . dead .
  38. Web site: Sistemi Operativi . 2015-10-18 .
  39. Web site: CS 1550 Introduction to Operating Systems (COE 1550) -Fall 2020. 2020-09-28. people.cs.pitt.edu.
  40. Web site: Conception des Systèmes d'Exploitation .
  41. Web site: COP6611 Operating Systems - Fall 2023.
  42. Web site: Operating Systems instructed by Dr. Mehdi Kargahi .
  43. Web site: Master’s in Computer Science Computer & Data Science Online . 2025-05-10 . cdso.utexas.edu.
  44. Web site: CS 6460: Operating Systems . 2014-01-20 .
  45. Web site: Embedded in Academia : Xv6 . 2014-04-08 .
  46. Web site: CS4414: XV6 introduction . 2022-02-27.
  47. Web site: CS-537: Introduction to Operating Systems . 2011-11-04 .
  48. Web site: CS422/522: Operating Systems, Spring 2010 — Overview . 2010-02-05 . 2012-07-23 . https://web.archive.org/web/20120723215711/http://zoo.cs.yale.edu/classes/cs422/2010/info . dead .