virtio-gpud: indicate the reservation of 0 resource_id

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh
2023-07-05 17:50:51 +10:00
parent 320fedbd76
commit 7e83bd9adf
+1 -1
View File
@@ -15,7 +15,7 @@ use virtio_core::{
use crate::*;
static RESOURCE_ALLOC: AtomicU32 = AtomicU32::new(1);
static RESOURCE_ALLOC: AtomicU32 = AtomicU32::new(1); // XXX: 0 is reserved for whatever that takes `resource_id`.
pub struct Display<'a> {
control_queue: Arc<Queue<'a>>,