[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 2/2] 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> --- CC: Jun Nakajima <jun.nakajima@xxxxxxxxx> CC: Kevin Tian <kevin.tian@xxxxxxxxx> v2: * %lu --- 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; } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |