danielsong
2007-Apr-26 08:32 UTC
[Xen-devel] hi, all. how can I write msr while in domain0? thanks in advance:)
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@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Apr-26 08:43 UTC
Re: [Xen-devel] hi, all. how can I write msr while in domain0? thanks in advance:)
On 26/4/07 09:32, "danielsong" <sjtusongyi@gmail.com> wrote:> 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:-)That¹s absolutely the function where RDMSR/WRMSR ends up. Are you looking in the right place for the Xen output? VGA is taken over by domain0 by default when it starts to boot. Have you looked at xm dmesg¹ output? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Luke S. Crawford
2007-Apr-26 17:16 UTC
Re: [Xen-devel] hi, all. how can I write msr while in domain0? thanks in advance:)
On Thu, 26 Apr 2007, danielsong wrote:> 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.I''m pretty sure you want xm dmesg (run it from within the Dom0 as root) dmesg just gives you the linux kernel log, while it sounds like you want the Xen kernel log. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel