[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/vmx: Reduce the verbosity of the vmentry failure error reporting
commit 66fbe2c2cd8b1dba492e8c2c8f604a3c1ce1fe73 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Thu Oct 13 12:12:20 2016 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Thu Oct 20 12:44:11 2016 +0100 x86/vmx: Reduce the verbosity of the vmentry failure error reporting Identify the affected vcpu at the start of the message. While tweaking this area, add extra newlines between cases. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <JBeulich@xxxxxxxx> Acked-by: Kevin Tian <kevin.tian@xxxxxxxxx> Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/arch/x86/hvm/vmx/vmx.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index b406989..db12cdb 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3096,19 +3096,20 @@ static void vmx_failed_vmentry(unsigned int exit_reason, unsigned long exit_qualification; struct vcpu *curr = current; - printk("Failed vm entry (exit reason %#x) ", exit_reason); + printk("%pv vmentry failure (reason %#x): ", curr, exit_reason); __vmread(EXIT_QUALIFICATION, &exit_qualification); switch ( failed_vmentry_reason ) { case EXIT_REASON_INVALID_GUEST_STATE: - printk("caused by invalid guest state (%ld).\n", exit_qualification); + printk("Invalid guest state (%lu)\n", exit_qualification); break; + case EXIT_REASON_MSR_LOADING: { unsigned long idx = exit_qualification - 1; const struct vmx_msr_entry *msr; - printk("caused by MSR loading (entry %lu).\n", idx); + printk("MSR loading (entry %lu)\n", idx); if ( idx >= (PAGE_SIZE / sizeof(*msr)) ) printk(" Entry out of range\n"); @@ -3121,13 +3122,15 @@ static void vmx_failed_vmentry(unsigned int exit_reason, } break; } + case EXIT_REASON_MCE_DURING_VMENTRY: - printk("caused by machine check.\n"); + printk("MCE\n"); HVMTRACE_0D(MCE); /* Already handled. */ break; + default: - printk("reason not known yet!"); + printk("Unknown\n"); break; } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |