[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] hi, all. how can I write msr while in domain0? thanks in advance:)

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: danielsong <sjtusongyi@xxxxxxxxx>
  • Date: Thu, 26 Apr 2007 16:32:01 +0800
  • Delivery-date: Thu, 26 Apr 2007 01:30:34 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TSTaVzTdiruY/1ePH6YFSEJPfqiEgIRlTSejTy9/qU6kEDkar4CJMswAT2IXBMk6IqmiiHHIhkCZ5Sz06LUD+bfMwj+kSCnBbH3RPMP61YGtGwPD2FFXLjQZJQuqW0SliMn7PcDKAVPHowEfKrrLBs3p7SV73eAkleQMil1oqtA=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

I want to write 0x2a msr(concerning power-on configuration);
currently I rebuild the kernel adding support for /dev/cpu/msr0.
so I just access the file through the file.
the problem is that:It seems that I can't write a value into the 0x2a msr(also 0x10-tsc msr).
after searching in xensource web, I found that we can modify the emulate_privileged_op() in xen/arch/x86/traps.c
but when add a printk sentence at the beginning of the emulate_privileged_op()
I didn't get the output using dmesg | tail.
it seems that the wrmsr didn't get into the emulate_privileged_op() ?
the rdmsr operation is the same as wrmsr:-)
thank you.

Best Regrads,
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.