summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-03-28 17:24:03 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-04-16 15:39:08 +0200
commitc110ae578ca0a10064dfbda3d786d6a733b9fe69 (patch)
treeb3c672dffd74fadaf513a2151bc839773b07a470 /arch/powerpc
parent0a62956312e9dcd0ce5c59be4f0a8d8292a62402 (diff)
downloadlinux-stable-c110ae578ca0a10064dfbda3d786d6a733b9fe69.tar.gz
linux-stable-c110ae578ca0a10064dfbda3d786d6a733b9fe69.tar.bz2
linux-stable-c110ae578ca0a10064dfbda3d786d6a733b9fe69.zip
kvm: move KVM_CAP_NR_MEMSLOTS to common code
All architectures except MIPS were defining it in the same way, and memory slots are handled entirely by common code so there is no point in keeping the definition per-architecture. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/powerpc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 8885377ec3e0..92910b7c5bcc 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -644,9 +644,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
else
r = num_online_cpus();
break;
- case KVM_CAP_NR_MEMSLOTS:
- r = KVM_USER_MEM_SLOTS;
- break;
case KVM_CAP_MAX_VCPUS:
r = KVM_MAX_VCPUS;
break;