Thanks to some pointers from Phil Mucci, I now have a Windows 7 KMDF
kernel driver that sets CR4[PCE], allowing access to performance counter
registers in user mode, and setting of MSRs to permit event
I am going to attempt to integrate this stuff into the current PAPI
(I'm running with papi-4.1.3, because it sort-of had Windows
support in it already). Any suggestions on things I should or should
not do with the current PAPI are very welcome.