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

From: Lai Jiangshan
Date: Mon Feb 26 2024 - 09:40:08 EST


From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Signed-off-by: Hou Wenlong <houwenlong.hwl@xxxxxxxxxxxx>
---
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