Skip to content

Commit cb287d2

Browse files
slpalyssarosenzweig
authored andcommitted
krun: remove limit for memory flag
Allow users to request an arbitary amount of RAM for the VM. Signed-off-by: Sergio Lopez <[email protected]>
1 parent 105999f commit cb287d2

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

crates/krun/src/bin/krun.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn main() -> Result<()> {
103103
}
104104
debug!(cpuset:?; "sched_setaffinity");
105105
sched_setaffinity(None, &cpuset).context("Failed to set CPU affinity")?;
106-
// Configure the number of vCPUs and the amount of RAM (max 16384 MiB).
106+
// Configure the number of vCPUs and the amount of RAM.
107107
//
108108
// SAFETY: Safe as no pointers involved.
109109
debug!(num_vcpus, ram_mib = u32::from(ram_mib); "krun_set_vm_config");

crates/krun/src/cli_options.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ pub fn options() -> OptionParser<Options> {
6565
[default: 80% of total RAM]",
6666
)
6767
.argument("MEM")
68-
.guard(
69-
|&mem| mem <= MiB::from(16384),
70-
"the maximum amount of RAM supported is 16384 MiB",
71-
)
7268
.optional();
7369
let passt_socket = long("passt-socket")
7470
.help("Instead of starting passt, connect to passt socket at PATH")

0 commit comments

Comments
 (0)