projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a677e70
)
KVM: arm/arm64: Enable KVM_CAP_NR_MEMSLOTS on arm/arm64
author
Linu Cherian
<linu.cherian@cavium.com>
Wed, 8 Mar 2017 06:08:33 +0000
(11:38 +0530)
committer
Marc Zyngier
<marc.zyngier@arm.com>
Thu, 9 Mar 2017 09:13:39 +0000
(09:13 +0000)
Return KVM_USER_MEM_SLOTS for userspace capability query on
NR_MEMSLOTS.
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Linu Cherian <linu.cherian@cavium.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/arm.c
patch
|
blob
|
history
diff --git
a/arch/arm/kvm/arm.c
b/arch/arm/kvm/arm.c
index c9a2103faeb9acf82f0c26164085506f14015822..96dba7cd8be7b4b6f29d9896e2d4515c477ca963 100644
(file)
--- a/
arch/arm/kvm/arm.c
+++ b/
arch/arm/kvm/arm.c
@@
-221,6
+221,9
@@
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
case KVM_CAP_MAX_VCPUS:
r = KVM_MAX_VCPUS;
break;
+ case KVM_CAP_NR_MEMSLOTS:
+ r = KVM_USER_MEM_SLOTS;
+ break;
case KVM_CAP_MSI_DEVID:
if (!kvm)
r = -EINVAL;