Fupan Li
3c3823f2e4
dragonball: refactoring the pci system manager
...
In order to support the pci bus for virtio devices,
move the pci system manager from vfio manager to
device manager, thus it can be shared by both of
vfio and virtio pci devices.
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2025-09-14 09:08:26 +08:00
Fupan Li
7de6455742
dragonball: add the pci bus support for virtio
...
Add the pci bus support for virtio devices.
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2025-09-14 09:08:26 +08:00
Ruoqing He
1bbedb8def
dragonball: Fix clippy repr_packed_without_abi
...
Fix `repr_packed_without_abi` clippy warning as suggested by rust
1.85.1.
```console
error: item uses `packed` representation without ABI-qualification
--> dbs_pci/src/msi.rs:468:1
|
466 | #[repr(packed)]
| ------ `packed` representation set here
467 | #[derive(Clone, Copy, Default, PartialEq)]
468 | / pub struct MsiState {
469 | | msg_ctl: u16,
470 | | msg_addr_lo: u32,
471 | | msg_addr_hi: u32,
472 | | msg_data: u16,
473 | | mask_bits: u32,
474 | | }
| |_^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#repr_packed_without_abi
= note: `-D clippy::repr-packed-without-abi` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::repr_packed_without_abi)]`
```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-06-11 13:50:10 +00:00
Ruoqing He
16b45462a1
dragonball: Fix clippy manual_inspect
...
Manually fix `manual_inspect` clippy warning reported by rust 1.85.1.
```console
error: using `map_err` over `inspect_err`
--> dbs_virtio_devices/src/net.rs:753:52
|
753 | self.device_info.read_config(offset, data).map_err(|e| {
| ^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
= note: `-D clippy::manual-inspect` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
help: try
|
753 ~ self.device_info.read_config(offset, data).inspect_err(|e| {
754 ~ self.metrics.cfg_fails.inc();
|
```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-06-11 13:50:10 +00:00
Ruoqing He
e58bd52dd8
dragonball: Fix clippy precedence
...
Fix `precedence` clippy warning as suggested by rust 1.85.1.
```console
error: operator precedence can trip the unwary
--> dbs_interrupt/src/kvm/mod.rs:169:6
|
169 | (u64::from(type1) << 48 | u64::from(entry.type_) << 32) | u64::from(entry.gsi)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(u64::from(type1) << 48) | (u64::from(entry.type_) << 32)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
= note: `-D clippy::precedence` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::precedence)]`
```
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-06-11 13:50:10 +00:00
Ruoqing He
61f2b6a733
dragonball: Put local dependencies into workspace
...
Put local dependencies (mostly `dbs` crates) into workspace to avoid
complex path dependencies all over the workspace. Simplify path
dependency referencing.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-05-01 08:40:22 +00:00
stevenhorsman
97f7d49e8e
dragonball: Remove package lockfiles
...
Since #10780 the dbs crates are managed as members
of the dragonball workspace, so we can remove the lockfile
as it's now workspace managed now
Signed-off-by: stevenhorsman <steven@uk.ibm.com >
2025-04-30 09:14:07 +01:00
Ruoqing He
a8a096b20c
dragonball: Centralize RustVMM crates
...
Centralize all RustVMM crates to workspace.dependencies to prevent
having multiple versions of each RustVMM crate, which is error-prone and
inconsistent. With this setup, updates on RustVMM crates would be much
easier.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-02-19 21:20:30 +08:00
Ruoqing He
b129972e12
dragonball: Setup workspace
...
Setup workspace in dragonball, move `dbs` crates one level up to be
managed as members of dragonball workspace.
Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn >
2025-02-19 21:20:30 +08:00