Преглед на файлове

Only 1 byte for ISR rather than 4.

crosvm only gives it a 1 byte region in the BAR.
Andrew Walbran преди 2 години
родител
ревизия
d466e222d5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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_off_multiplier: u32,
     /// 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.
     config_space: Option<NonNull<u64>>,
     /// The size of the VirtIO device-specific configuration region in bytes.