diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-28 17:24:03 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-04-16 15:39:08 +0200 |
commit | c110ae578ca0a10064dfbda3d786d6a733b9fe69 (patch) | |
tree | b3c672dffd74fadaf513a2151bc839773b07a470 /arch/x86/kvm/x86.c | |
parent | KVM: x86: Inject #GP if guest attempts to set unsupported EFER bits (diff) | |
download | linux-c110ae578ca0a10064dfbda3d786d6a733b9fe69.tar.xz linux-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/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 38440316a806..6c27d224f744 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3093,9 +3093,6 @@ 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_PV_MMU: /* obsolete */ r = 0; break; |