[PATCH v7 1/5] KVM: arm64: Rename symbols to reflect whether CMO may be used
Catalin Marinas
catalin.marinas at arm.com
Wed Jun 18 07:28:46 PDT 2025
On Wed, Jun 18, 2025 at 06:55:37AM +0000, ankita at nvidia.com wrote:
> From: Ankit Agrawal <ankita at nvidia.com>
>
> Currently, the kvm_is_device_pfn() detects if the memory is kernel
> mapped. It thus implies whether KVM can use Cache Maintenance
> Operations (CMOs) on that PFN. Rename the function to reflect this.
>
> Additionally, the "device" variable is effectively trying to setup the S2
> to prevent CMOs. Calling it 'disable_cmo' would make this code clearer.
I'm not sure CMOs is the only reason. Another is to prevent the guest
from mapping device memory as something other than Device with
possible implications for external aborts.
--
Catalin
More information about the linux-arm-kernel
mailing list