소스 검색

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.