Skip to content

Commit 4db08d9

Browse files
Alexandra Iordacheandreeaflorescu
authored andcommitted
rework BootParams struct for extensibility
* boot parameters and corresponding addresses are separate fields in the struct, instead of packed in a tuple * sections and modules (for PVH boot) can be added one at a time and don't need to be of the same type Signed-off-by: Alexandra Iordache <aghecen@amazon.com>
1 parent 627bce6 commit 4db08d9

File tree

6 files changed

+501
-31
lines changed

6 files changed

+501
-31
lines changed

coverage_config_aarch64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 77.2,
2+
"coverage_score": 79.9,
33
"exclude_path": "",
44
"crate_features": ""
55
}

coverage_config_x86_64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 77.8,
2+
"coverage_score": 78.5,
33
"exclude_path": "",
44
"crate_features": ""
55
}

src/configurator/aarch64/fdt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl BootConfigurator for FdtBootConfigurator {
5959
{
6060
// The VMM has filled an FDT and passed it as a `ByteValued` object.
6161
guest_memory
62-
.write_slice(params.header.0.as_slice(), params.header.1)
62+
.write_slice(params.header.as_slice(), params.header_start)
6363
.map_err(|_| Error::WriteFDTToMemory.into())
6464
}
6565
}

0 commit comments

Comments
 (0)