* hi, all. how can I write msr while in domain0? thanks in advance:)
@ 2007-04-26 8:32 danielsong
2007-04-26 8:43 ` Keir Fraser
2007-04-26 17:16 ` Luke S. Crawford
0 siblings, 2 replies; 3+ messages in thread
From: danielsong @ 2007-04-26 8:32 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 661 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 916 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hi, all. how can I write msr while in domain0? thanks in advance:)
2007-04-26 8:32 hi, all. how can I write msr while in domain0? thanks in advance:) danielsong
@ 2007-04-26 8:43 ` Keir Fraser
2007-04-26 17:16 ` Luke S. Crawford
1 sibling, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2007-04-26 8:43 UTC (permalink / raw)
To: danielsong, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 673 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hi, all. how can I write msr while in domain0? thanks in advance:)
2007-04-26 8:32 hi, all. how can I write msr while in domain0? thanks in advance:) danielsong
2007-04-26 8:43 ` Keir Fraser
@ 2007-04-26 17:16 ` Luke S. Crawford
1 sibling, 0 replies; 3+ messages in thread
From: Luke S. Crawford @ 2007-04-26 17:16 UTC (permalink / raw)
To: danielsong; +Cc: xen-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-26 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 8:32 hi, all. how can I write msr while in domain0? thanks in advance:) danielsong
2007-04-26 8:43 ` Keir Fraser
2007-04-26 17:16 ` Luke S. Crawford
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.