Files
stevenhorsman f9c95a279e dragonball: Remove unnecessary unsafe blocks in cpuid
Rust 1.94 now warns about unnecessary unsafe blocks around
__get_cpuid_max(), __cpuid_count(), and host_cpuid() calls.
Remove the unsafe blocks as they are no longer needed.

This fixes the following clippy warnings in dbs-arch:
- warning: unnecessary `unsafe` block at brand_string.rs:106
- warning: unnecessary `unsafe` block at brand_string.rs:114
- warning: unnecessary `unsafe` block at common.rs:28
- warning: unnecessary `unsafe` block at common.rs:36

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
Generated-By: IBM Bob
2026-06-01 17:07:16 +01:00
..
2025-02-19 21:20:30 +08:00
2025-02-19 21:20:30 +08:00
2025-02-19 21:20:30 +08:00

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. Also, we have provided x86_64 CPUID support in this crate, for more details you could look at this document

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 Structures 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.