# Re: \[PATCH v4 05/19\] kvm: arm64: Disable guest access to trace filter controls

- From: Marc Zyngier \<maz@kernel.org\>
- Date: 2021-03-23 09:17:51 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/03/6311900
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/02/6279268/t.md

```text
Hi Suzuki,

On 2021-03-22 22:24, Suzuki K Poulose wrote:
> Hi Marc,
>
> On 25/02/2021 19:35, Suzuki K Poulose wrote:
>> Disable guest access to the Trace Filter control registers.
>> We do not advertise the Trace filter feature to the guest
>> (ID_AA64DFR0_EL1: TRACE_FILT is cleared) already, but the guest
>> can still access the TRFCR_EL1 unless we trap it.
>>
>> This will also make sure that the guest cannot fiddle with
>> the filtering controls set by a nvhe host.
>>
>> Cc: Marc Zyngier <maz@kernel.org>
>> Cc: Will Deacon <will@kernel.org>
>> Cc: Mark Rutland <mark.rutland@arm.com>
>> Cc: Catalin Marinas <catalin.marinas@arm.com>
>> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
>
> We have already have the v8.4 self hosted tracing support in 5.12-rcX.
> Do you think you can pick this up for this 5.12 ?

Sure, no problem. Shall I pick patch #3 at the same time?

Thanks,

        M.
-- 
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
