xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* APIC MSRs query
@ 2011-05-17 13:25 Andrew Cooper
  2011-05-17 13:43 ` Jan Beulich
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cooper @ 2011-05-17 13:25 UTC (permalink / raw)
  To: xen devel

Hello,

I am currently cleaning up the APIC code for the sake of 
shutdown/reboot/crashdump and have a query about the (modified for 
brevity) snippet of code:

uint64_t msr_content;
rdmsrl(MSR_IA32_APICBASE, msr_content);
msr_content |= MSR_IA32_APICBASE_ENABLE | MSR_IA32_APICBASE_EXTD;
msr_content = (uint32_t)msr_content;
wrmsrl(MSR_IA32_APICBASE, msr_content);

which is added into apic.c in changeset b622e411eef8, and has propagated 
elsewhere in the codebase during subsequent cleanups etc.

The MP spec and x2apic spec states that bits [35:12] of 
MSR_IA32_APICBASE is the base APIC MMIO address.  Is there reason why 
the code (almost always) clears the top 4 bits, or is it just an 
overlooked mistake?

-- 
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-17 14:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-17 13:25 APIC MSRs query Andrew Cooper
2011-05-17 13:43 ` Jan Beulich
2011-05-17 13:49   ` Andrew Cooper
2011-05-17 13:59   ` Ian Campbell
2011-05-17 14:08     ` Andrew Cooper
2011-05-17 14:08     ` Jan Beulich
2011-05-17 14:53       ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).