[PATCH v4 5/9] KVM: arm64: Allocate memory mapped at hyp for host sve state in pKVM

Mark Brown broonie at kernel.org
Mon Jun 3 07:50:36 PDT 2024


On Mon, Jun 03, 2024 at 01:28:47PM +0100, Fuad Tabba wrote:

>  {
>  	if (system_supports_sve()) {
>  		kvm_sve_max_vl = sve_max_virtualisable_vl();
> +		kvm_host_sve_max_vl = sve_max_vl();
> +		kvm_nvhe_sym(kvm_host_sve_max_vl) = kvm_host_sve_max_vl;

As discussed on the prior version this either needs to be the maximum
available physical VL on any individual PE or the hypervisor needs to
use this VL explicitly when saving/restoring host state.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240603/402bd05b/attachment.sig>


More information about the linux-arm-kernel mailing list