|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Debug-Registers in HVM domain destroyed
On 14.02.2014 11:40, Jan Beulich wrote: On 14.02.14 at 10:33, Juergen Gross <juergen.gross@xxxxxxxxxxxxxx> wrote: Is this the case when the guest itself uses single stepping? Initially the debug trap shouldn't cause a VMEXIT, I think. And I'm not sure the hypervisor will see a guest setting TF via an IRET. I _have_ seen a debug trap in the guest after single stepping without db6 having the single step indicator set... - any DRn is being accessed So when your guest writes DR[0-3], debug registers should get restored (from their original zero values) and the guest would be permitted direct access to the hardware registers. Once context switched out, vmx_save_dr() ought to be saving the values (irrespective of DR7 contents, only depending upon v->arch.hvm_vcpu.flag_dr_dirty). During the next context switch in, they would get restored immediately if DR7 already has some breakpoint enabled, or again during first DR access if not. Okay, I'll check that. A little test routine in my domU should be able to verify that debug registers won't change under it's feet in case of no activated events in db7. 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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |