GithubHelp home page GithubHelp logo

stardustos / stardust-oxide Goto Github PK

View Code? Open in Web Editor NEW
122.0 8.0 1.0 8.2 MB

Rust-based Unikernel

Home Page: https://stardustos.github.io/stardust-oxide/xen/index.html

License: Mozilla Public License 2.0

Shell 0.38% Rust 94.48% Assembly 4.92% C 0.22%
xen virtualization unikernel rust kernel

stardust-oxide's Introduction

Screenshot 2021-05-26 at 14 34 13

stardust-oxide

CI LoC

Features

  • Console driver with log support
  • Page frame mapping and table generation (using buddy_system_allocator as global allocator)
  • Grant table creation/destruction
  • XenStore interface
  • XenBus interface
  • Simple async executor
  • Network driver using smoltcp for TCP/IP stack

Screenshot 2022-03-09 at 12 15 38

Usage

Requirements

Building and running stardust-oxide requires:

  • Rust toolchain (latest nightly)
  • C compiler
  • Xen hypervisor and associated headers

The recommended way to install Rust is with rustup. The rust-toolchain file in the repository root will ensure the correct toolchain version is installed and used (therefore the toolchain and components selected during installation do not matter).

The required packages can be installed on Ubuntu with:

$ sudo apt install -y clang xen-system-amd64 libxen-dev

The host machine must be restarted to boot into the hypervisor with the original Debian/Ubuntu installation now running as the Domain 0 virtual machine.

Building

Executing cargo build in the repository root will build all three crates including the stardust kernel binary.

Running

Executing cargo run will call the run.sh script which generates the configuration for the Xen virtual machine then uses xl to start it.

Structure

This project is a Cargo workspace consisting of three crates.

stardust

Main crate that produces a kernel binary and contains the start_kernel entrypoint function.

xen

Contains safe interfaces to the xen-sys that could be used to write any guest Xen kernel.

xen-sys

Contains Rust bindings to the Xen C headers using bindgen.

stardust-oxide's People

Contributors

aldearle avatar fmckeogh avatar wardjaradat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

linecode

stardust-oxide's Issues

Re-enable background XenBus task

To merge #20 the background task was disabled and a single blocking request function is used which internally spins until the response is received.

request should instead be async and sleeps until the background task receives a response at which point it can be woken. This would require implementing the Waker behaviour for the scheduler so was avoided for now.

Improve console performance

Improves console write performance between 20x and 60x

Original implementation wrote text byte by byte and yielded until buffer was flushed before continuing.

New implementation fills buffer and issues send events.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.