mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
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 <chao.p.peng@linux.intel.com> Message-Id: <20220816125322.1110439-2-chao.p.peng@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b075450868
commit
bdd1c37a31
2 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@
|
||||||
#define KVM_MAX_VCPU_IDS (KVM_MAX_VCPUS * KVM_VCPU_ID_RATIO)
|
#define KVM_MAX_VCPU_IDS (KVM_MAX_VCPUS * KVM_VCPU_ID_RATIO)
|
||||||
|
|
||||||
/* memory slots that are not exposed to userspace */
|
/* memory slots that are not exposed to userspace */
|
||||||
#define KVM_PRIVATE_MEM_SLOTS 3
|
#define KVM_INTERNAL_MEM_SLOTS 3
|
||||||
|
|
||||||
#define KVM_HALT_POLL_NS_DEFAULT 200000
|
#define KVM_HALT_POLL_NS_DEFAULT 200000
|
||||||
|
|
||||||
|
|
|
@ -656,12 +656,12 @@ struct kvm_irq_routing_table {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef KVM_PRIVATE_MEM_SLOTS
|
#ifndef KVM_INTERNAL_MEM_SLOTS
|
||||||
#define KVM_PRIVATE_MEM_SLOTS 0
|
#define KVM_INTERNAL_MEM_SLOTS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define KVM_MEM_SLOTS_NUM SHRT_MAX
|
#define KVM_MEM_SLOTS_NUM SHRT_MAX
|
||||||
#define KVM_USER_MEM_SLOTS (KVM_MEM_SLOTS_NUM - KVM_PRIVATE_MEM_SLOTS)
|
#define KVM_USER_MEM_SLOTS (KVM_MEM_SLOTS_NUM - KVM_INTERNAL_MEM_SLOTS)
|
||||||
|
|
||||||
#ifndef __KVM_VCPU_MULTIPLE_ADDRESS_SPACE
|
#ifndef __KVM_VCPU_MULTIPLE_ADDRESS_SPACE
|
||||||
static inline int kvm_arch_vcpu_memslots_id(struct kvm_vcpu *vcpu)
|
static inline int kvm_arch_vcpu_memslots_id(struct kvm_vcpu *vcpu)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue