Jike Song wrote:
Hi Dan,

Glad to hear from you! I added Solaris support to x86info, built successfully, and the patch is attached(against the lasted x86 git repo) for your information.

But the lack of MSR access make it almost useless.  Say:

I don't know what x86info output is supposed to look like, so this doesn't have a lot of meaning for me, but:

readEntry: Bad address


It seems that /dev/mem doesn't support lseek + read accessing model.

It does, I think, but it doesn't support access to all of physical memory the way it does on Linux. For that, use /dev/xsvc.

And
furthermore, I don't know how to access MSR registers from userspace.

Right; as you've implied, and I've agreed with, it takes a driver.

If
we have no such facilities in kernel, there are 2 choices:

a) Disable all MSR accessing codes in x86info, which unfortunately will remove some features;
b) implement a msr driver, say /dev/cpu/self/msr, to serve MSR read/write
  from userspace.

Choice b sounds better, but I have read the linux msr driver before I join
SMI. So I'm not able to write this driver due to license issue;-(

Is your working directory accessible in SWAN?

I'll send you a tarball.


_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to