From: danielsong Subject: hi, all. how can I write msr while in domain0? thanks in advance:) Date: Thu, 26 Apr 2007 16:32:01 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1905446784==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1905446784== Content-Type: multipart/alternative; boundary="----=_Part_64496_24537856.1177576321972" ------=_Part_64496_24537856.1177576321972 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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, DanielSong ------=_Part_64496_24537856.1177576321972 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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,
DanielSong
------=_Part_64496_24537856.1177576321972-- --===============1905446784== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1905446784==--