All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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.