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:
parent
f5ce75dbe8
commit
bc9158bd23
@ -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_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
|
||||
#[repr(C)]
|
||||
|
Loading…
Reference in New Issue
Block a user