CF corresponds to VMfailInvalid, ZF corresponds to VMfailValid. Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- x86/vmx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86/vmx.c b/x86/vmx.c index 411ed32..8228f48 100644 --- a/x86/vmx.c +++ b/x86/vmx.c @@ -161,10 +161,10 @@ print_vmentry_failure_info(struct vmentry_failure *failure) { if (failure->early) { printf("Early %s failure: ", failure->instr); switch (failure->flags & VMX_ENTRY_FLAGS) { - case X86_EFLAGS_ZF: + case X86_EFLAGS_CF: printf("current-VMCS pointer is not valid.\n"); break; - case X86_EFLAGS_CF: + case X86_EFLAGS_ZF: printf("error number is %ld. See Intel 30.4.\n", vmcs_read(VMX_INST_ERROR)); break; -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html