mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Add virtio legacy interface
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
495c93c2ad
commit
81898362b6
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user