Giter Club home page Giter Club logo

johalun / rustkpi Goto Github PK

View Code? Open in Web Editor NEW
49.0 7.0 6.0 154.5 MB

Sources to the Master's thesis: Safe Kernel Programming with Rust

Makefile 0.07% Rust 24.26% C 14.51% C++ 46.30% CMake 0.48% Python 0.92% Shell 0.43% JavaScript 0.77% WebAssembly 1.38% Assembly 10.62% Dockerfile 0.04% HTML 0.05% XSLT 0.01% PHP 0.01% Roff 0.05% CSS 0.03% Inno Setup 0.01% Batchfile 0.02% Lex 0.01% Yacc 0.04%
rust kernel freebsd thesis master kth iflib rustkpi e1000 em

rustkpi's Introduction

Safe Kernel Programming with Rust

Master Thesis Project
Johannes Lundberg
KTH, Stockholm, Sweden
2017-2018

Introduction

TODO: Fix compile warnings and write introduction.

How To

Preliminary

  1. Clone this repo (to folder we will call $ROOT) on a FreeBSD 12 machine
  2. Install rustup (https://www.rust-lang.org/en-US/install.html)
  3. Set toolchain
    1. rustup toolchain link rustkpi $ROOT/rust/toolchains/x86_64-unknown-freebsd-1.25-nightly
    2. cd $ROOT
    3. rustup override set rustkpi
  4. Build RustKPI
    1. cd $ROOT/rust/kmod-rustkpi
    2. make
  5. Build Hello World module
    1. cd $ROOT/rust/kmod-helloworld
    2. make
  6. Test
    1. cd $ROOT/rust/
    2. sudo kldload kmod-rustkpi/rustkpi.ko
    3. sudo kldload kmod-helloworld/rustkpi-hello.ko
    4. dmesg

For the e1000 driver in kmod-e1000 the following devices are supported

  • bhyve with e1000 nic emulation
  • I218 (found in Intel Broadwell laptops)
  • I219-LM (found in Intel Skylake laptops)

kmod-e1000 is built the same way as described above.

rustkpi's People

Contributors

johalun 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rustkpi's Issues

A few questions about rustkpi-kmod

Hello,

I read your thesis and read whole code, but still can't figure out what the point of rustpki module if all of its content is present in other rustpki-hello and rustpki-e1000? On the diagram it looks like sub-modules using stuff from it, but I don't see where in code it's happening...

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.