[RFC PATCH 12/73] KVM: x86: Add NR_VCPU_SREG in SREG enum

Lai Jiangshan posted 73 patches 1 year, 9 months ago
[RFC PATCH 12/73] KVM: x86: Add NR_VCPU_SREG in SREG enum
Posted by Lai Jiangshan 1 year, 9 months ago
From: Lai Jiangshan <jiangshan.ljs@antgroup.com>

Add NR_VCPU_SREG to describe the size of the SREG enum, this allows for
the definition of the size of an array.

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
---
 arch/x86/include/asm/kvm_host.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 9223d34cb8e3..a90807f676b9 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -204,6 +204,7 @@ enum {
 	VCPU_SREG_GS,
 	VCPU_SREG_TR,
 	VCPU_SREG_LDTR,
+	NR_VCPU_SREG,
 };
 
 enum exit_fastpath_completion {
-- 
2.19.1.6.gb485710b