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

[Xen-devel] Debug-Registers in HVM domain destroyed


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Fri, 14 Feb 2014 10:33:33 +0100
  • Delivery-date: Fri, 14 Feb 2014 09:33:50 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Message-ID:Date:From:Organization:User-Agent: MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=lLhXl2OMK+KQXIGJZdgvtzpUzr0EI2W9+QZYR64z2EvD1RG3QlpBcTcQ g6eznvXvjDSIpmoytpcTjJRsKVHvvrWTeFET8/PMPiOR16m3MxLmofykb LNj8pjJLNkth74xcTc1c5IzlTdqeRqNDu6QprFrJg08Sy98pXCBNlnxj7 ULNkl7fYTroyCHpyVREHOxjo46ymy9cKFLqKe+fWC7WOQDAiSljqQoqM/ ycc5vCgI6yqvGlcZ9qAdrtQxJ3iYo;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi,

we've found a problem with debug registers in HVM domains with Xen (we are
running 4.2, but the code in the hypervisor seems to be unchanged in unstable)
on INTEL processors:

Debug registers are restored on vcpu switch only if db7 has any debug events
activated. This leads to problems in the following cases:

- db0-3 are changed by the guest before events are set "active" in db7. In case
  of a vcpu switch between setting db0-3 and db7, db0-3 are lost. BTW: setting
  db7 before db0-3 is no option, as this could trigger debug interrupts due to
  stale db0-3 contents.

- single stepping is used and vcpu switch occurs between the single step trap
  and reading of db6 in the guest. db6 contents (single step indicator) are
  lost in this case.

Any thoughts?


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
PBG PDG ES&S SWE OS6                   Telephone: +49 (0) 89 62060 2932
Fujitsu                                   e-mail: juergen.gross@xxxxxxxxxxxxxx
Mies-van-der-Rohe-Str. 8                Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

_______________________________________________
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®.