aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/kvm_host.h2
-rw-r--r--arch/arm/kvm/arm.c4
-rw-r--r--arch/arm/kvm/mmu.c5
3 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
index dfe98866a992..d1736a53b12d 100644
--- a/arch/arm/include/asm/kvm_host.h
+++ b/arch/arm/include/asm/kvm_host.h
@@ -26,7 +26,7 @@
26#include <asm/kvm_arch_timer.h> 26#include <asm/kvm_arch_timer.h>
27 27
28#define KVM_MAX_VCPUS CONFIG_KVM_ARM_MAX_VCPUS 28#define KVM_MAX_VCPUS CONFIG_KVM_ARM_MAX_VCPUS
29#define KVM_MEMORY_SLOTS 32 29#define KVM_USER_MEM_SLOTS 32
30#define KVM_PRIVATE_MEM_SLOTS 4 30#define KVM_PRIVATE_MEM_SLOTS 4
31#define KVM_COALESCED_MMIO_PAGE_OFFSET 1 31#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
32#define KVM_HAVE_ONE_REG 32#define KVM_HAVE_ONE_REG
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 9ada5549216d..5a936988eb24 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -232,7 +232,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
232 struct kvm_memory_slot *memslot, 232 struct kvm_memory_slot *memslot,
233 struct kvm_memory_slot old, 233 struct kvm_memory_slot old,
234 struct kvm_userspace_memory_region *mem, 234 struct kvm_userspace_memory_region *mem,
235 int user_alloc) 235 bool user_alloc)
236{ 236{
237 return 0; 237 return 0;
238} 238}
@@ -240,7 +240,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
240void kvm_arch_commit_memory_region(struct kvm *kvm, 240void kvm_arch_commit_memory_region(struct kvm *kvm,
241 struct kvm_userspace_memory_region *mem, 241 struct kvm_userspace_memory_region *mem,
242 struct kvm_memory_slot old, 242 struct kvm_memory_slot old,
243 int user_alloc) 243 bool user_alloc)
244{ 244{
245} 245}
246 246
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c
index f30e13163a96..99e07c7dd745 100644
--- a/arch/arm/kvm/mmu.c
+++ b/arch/arm/kvm/mmu.c
@@ -633,11 +633,6 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run)
633 } 633 }
634 634
635 memslot = gfn_to_memslot(vcpu->kvm, gfn); 635 memslot = gfn_to_memslot(vcpu->kvm, gfn);
636 if (!memslot->user_alloc) {
637 kvm_err("non user-alloc memslots not supported\n");
638 ret = -EINVAL;
639 goto out_unlock;
640 }
641 636
642 ret = user_mem_abort(vcpu, fault_ipa, gfn, memslot, fault_status); 637 ret = user_mem_abort(vcpu, fault_ipa, gfn, memslot, fault_status);
643 if (ret == 0) 638 if (ret == 0)