Define an exit code that reflects failures in consistency checking during VMRUN. KVM sets bit 63 in EXIT CODE when it detects invalid guest state during VMRUN consistency checking. Signed-off-by: Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx> --- x86/svm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/x86/svm.h b/x86/svm.h index a0863b8..48a07e7 100644 --- a/x86/svm.h +++ b/x86/svm.h @@ -321,6 +321,7 @@ struct __attribute__ ((__packed__)) vmcb { #define SVM_EXIT_NPF 0x400 #define SVM_EXIT_ERR -1 +#define SVM_CONSISTENCY_ERR 1 << 31 #define SVM_CR0_SELECTIVE_MASK (X86_CR0_TS | X86_CR0_MP) -- 2.27.0