mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Use layout constant for kernel command line
Remove the unnecessary field on CmdlineConfig and switch to using the common offset. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
1bc47507b7
commit
a0455167d0
+3
-3
@@ -704,7 +704,7 @@ impl Vm {
|
||||
|
||||
linux_loader::loader::load_cmdline(
|
||||
mem.deref(),
|
||||
self.config.cmdline.offset,
|
||||
arch::layout::CMDLINE_START,
|
||||
&cmdline_cstring,
|
||||
)
|
||||
.map_err(|_| Error::CmdLine)?;
|
||||
@@ -715,7 +715,7 @@ impl Vm {
|
||||
Some(hdr) => {
|
||||
arch::configure_system(
|
||||
&mem,
|
||||
self.config.cmdline.offset,
|
||||
arch::layout::CMDLINE_START,
|
||||
cmdline_cstring.to_bytes().len() + 1,
|
||||
vcpu_count,
|
||||
Some(hdr),
|
||||
@@ -735,7 +735,7 @@ impl Vm {
|
||||
None => {
|
||||
arch::configure_system(
|
||||
&mem,
|
||||
self.config.cmdline.offset,
|
||||
arch::layout::CMDLINE_START,
|
||||
cmdline_cstring.to_bytes().len() + 1,
|
||||
vcpu_count,
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user