#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

#6 in #secure-sandbox


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