Re: Problems about Stage-2 translation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wang,

On Mon, 18 Oct 2021 20:01:23 +0100,
Chenxu Wang <irakatz51@xxxxxxxxx> wrote:
> 
> Hi Marc,
> 
> Sorry, but I could not find the bottom posting mode in Gmail.

Easy. You click on the '...' button at the bottom left of the reply
window, scroll down and place your cursor at the right location.

> Also, thanks for your reply, I continue to discover how the Stage-2
> translation works in KVM.
> But, when I read the HCR_EL2 register in Host  (it is v5.3.0) , its
> value is 0x4_8800_0000. So
> (1) I am in VHE mode.
> (2) The Stage-2 translation is disabled.
> 
> I am sure that I have run a Non-Secure VM with QEMU, so is it correct
> that the S-2 translation is disabled in VHE mode? If so, how it
> handles the memory management for Guest?

By switching stage-2 on when required. HCR_EL2 isn't a static setting,
and gets updated at run-time. Also, HCR_EL2.VM means exactly nothing
when HCR_EL2.{E2H,TGE}={1,1}.

	M.

-- 
Without deviation from the norm, progress is not possible.
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm



[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux