I am trying to learn some more about the way windows does TPR writes, and tried xentrace for the first time. I did ''xentrace --time-interval=5 xentrace.out'' to capture some data, and then ran it through ''xentrace_format'' using the supplied example defs file. I can see some PF_XEN entries with virt=0xFFFE0080 (address of TPR), but I want to know the value being written, which I don''t think is there. I''m also only seeing a handful of those records - I have 4 Windows domains running on this test machine so there should be plenty of ''action'' in those 5 seconds. Can anyone suggest anything? Thanks James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Reducing --poll-sleep intervals should help but I''m not sure whether it''ll solve your problem. Bhaskar. -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of James Harper Sent: Wednesday, January 07, 2009 1:13 PM To: xen-devel@lists.xensource.com Subject: [Xen-devel] xentrace and MSR_READ/MSR_WRITE I am trying to learn some more about the way windows does TPR writes, and tried xentrace for the first time. I did ''xentrace --time-interval=5 xentrace.out'' to capture some data, and then ran it through ''xentrace_format'' using the supplied example defs file. I can see some PF_XEN entries with virt=0xFFFE0080 (address of TPR), but I want to know the value being written, which I don''t think is there. I''m also only seeing a handful of those records - I have 4 Windows domains running on this test machine so there should be plenty of ''action'' in those 5 seconds. Can anyone suggest anything? Thanks James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, Jan 7, 2009 at 1:42 AM, James Harper <james.harper@bendigoit.com.au> wrote:> I did ''xentrace --time-interval=5 xentrace.out'' to capture some data, > and then ran it through ''xentrace_format'' using the supplied example > defs file. I can see some PF_XEN entries with virt=0xFFFE0080 (address > of TPR), but I want to know the value being written, which I don''t think > is there.Are you running -unstable, or 3.3? Between 3.2 and 3.3, the mmio value got un-traced (with the re-working of the emulation infrastructure), and I didn''t catch it in time. It should work in -unstable from cs 18749.> I''m also only seeing a handful of those records - I have 4 Windows > domains running on this test machine so there should be plenty of > ''action'' in those 5 seconds.What version of Windows are you running? w2k3sp2 has lazy TPR updates, so it does a big reduction in the amount of TPR writes. If you want to send me a trace, I can take a look at it and see what I find as well... -George _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, Jan 7, 2009 at 3:06 PM, George Dunlap <George.Dunlap@eu.citrix.com> wrote:> Between 3.2 and 3.3, the mmio value got un-traced (with the re-working > of the emulation infrastructure), and I didn''t catch it in time. It > should work in -unstable from cs 18749.I should also point out that the value should be in a separate trace record, "mmio_assist" (which may not be in the xentrace_formats file). Anyway, feel free to send me the trace file and I''ll see what I can make of it. If it''s bigger than a few megs, it would be helpful to use something like "yousendit.com". Peace, -George _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> On Wed, Jan 7, 2009 at 1:42 AM, James Harper > <james.harper@bendigoit.com.au> wrote: > > I did ''xentrace --time-interval=5 xentrace.out'' to capture somedata,> > and then ran it through ''xentrace_format'' using the supplied example > > defs file. I can see some PF_XEN entries with virt=0xFFFE0080(address> > of TPR), but I want to know the value being written, which I don''tthink> > is there. > > Are you running -unstable, or 3.3? > > Between 3.2 and 3.3, the mmio value got un-traced (with the re-working > of the emulation infrastructure), and I didn''t catch it in time. It > should work in -unstable from cs 18749.I am using 3.3-testing. Thanks for the offer of sending you the trace, but I''m a lot more comfortable parsing it since sending the original email. I think I''ll actually add a custom trace record for lapic stuff so that I can get exactly what I want. I can post the patch to the list if you think it might be useful, but I''m guessing it will only be filling a pretty specific niche... James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel