diff options
author | Avi Kivity <avi@redhat.com> | 2010-06-21 11:48:05 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 10:47:01 +0300 |
commit | b74a07beed0e64bfba413dcb70dd6749c57f43dc (patch) | |
tree | 7a04532866b919718d41bbb75a21966aa4e48904 /arch | |
parent | a1f4d39500ad8ed61825eff061debff42386ab5b (diff) | |
download | linux-stable-b74a07beed0e64bfba413dcb70dd6749c57f43dc.tar.gz linux-stable-b74a07beed0e64bfba413dcb70dd6749c57f43dc.tar.bz2 linux-stable-b74a07beed0e64bfba413dcb70dd6749c57f43dc.zip |
KVM: Remove kernel-allocated memory regions
Equivalent (and better) functionality is provided by user-allocated memory
regions.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/x86.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 62596d373a49..9be6e4e5e8ee 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2967,22 +2967,6 @@ long kvm_arch_vm_ioctl(struct file *filp, goto out; break; } - case KVM_SET_MEMORY_REGION: { - struct kvm_memory_region kvm_mem; - struct kvm_userspace_memory_region kvm_userspace_mem; - - r = -EFAULT; - if (copy_from_user(&kvm_mem, argp, sizeof kvm_mem)) - goto out; - kvm_userspace_mem.slot = kvm_mem.slot; - kvm_userspace_mem.flags = kvm_mem.flags; - kvm_userspace_mem.guest_phys_addr = kvm_mem.guest_phys_addr; - kvm_userspace_mem.memory_size = kvm_mem.memory_size; - r = kvm_vm_ioctl_set_memory_region(kvm, &kvm_userspace_mem, 0); - if (r) - goto out; - break; - } case KVM_SET_NR_MMU_PAGES: r = kvm_vm_ioctl_set_nr_mmu_pages(kvm, arg); if (r) |