From: "Jan Beulich" Subject: Re: [PATCH] x86/vmx: Improvements to vmentry failure handling Date: Thu, 29 Oct 2015 07:46:03 -0600 Message-ID: <5632312B02000078000AFE45@prv-mh.provo.novell.com> References: <1445622757-850-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1445622757-850-1-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Kevin Tian , Jun Nakajima , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 23.10.15 at 19:52, wrote: > --- a/xen/arch/x86/hvm/vmx/vmcs.c > +++ b/xen/arch/x86/hvm/vmx/vmcs.c > @@ -1588,21 +1588,14 @@ void vmx_destroy_vmcs(struct vcpu *v) > free_xenheap_page(v->arch.hvm_vmx.msr_bitmap); > } > > -void vm_launch_fail(void) > -{ > - unsigned long error; > - > - __vmread(VM_INSTRUCTION_ERROR, &error); > - printk(" error code %lx\n", error); > - domain_crash_synchronous(); > -} > - > -void vm_resume_fail(void) > +void vmx_vmentry_failure(void) > { > + struct vcpu *curr = current; > unsigned long error; > > __vmread(VM_INSTRUCTION_ERROR, &error); > - printk(" error code %lx\n", error); > + printk(XENLOG_ERR "VM%s error: %#lx\n", > + curr->arch.hvm_vmx.launched ? "RESUME" : "LAUNCH", error); > domain_crash_synchronous(); > } Imo this should be gprintk() both for log level purposes (subject to a follow-up discussion on XSA-152 which I'll kick off in a subsequent mail) and inclusion of the offending vCPU's ID in what gets printed. Jan