xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* one question to p2m table entry type
@ 2010-05-05  8:17 Jiang, Yunhong
  2010-05-05  9:21 ` Keir Fraser
  2010-05-18 11:04 ` Tim Deegan
  0 siblings, 2 replies; 6+ messages in thread
From: Jiang, Yunhong @ 2010-05-05  8:17 UTC (permalink / raw)
  To: tim.deegan@citrix.com, Keir Fraser; +Cc: xen-devel@lists.xensource.com

Tim/Keir, I noticed that when translatiing p2m table type and p2m pte entry flags, there are difference handling for x86_64 and x32 like:

in p2m_type_to_flags:
#ifdef __x86_64__
    flags = (unsigned long)(t & 0x3fff) << 9;
#else
    flags = (t & 0x7UL) << 9;
#endif

in p2m_flags_to_type:
    /* Type is stored in the "available" bits */
#ifdef __x86_64__
    return (flags >> 9) & 0x3fff;
#else
    return (flags >> 9) & 0x7;

But since we don't support pure 32 bit xen hypervisor any more, and for 32 PAE, we are sure have enough bit to keep these flags, why do we need these special handling? Are there any special reason for it?

Thanks
--jyh

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

end of thread, other threads:[~2010-05-19  3:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05  8:17 one question to p2m table entry type Jiang, Yunhong
2010-05-05  9:21 ` Keir Fraser
2010-05-18 11:04 ` Tim Deegan
2010-05-18 12:28   ` Keir Fraser
2010-05-18 18:32   ` Jeremy Fitzhardinge
2010-05-19  3:02     ` Jiang, Yunhong

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).