Skip to content

Commit bdd1c37

Browse files
chao-pbonzini
authored andcommitted
KVM: Rename KVM_PRIVATE_MEM_SLOTS to KVM_INTERNAL_MEM_SLOTS
KVM_INTERNAL_MEM_SLOTS better reflects the fact those slots are KVM internally used (invisible to userspace) and avoids confusion to future private slots that can have different meaning. Signed-off-by: Chao Peng <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent b075450 commit bdd1c37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#define KVM_MAX_VCPU_IDS (KVM_MAX_VCPUS * KVM_VCPU_ID_RATIO)
5454

5555
/* memory slots that are not exposed to userspace */
56-
#define KVM_PRIVATE_MEM_SLOTS 3
56+
#define KVM_INTERNAL_MEM_SLOTS 3
5757

5858
#define KVM_HALT_POLL_NS_DEFAULT 200000
5959

include/linux/kvm_host.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,12 @@ struct kvm_irq_routing_table {
656656
};
657657
#endif
658658

659-
#ifndef KVM_PRIVATE_MEM_SLOTS
660-
#define KVM_PRIVATE_MEM_SLOTS 0
659+
#ifndef KVM_INTERNAL_MEM_SLOTS
660+
#define KVM_INTERNAL_MEM_SLOTS 0
661661
#endif
662662

663663
#define KVM_MEM_SLOTS_NUM SHRT_MAX
664-
#define KVM_USER_MEM_SLOTS (KVM_MEM_SLOTS_NUM - KVM_PRIVATE_MEM_SLOTS)
664+
#define KVM_USER_MEM_SLOTS (KVM_MEM_SLOTS_NUM - KVM_INTERNAL_MEM_SLOTS)
665665

666666
#ifndef __KVM_VCPU_MULTIPLE_ADDRESS_SPACE
667667
static inline int kvm_arch_vcpu_memslots_id(struct kvm_vcpu *vcpu)

0 commit comments

Comments
 (0)