|
@@ -975,8 +975,7 @@ int kvm_arch_create_memslot(struct kvm_memory_slot *slot, unsigned long npages)
|
|
int kvm_arch_prepare_memory_region(struct kvm *kvm,
|
|
int kvm_arch_prepare_memory_region(struct kvm *kvm,
|
|
struct kvm_memory_slot *memslot,
|
|
struct kvm_memory_slot *memslot,
|
|
struct kvm_memory_slot old,
|
|
struct kvm_memory_slot old,
|
|
- struct kvm_userspace_memory_region *mem,
|
|
|
|
- bool user_alloc)
|
|
|
|
|
|
+ struct kvm_userspace_memory_region *mem)
|
|
{
|
|
{
|
|
/* A few sanity checks. We can have exactly one memory slot which has
|
|
/* A few sanity checks. We can have exactly one memory slot which has
|
|
to start at guest virtual zero and which has to be located at a
|
|
to start at guest virtual zero and which has to be located at a
|
|
@@ -997,16 +996,12 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
|
|
if (mem->memory_size & 0xffffful)
|
|
if (mem->memory_size & 0xffffful)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!user_alloc)
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
void kvm_arch_commit_memory_region(struct kvm *kvm,
|
|
void kvm_arch_commit_memory_region(struct kvm *kvm,
|
|
struct kvm_userspace_memory_region *mem,
|
|
struct kvm_userspace_memory_region *mem,
|
|
- struct kvm_memory_slot old,
|
|
|
|
- bool user_alloc)
|
|
|
|
|
|
+ struct kvm_memory_slot old)
|
|
{
|
|
{
|
|
int rc;
|
|
int rc;
|
|
|
|
|