File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -171,26 +171,13 @@ impl<H: AxVCpuHal> Aarch64VCpu<H> {
171171 // - 4KiB granule (TG0)
172172 // - 39-bit address space (T0_SZ)
173173 // - start at level 1 (SL0)
174- // self.guest_system_regs.vtcr_el2 = (VTCR_EL2::PS::PA_40B_1TB
175- // + VTCR_EL2::TG0::Granule4KB
176- // + VTCR_EL2::SH0::Inner
177- // + VTCR_EL2::ORGN0::NormalWBRAWA
178- // + VTCR_EL2::IRGN0::NormalWBRAWA
179- // + VTCR_EL2::SL0.val(0b01)
180- // + VTCR_EL2::T0SZ.val(64 - 39))
181- // .into();
182-
183- // use 4 level ept paging
184- // - 4KiB granule (TG0)
185- // - 48-bit address space (T0_SZ)
186- // - start at level 0 (SL0)
187- self . guest_system_regs . vtcr_el2 = ( VTCR_EL2 :: PS :: PA_48B_256TB
174+ self . guest_system_regs . vtcr_el2 = ( VTCR_EL2 :: PS :: PA_40B_1TB
188175 + VTCR_EL2 :: TG0 :: Granule4KB
189176 + VTCR_EL2 :: SH0 :: Inner
190177 + VTCR_EL2 :: ORGN0 :: NormalWBRAWA
191178 + VTCR_EL2 :: IRGN0 :: NormalWBRAWA
192- + VTCR_EL2 :: SL0 . val ( 0b10 ) // 0b10 means start at level 0
193- + VTCR_EL2 :: T0SZ . val ( 64 - 48 ) )
179+ + VTCR_EL2 :: SL0 . val ( 0b01 )
180+ + VTCR_EL2 :: T0SZ . val ( 64 - 39 ) )
194181 . into ( ) ;
195182
196183 let mut hcr_el2 = HCR_EL2 :: VM :: Enable
You can’t perform that action at this time.
0 commit comments