1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-24 02:16:19 +04:00

Changed the queue size to only take one page.

This commit is contained in:
Stephen Marz 2020-03-12 13:36:18 -04:00
parent f5ce75dbe8
commit bc9158bd23

View File

@ -17,7 +17,10 @@ pub const VIRTIO_AVAIL_F_NO_INTERRUPT: u16 = 1;
pub const VIRTIO_USED_F_NO_NOTIFY: u16 = 1; pub const VIRTIO_USED_F_NO_NOTIFY: u16 = 1;
pub const VIRTIO_RING_SIZE: usize = 256; // 157 is the maximum ring size so that the structure
// takes up only 1 - 4KiB page. Kinda' an odd number,
// but let's go with it.
pub const VIRTIO_RING_SIZE: usize = 157;
// VirtIO structures // VirtIO structures
#[repr(C)] #[repr(C)]