#arm64 #arch #x86 #dragonball #secure-sandbox

dbs-arch

A collection of CPU architecture specific constants and utilities

5 releases

0.2.3 Mar 2, 2023
0.2.2 Feb 10, 2023
0.2.1 Nov 10, 2022
0.2.0 Oct 24, 2022
0.1.0 Apr 25, 2022

#1324 in Hardware support

Download history 1/week @ 2023-12-11 8/week @ 2023-12-18 3/week @ 2023-12-25 12/week @ 2024-01-01 11/week @ 2024-01-29 6/week @ 2024-02-12 86/week @ 2024-02-19 67/week @ 2024-02-26 39/week @ 2024-03-04 53/week @ 2024-03-11 20/week @ 2024-03-18 15/week @ 2024-03-25

133 downloads per month
Used in 4 crates (2 directly)

Apache-2.0 AND BSD-3-Clause

195KB
4K SLoC

dbs-arch

Design

The dbs-arch crate is a collection of CPU architecture specific constants and utilities to hide CPU architecture details away from the Dragonball Sandbox or other VMMs.

Supported Architectures

  • AMD64 (x86_64)
  • ARM64 (aarch64)

Submodule List

This repository contains the following submodules:

Name Arch Description
x86_64::cpuid x86_64 Facilities to process CPUID information.
x86_64::msr x86_64 Constants and functions for Model Specific Registers
aarch64::gic aarch64 Structs to manage GICv2/GICv3/ITS devices for ARM64
aarch64::regs aarch64 Constants and functions to configure and manage CPU registers

Acknowledgement

Part of the code is derived from the Firecracker project.

License

This project is licensed under Apache License, Version 2.0.

Dependencies

~3MB
~64K SLoC