[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] (xen 4.6 unstable) triple fault when execute fxsave during the procedure of guest iso install


  • To: Fanhenglong <fanhenglong@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Wed, 24 Jun 2015 12:25:39 +0300
  • Cc: "Liuqiming \(John\)" <john.liuqiming@xxxxxxxxxx>, Yanqiangjun <yanqiangjun@xxxxxxxxxx>, "Huangpeng \(Peter\)" <peter.huangpeng@xxxxxxxxxx>, "Hanweidong \(Randy\)" <hanweidong@xxxxxxxxxx>
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Wed, 24 Jun 2015 09:25:30 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=Aa+9JNIgmWxHHeuKsu7Z3l7vSE2Qy6Mz81W490La7fhVIUpmNDcjcZ5BjUM5uwbg/Drw8x+N1d+X4KXQ3M2KjDM0nHdNvIBfAyXjEzJb3QsGYegSH0O7srIstda8WFxGiyJI8aQnZrQqtbaaTOjysZWZNdavsq/Dfakv/TNdQwXKHPHydYI+5npAtpp4WE1BOCQYOy5ETI4a5bzxw5oErI9gu6CkDDUFwlfHzTbXwZNdSoFRrqwjcW5vWwZqozPL59Lj5bLbZ2tq7P97AUuzxKjIWkKJziY5iDM7RKU7232GzOBpYVcZkfncuj/wHiSEIFOxe5TmJnporyFLrtwB/w==; h=Received:Received:Received:Received:Received:Subject:To:References:Cc:From:X-Enigmail-Draft-Status:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 06/24/2015 12:14 PM, Fanhenglong wrote:
> I want to debug the procedure of windows os install with windbg,
> 
> windbg executes instruction(fxsave) after the blank vm is started and
> before guest iso start to install,
> 
> fxsave trigger the following code path:
> vmx_vmexit_handler(EXIT_REASON_EPT_VIOLATION)
> ->ept_handle_violation
> ->hvm_hap_nested_page_fault
> ->handle_mmio_with_translation
> ->handle_mmio
> ->hvm_emulate_one
> ->x86_emulate
> 
> *X86_emulate return X86EMUL_UNHANDLEABLE*

How are you using Xen in this case? Are you by any chance using the
vm_event system in a way that sends back an "emulate" vm_event response
from userspace?

You might want to look at x86_emulate() in
xen/arch/x86/x86_emulate/x86_emulate.c and see if (and how) fxsave is
being handled.


HTH,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.