|
@@ -270,7 +270,7 @@ struct kvm_memory_slot {
|
|
|
struct kvm_arch_memory_slot arch;
|
|
struct kvm_arch_memory_slot arch;
|
|
|
unsigned long userspace_addr;
|
|
unsigned long userspace_addr;
|
|
|
u32 flags;
|
|
u32 flags;
|
|
|
- int id;
|
|
|
|
|
|
|
+ short id;
|
|
|
bool user_alloc;
|
|
bool user_alloc;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -330,7 +330,7 @@ struct kvm_memslots {
|
|
|
u64 generation;
|
|
u64 generation;
|
|
|
struct kvm_memory_slot memslots[KVM_MEM_SLOTS_NUM];
|
|
struct kvm_memory_slot memslots[KVM_MEM_SLOTS_NUM];
|
|
|
/* The mapping table from slot id to the index in memslots[]. */
|
|
/* The mapping table from slot id to the index in memslots[]. */
|
|
|
- int id_to_index[KVM_MEM_SLOTS_NUM];
|
|
|
|
|
|
|
+ short id_to_index[KVM_MEM_SLOTS_NUM];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
struct kvm {
|
|
struct kvm {
|