Browse Source

Only 1 byte for ISR rather than 4.

crosvm only gives it a 1 byte region in the BAR.
Andrew Walbran 2 years ago
parent
commit
d466e222d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/transport/pci.rs

+ 1 - 1
src/transport/pci.rs

@@ -91,7 +91,7 @@ pub struct PciTransport {
     notify_region_size: usize,
     notify_region_size: usize,
     notify_off_multiplier: u32,
     notify_off_multiplier: u32,
     /// The ISR status register within some BAR.
     /// The ISR status register within some BAR.
-    isr_status: NonNull<Volatile<u32>>,
+    isr_status: NonNull<Volatile<u8>>,
     /// The VirtIO device-specific configuration within some BAR.
     /// The VirtIO device-specific configuration within some BAR.
     config_space: Option<NonNull<u64>>,
     config_space: Option<NonNull<u64>>,
     /// The size of the VirtIO device-specific configuration region in bytes.
     /// The size of the VirtIO device-specific configuration region in bytes.