Andrew Gallatin wrote: > Is there an interface to read/write CPU MSRs from userspace > (like the "msr" driver in linux)?
There isn't anything official, but I've hacked one recently. It's certainly no more than a debug tool, but you can have the source if you like. > Failing that, how would I read/write MSRs on each CPU? > I've already done this on linux, where there is a wrapper > function which can call a specified function on all on-line > CPUs (on_each_cpu()). Does a similar function exist in Solaris? 'xcalls' (see xc_call() and friends). > Or does solaris' rdmsr() / wrmsr() take care of keeping the MSRs > in sync some how? No; in general MSRs aren't meant to be "in sync" across CPUs. > I'm trying to enable/disable "Intel's Enhanced Idle" (C1E, > msr 0x1a0, bit 25) on some stupid Dells servers which don't > have the option in the BIOS. > > Thanks, > > Drew > _______________________________________________ > driver-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/driver-discuss _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
