Re: [PATCH v4 08/19] arm64: kvm: Enable access to TRBE support for host

2021-03-16 Thread Mathieu Poirier
On Thu, Feb 25, 2021 at 07:35:32PM +, Suzuki K Poulose wrote: > For a nvhe host, the EL2 must allow the EL1&0 translation > regime for TraceBuffer (MDCR_EL2.E2TB == 0b11). This must > be saved/restored over a trip to the guest. Also, before > entering the guest, we must flush any trace data if

[PATCH v4 08/19] arm64: kvm: Enable access to TRBE support for host

2021-02-25 Thread Suzuki K Poulose
For a nvhe host, the EL2 must allow the EL1&0 translation regime for TraceBuffer (MDCR_EL2.E2TB == 0b11). This must be saved/restored over a trip to the guest. Also, before entering the guest, we must flush any trace data if the TRBE was enabled. And we must prohibit the generation of trace while w