Skip to content

Commit ec065de

Browse files
authored
Fix CreateRamGpaRangeFlags to match host definition (#1700)
Even though there's only the one flag, it's offset by one bit. This allows these calls to succeed now.
1 parent 39144b0 commit ec065de

File tree

1 file changed

+4
-2
lines changed
  • vm/devices/get/get_protocol/src

1 file changed

+4
-2
lines changed

vm/devices/get/get_protocol/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,10 +1762,12 @@ impl BatteryStatusNotification {
17621762
#[bitfield(u64)]
17631763
#[derive(IntoBytes, FromBytes, Immutable, KnownLayout)]
17641764
pub struct CreateRamGpaRangeFlags {
1765-
/// writes are discarded
1765+
_reserved1: bool,
1766+
1767+
/// Writes are discarded
17661768
pub rom_mb: bool,
17671769

1768-
#[bits(63)]
1770+
#[bits(62)]
17691771
_reserved: u64,
17701772
}
17711773

0 commit comments

Comments
 (0)