瀏覽代碼

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.