Don't add ramoops parameters except addr and size

BUG=b:218891911
TEST=manual testing

Cq-Depend: chromium:3491214
Change-Id: If2b7e4856ac497f2c3b277ed02bd96c9e629aa2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3491603
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Paramjit Oberoi <psoberoi@google.com>
This commit is contained in:
Paramjit Oberoi 2022-02-25 12:25:17 -08:00 committed by Commit Bot
parent 4a3341ce48
commit 449dd6b709
2 changed files with 1 additions and 4 deletions

View file

@ -84,9 +84,6 @@ pub fn add_ramoops_kernel_cmdline(
let ramoops_opts = [
("mem_address", ramoops_region.address),
("mem_size", ramoops_region.size as u64),
("console_size", (ramoops_region.size / 4) as u64),
("record_size", (ramoops_region.size / 4) as u64),
("dump_oops", 1_u64),
];
for (name, val) in &ramoops_opts {
cmdline.insert_str(format!("ramoops.{}={:#x}", name, val))?;

View file

@ -2583,7 +2583,7 @@ fn run_vm(args: std::env::Args) -> std::result::Result<CommandStatus, ()> {
See --disk for valid options."),
Argument::value("rw-pmem-device", "PATH", "Path to a writable disk image."),
Argument::value("pmem-device", "PATH", "Path to a disk image."),
Argument::value("pstore", "path=PATH,size=SIZE", "Path to pstore buffer backend file follewed by size."),
Argument::value("pstore", "path=PATH,size=SIZE", "Path to pstore buffer backend file followed by size."),
Argument::value("host_ip",
"IP",
"IP address to assign to host tap interface."),