Message ID | 20210719160346.609914-2-tabba@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | KVM: arm64: Fixed features for protected VMs | expand |
On Mon, Jul 19, 2021 at 05:03:32PM +0100, Fuad Tabba wrote: > Add a function to check whether a VM is protected (under pKVM). > Since the creation of protected VMs isn't enabled yet, this is a > placeholder that always returns false. The intention is for this > to become a check for protected VMs in the future (see Will's RFC > [*]). > > No functional change intended. > > Signed-off-by: Fuad Tabba <tabba@google.com> > > [*] https://lore.kernel.org/kvmarm/20210603183347.1695-1-will@kernel.org/ You can make this a Link: tag. Anyway, I think it makes lots of sense to decouple this from the user-ABI series: Acked-by: Will Deacon <will@kernel.org> Will
Hi Will, On Thu, Aug 12, 2021 at 10:59 AM Will Deacon <will@kernel.org> wrote: > > On Mon, Jul 19, 2021 at 05:03:32PM +0100, Fuad Tabba wrote: > > Add a function to check whether a VM is protected (under pKVM). > > Since the creation of protected VMs isn't enabled yet, this is a > > placeholder that always returns false. The intention is for this > > to become a check for protected VMs in the future (see Will's RFC > > [*]). > > > > No functional change intended. > > > > Signed-off-by: Fuad Tabba <tabba@google.com> > > > > [*] https://lore.kernel.org/kvmarm/20210603183347.1695-1-will@kernel.org/ > > You can make this a Link: tag. Of course. Thanks! /fuad > Anyway, I think it makes lots of sense to decouple this from the user-ABI > series: > > Acked-by: Will Deacon <will@kernel.org> > > Will
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 41911585ae0c..347781f99b6a 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -771,6 +771,11 @@ void kvm_arch_free_vm(struct kvm *kvm); int kvm_arm_setup_stage2(struct kvm *kvm, unsigned long type); +static inline bool kvm_vm_is_protected(struct kvm *kvm) +{ + return false; +} + int kvm_arm_vcpu_finalize(struct kvm_vcpu *vcpu, int feature); bool kvm_arm_vcpu_is_finalized(struct kvm_vcpu *vcpu);
Add a function to check whether a VM is protected (under pKVM). Since the creation of protected VMs isn't enabled yet, this is a placeholder that always returns false. The intention is for this to become a check for protected VMs in the future (see Will's RFC [*]). No functional change intended. Signed-off-by: Fuad Tabba <tabba@google.com> [*] https://lore.kernel.org/kvmarm/20210603183347.1695-1-will@kernel.org/ --- arch/arm64/include/asm/kvm_host.h | 5 +++++ 1 file changed, 5 insertions(+)