|
@@ -354,8 +354,12 @@ static inline void kvm_vcpu_put_sysregs(struct kvm_vcpu *vcpu) {}
|
|
|
struct kvm *kvm_arch_alloc_vm(void);
|
|
|
void kvm_arch_free_vm(struct kvm *kvm);
|
|
|
|
|
|
-static inline int kvm_arm_config_vm(struct kvm *kvm, unsigned long type)
|
|
|
+static inline int kvm_arm_setup_stage2(struct kvm *kvm, unsigned long type)
|
|
|
{
|
|
|
+ /*
|
|
|
+ * On 32bit ARM, VMs get a static 40bit IPA stage2 setup,
|
|
|
+ * so any non-zero value used as type is illegal.
|
|
|
+ */
|
|
|
if (type)
|
|
|
return -EINVAL;
|
|
|
return 0;
|