mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Avoid generic_const_exprs
feature
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b08e655a76
commit
0d36375dfa
@ -2,7 +2,7 @@
|
||||
|
||||
use aster_util::safe_ptr::SafePtr;
|
||||
use bitflags::bitflags;
|
||||
use ostd::{io_mem::IoMem, Pod};
|
||||
use ostd::{io_mem::IoMem, mm::PodOnce, Pod};
|
||||
|
||||
use crate::transport::VirtioTransport;
|
||||
|
||||
@ -32,6 +32,8 @@ pub struct VirtioVsockConfig {
|
||||
pub guest_cid_high: u32,
|
||||
}
|
||||
|
||||
impl PodOnce for VirtioVsockConfig {}
|
||||
|
||||
impl VirtioVsockConfig {
|
||||
pub(crate) fn new(transport: &dyn VirtioTransport) -> SafePtr<Self, IoMem> {
|
||||
let memory = transport.device_config_mem().unwrap();
|
||||
|
Reference in New Issue
Block a user