Skip to content

Commit 9ae5b2c

Browse files
committed
draft: feat(balloon): add balloon device driver
TODO: explanatory commit message
1 parent 858b1e6 commit 9ae5b2c

File tree

17 files changed

+1615
-13
lines changed

17 files changed

+1615
-13
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ trace = []
6969
udp = ["smoltcp", "smoltcp/socket-udp"]
7070
vga = []
7171
vsock = ["pci"]
72+
balloon = ["pci"]
7273
allocation-stats = ["talc/counters"]
7374

7475
[lints.rust]

src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ pub(crate) const USER_STACK_SIZE: usize = 0x0010_0000;
77
#[cfg(any(
88
all(any(feature = "tcp", feature = "udp"), not(feature = "rtl8139")),
99
feature = "fuse",
10-
feature = "vsock"
10+
feature = "vsock",
11+
feature = "balloon"
1112
))]
1213
pub(crate) const VIRTIO_MAX_QUEUE_SIZE: u16 = if cfg!(feature = "pci") { 2048 } else { 1024 };
1314

0 commit comments

Comments
 (0)