WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] hi, all. how can I write msr while in domain0? thanks in advance:)
From: danielsong <sjtusongyi@xxxxxxxxx>
Date: Thu, 26 Apr 2007 16:32:01 +0800
Delivery-date: Thu, 26 Apr 2007 01:30:34 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=hoZfU6Tb2WbaapOGHbHAu8oRwyhzr5lHqsAccGQp5j4BK78JqCOvpGoh6XgMX5ZwU61sHlRCr7IDy3vDwKf9qTRS+xSckjGm/8ZqB8sXX+U1NRvy4yOFcRnryUXlNLqfRKiFNyqcKCm/HKeYqaaXb2bwSugfZkxwvWQw+27406s=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>