@@ -13,16 +13,6 @@ pub use axvmconfig::{
1313
1414use crate :: vhal:: cpu:: CpuId ;
1515
16- /// A part of `AxVMConfig`, which represents a `VCpu`.
17- #[ derive( Clone , Copy , Debug , Default ) ]
18- pub struct AxVCpuConfig {
19- // pub arch_config: AxArchVCpuConfig,
20- /// The entry address in GPA for the Bootstrap Processor (BSP).
21- pub bsp_entry : GuestPhysAddr ,
22- /// The entry address in GPA for the Application Processor (AP).
23- pub ap_entry : GuestPhysAddr ,
24- }
25-
2616#[ derive( Debug , Default , Clone ) ]
2717pub struct VMImageConfig {
2818 pub gpa : Option < GuestPhysAddr > ,
@@ -44,11 +34,11 @@ pub struct VMImagesConfig {
4434
4535#[ derive( Debug , Clone ) ]
4636pub enum MemoryKind {
47- /// Use identical memory regions
37+ /// Use identical memory regions, i.e., HPA == GPA
4838 Identical { size : usize } ,
49- /// Use memory regions mapped from host physical address
50- Passthrough { hpa : HostPhysAddr , size : usize } ,
51- /// Use fixed memory regions
39+ /// Use host reserved memory regions, i.e., HPA == GPA
40+ Reserved { hpa : HostPhysAddr , size : usize } ,
41+ /// Use fixed address memory regions, i.e., HPA != GPA
5242 Vmem { gpa : GuestPhysAddr , size : usize } ,
5343}
5444
0 commit comments