KVM: Remove user_alloc from struct kvm_memory_slot
authorTakuya Yoshikawa <[email protected]>
Thu, 7 Feb 2013 09:55:57 +0000 (18:55 +0900)
committerGleb Natapov <[email protected]>
Mon, 11 Feb 2013 09:52:00 +0000 (11:52 +0200)
commit7a905b1485adf863607b5fc9e32a3fa3838bcc23
tree8f61239e5d74bd58e9972bdc4da27e01fd725419
parent257090f70233084488f7b3ebe99be8c159a23281
KVM: Remove user_alloc from struct kvm_memory_slot

This field was needed to differentiate memory slots created by the new
API, KVM_SET_USER_MEMORY_REGION, from those by the old equivalent,
KVM_SET_MEMORY_REGION, whose support was dropped long before:

  commit b74a07beed0e64bfba413dcb70dd6749c57f43dc
  KVM: Remove kernel-allocated memory regions

Although we also have private memory slots to which KVM allocates
memory with vm_mmap(), !user_alloc slots in other words, the slot id
should be enough for differentiating them.

Note: corresponding function parameters will be removed later.

Reviewed-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Takuya Yoshikawa <[email protected]>
Signed-off-by: Gleb Natapov <[email protected]>
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c