From: Tao Cui <[email protected]>

Sync the LoongArch PV TLB flush definitions from the kernel:
KVM_LOONGARCH_VM_FEAT_PV_TLB_FLUSH VM feature and KVM_FEATURE_PV_TLB_FLUSH
guest feature.

Signed-off-by: Tao Cui <[email protected]>
---
 linux-headers/asm-loongarch/kvm.h      | 1 +
 linux-headers/asm-loongarch/kvm_para.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/linux-headers/asm-loongarch/kvm.h 
b/linux-headers/asm-loongarch/kvm.h
index cd0b5c11ca..e4cd4bbf89 100644
--- a/linux-headers/asm-loongarch/kvm.h
+++ b/linux-headers/asm-loongarch/kvm.h
@@ -106,6 +106,7 @@ struct kvm_fpu {
 #define  KVM_LOONGARCH_VM_FEAT_PTW             8
 #define  KVM_LOONGARCH_VM_FEAT_MSGINT          9
 #define  KVM_LOONGARCH_VM_FEAT_PV_PREEMPT      10
+#define  KVM_LOONGARCH_VM_FEAT_PV_TLB_FLUSH    11
 
 /* Device Control API on vcpu fd */
 #define KVM_LOONGARCH_VCPU_CPUCFG      0
diff --git a/linux-headers/asm-loongarch/kvm_para.h 
b/linux-headers/asm-loongarch/kvm_para.h
index 3fd87a096b..98494784ed 100644
--- a/linux-headers/asm-loongarch/kvm_para.h
+++ b/linux-headers/asm-loongarch/kvm_para.h
@@ -16,6 +16,7 @@
 #define  KVM_FEATURE_IPI               1
 #define  KVM_FEATURE_STEAL_TIME                2
 #define  KVM_FEATURE_PREEMPT           3
+#define  KVM_FEATURE_PV_TLB_FLUSH      4
 /* BIT 24 - 31 are features configurable by user space vmm */
 #define  KVM_FEATURE_VIRT_EXTIOI       24
 #define  KVM_FEATURE_USER_HCALL                25
-- 
2.43.0


Reply via email to