aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/feature-removal-schedule.txt10
-rw-r--r--Documentation/kvm/api.txt24
-rw-r--r--arch/x86/kvm/x86.c16
3 files changed, 1 insertions, 49 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index ad1e90dd2780..123ec0e23738 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -548,16 +548,6 @@ Who: John Stultz <johnstul@us.ibm.com>
548 548
549---------------------------- 549----------------------------
550 550
551What: KVM kernel-allocated memory slots
552When: July 2010
553Why: Since 2.6.25, kvm supports user-allocated memory slots, which are
554 much more flexible than kernel-allocated slots. All current userspace
555 supports the newer interface and this code can be removed with no
556 impact.
557Who: Avi Kivity <avi@redhat.com>
558
559----------------------------
560
561What: KVM paravirt mmu host support 551What: KVM paravirt mmu host support
562When: January 2011 552When: January 2011
563Why: The paravirt mmu host support is slower than non-paravirt mmu, both 553Why: The paravirt mmu host support is slower than non-paravirt mmu, both
diff --git a/Documentation/kvm/api.txt b/Documentation/kvm/api.txt
index 7e415943a11e..d9b00f15fbe6 100644
--- a/Documentation/kvm/api.txt
+++ b/Documentation/kvm/api.txt
@@ -160,29 +160,7 @@ Type: vm ioctl
160Parameters: struct kvm_memory_region (in) 160Parameters: struct kvm_memory_region (in)
161Returns: 0 on success, -1 on error 161Returns: 0 on success, -1 on error
162 162
163struct kvm_memory_region { 163This ioctl is obsolete and has been removed.
164 __u32 slot;
165 __u32 flags;
166 __u64 guest_phys_addr;
167 __u64 memory_size; /* bytes */
168};
169
170/* for kvm_memory_region::flags */
171#define KVM_MEM_LOG_DIRTY_PAGES 1UL
172
173This ioctl allows the user to create or modify a guest physical memory
174slot. When changing an existing slot, it may be moved in the guest
175physical memory space, or its flags may be modified. It may not be
176resized. Slots may not overlap.
177
178The flags field supports just one flag, KVM_MEM_LOG_DIRTY_PAGES, which
179instructs kvm to keep track of writes to memory within the slot. See
180the KVM_GET_DIRTY_LOG ioctl.
181
182It is recommended to use the KVM_SET_USER_MEMORY_REGION ioctl instead
183of this API, if available. This newer API allows placing guest memory
184at specified locations in the host address space, yielding better
185control and easy access.
186 164
1874.6 KVM_CREATE_VCPU 1654.6 KVM_CREATE_VCPU
188 166
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,
2967 goto out; 2967 goto out;
2968 break; 2968 break;
2969 } 2969 }
2970 case KVM_SET_MEMORY_REGION: {
2971 struct kvm_memory_region kvm_mem;
2972 struct kvm_userspace_memory_region kvm_userspace_mem;
2973
2974 r = -EFAULT;
2975 if (copy_from_user(&kvm_mem, argp, sizeof kvm_mem))
2976 goto out;
2977 kvm_userspace_mem.slot = kvm_mem.slot;
2978 kvm_userspace_mem.flags = kvm_mem.flags;
2979 kvm_userspace_mem.guest_phys_addr = kvm_mem.guest_phys_addr;
2980 kvm_userspace_mem.memory_size = kvm_mem.memory_size;
2981 r = kvm_vm_ioctl_set_memory_region(kvm, &kvm_userspace_mem, 0);
2982 if (r)
2983 goto out;
2984 break;
2985 }
2986 case KVM_SET_NR_MMU_PAGES: 2970 case KVM_SET_NR_MMU_PAGES:
2987 r = kvm_vm_ioctl_set_nr_mmu_pages(kvm, arg); 2971 r = kvm_vm_ioctl_set_nr_mmu_pages(kvm, arg);
2988 if (r) 2972 if (r)