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
Reducing --poll-sleep intervals should help but I'm not sure whether it'll solve your problem.
Bhaskar.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of James Harper
Sent: Wednesday, January 07, 2009 1:13 PM
To: [email protected]
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
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines · James Harper
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 somePF_XENentries 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.
Quoted 3 lines
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
Quoted 3 lines · George Dunlap
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
Quoted 3 lines
Quoted 1 line · James Harper
I did 'xentrace --time-interval=5 xentrace.out' to capture some
data,
Quoted 2 lines
Quoted 2 lines
and then ran it through '
xentrace_format' using the supplied example defs file. I can see somePF_XENentries with virt=0xFFFE0080
(address
Quoted 1 line
Quoted 1 line
of TPR), but I want to know the value being written, which I don't
think
Quoted 7 lines
Quoted 1 line
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