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@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Andrew Cooper committed 2016-10-20 12:44:11 +01:00
1 parent 3cab0cbb35
commit 66fbe2c2cd
1 file changed
+8 -5
+8 -5
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.