Add virtio legacy interface

This commit is contained in:
Qingsong Chen
2024-11-21 09:23:10 +00:00
committed by Tate, Hongliang Tian
parent 495c93c2ad
commit 81898362b6
19 changed files with 844 additions and 191 deletions

View File

@ -34,7 +34,7 @@ pub struct VirtioVsockConfig {
impl VirtioVsockConfig {
pub(crate) fn new(transport: &dyn VirtioTransport) -> SafePtr<Self, IoMem> {
let memory = transport.device_config_memory();
let memory = transport.device_config_mem().unwrap();
SafePtr::new(memory, 0)
}
}