Re: [PATCH 1/4] KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE

2021-06-07 Thread Will Deacon
On Fri, Jun 04, 2021 at 03:01:17PM +0100, Mark Rutland wrote: > On Thu, Jun 03, 2021 at 07:33:44PM +0100, Will Deacon wrote: > > Ignore 'kvm-arm.mode=protected' when using VHE so that kvm_get_mode() > > only returns KVM_MODE_PROTECTED on systems where the feature is available. > > IIUC, since the

Re: [PATCH 1/4] KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE

2021-06-04 Thread Mark Rutland
On Thu, Jun 03, 2021 at 07:33:44PM +0100, Will Deacon wrote: > Ignore 'kvm-arm.mode=protected' when using VHE so that kvm_get_mode() > only returns KVM_MODE_PROTECTED on systems where the feature is available. IIUC, since the introduction of the idreg-override code, and the mutate_to_vhe stuff, pa

[PATCH 1/4] KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE

2021-06-03 Thread Will Deacon
Ignore 'kvm-arm.mode=protected' when using VHE so that kvm_get_mode() only returns KVM_MODE_PROTECTED on systems where the feature is available. Cc: David Brazdil Signed-off-by: Will Deacon --- Documentation/admin-guide/kernel-parameters.txt | 1 - arch/arm64/kernel/cpufeature.c