[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/vmx: Print the problematic MSR if a vmentry fails
commit 3cab0cbb35bedf5594bde42290525774cb1ed957 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Thu Oct 13 11:46:58 2016 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Thu Oct 20 12:43:47 2016 +0100 x86/vmx: Print the problematic MSR if a vmentry fails Sample error looks like: (XEN) Failed vm entry (exit reason 0x80000022) caused by MSR loading (entry 13). (XEN) msr 0000068a val 1fff800000102af0 (mbz 0) (XEN) ************* VMCS Area ************** 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 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index b9102ce..b406989 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3104,8 +3104,23 @@ static void vmx_failed_vmentry(unsigned int exit_reason, printk("caused by invalid guest state (%ld).\n", exit_qualification); break; case EXIT_REASON_MSR_LOADING: - printk("caused by MSR entry %ld loading.\n", exit_qualification); + { + unsigned long idx = exit_qualification - 1; + const struct vmx_msr_entry *msr; + + printk("caused by MSR loading (entry %lu).\n", idx); + + if ( idx >= (PAGE_SIZE / sizeof(*msr)) ) + printk(" Entry out of range\n"); + else + { + msr = &curr->arch.hvm_vmx.msr_area[idx]; + + printk(" msr %08x val %016"PRIx64" (mbz %#x)\n", + msr->index, msr->data, msr->mbz); + } break; + } case EXIT_REASON_MCE_DURING_VMENTRY: printk("caused by machine check.\n"); HVMTRACE_0D(MCE); -- 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 |