mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: modify or provide safety comments
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -74,6 +74,7 @@ pub struct X86_64UserRegs {
|
||||
pub gs: u64,
|
||||
}
|
||||
|
||||
// SAFETY: This is just a series of bytes
|
||||
unsafe impl ByteValued for X86_64UserRegs {}
|
||||
|
||||
#[repr(C)]
|
||||
@@ -169,6 +170,7 @@ pub struct CpuState {
|
||||
pub kernel_gs_base: u64,
|
||||
}
|
||||
|
||||
// SAFETY: This is just a series of bytes
|
||||
unsafe impl ByteValued for CpuState {}
|
||||
|
||||
pub enum NoteDescType {
|
||||
|
||||
Reference in New Issue
Block a user