From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: page ref/type count overflows
Date: Tue, 27 Jan 2009 10:16:59 +0000 [thread overview]
Message-ID: <497EED2B.76E4.0078.0@novell.com> (raw)
In-Reply-To: <C5A39CF6.1C0E%keir.fraser@eu.citrix.com>
>>> Keir Fraser <keir.fraser@eu.citrix.com> 26.01.09 18:01 >>>
>On 26/01/2009 14:54, "Keir Fraser" <keir.fraser@eu.citrix.com> wrote:
>
>>> The count_info one only, or are you also intending to change _domain?
>>> With struct page_info pretty large already, I'd want to avoid growing it
>>> needlessly.
>>
>> I'm going to change both and do it the easy way, growing the structure from
>> 40 to 48 bytes. You can shrink it again with the tricks you describe if
>> you're keen. I'm not sure how ugly the list stuff would end up, which would
>> be my main concern, but I suppose you can hide it behind list.h-style
>> macros. I don't see there's much duplication of effort to phase the work
>> like this.
>
>By the way, unless you can see some really clever way to shrink page_info to
>32 bytes then I think it is only worth doing compression tricks on the
>list_head field, to save 8 bytes (struct becomes 40 bytes). Compressing the
>domain field won't get you down to another multiple-of-eight size. It may be
>a trick to keep in mind for future though...
Yes, I too realized that on my way home yesterday. The only thing I see as
viable for consideration would be to remove the embedded spinlock again, and
use the same bit-lock as x86-32 does.
And of course I'd like to see the cpumask gone, but that's gonna be more
tricky (if possible at all).
>And all my stuff is in, as of changeset 19093.
Thanks! One thing though that puzzled me regarding c/s 19093: How can
the mbz field have changed from being an overlay of u.inuse._domain to
being one of count_info? And if this was indeed intended that way, then
the comment prior to shadow_check_page_struct_offsets() should be
updated accordingly.
And shouldn't shadow's count field also be widened to BITS_PER_LONG-6?
Jan
next prev parent reply other threads:[~2009-01-27 10:16 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-26 13:10 page ref/type count overflows Jan Beulich
2009-01-26 13:33 ` Keir Fraser
2009-01-26 13:51 ` Keir Fraser
2009-01-26 14:10 ` Jan Beulich
2009-01-26 14:19 ` Keir Fraser
2009-01-26 14:38 ` Jan Beulich
2009-01-26 14:54 ` Keir Fraser
2009-01-26 16:15 ` Jan Beulich
2009-01-26 16:30 ` Keir Fraser
2009-01-27 9:34 ` Tim Deegan
2009-01-26 17:01 ` Keir Fraser
2009-01-27 10:16 ` Jan Beulich [this message]
2009-01-27 10:24 ` Keir Fraser
2009-01-27 11:22 ` Keir Fraser
2009-01-27 15:38 ` Keir Fraser
2009-01-27 15:49 ` Jan Beulich
2009-01-27 16:03 ` Keir Fraser
2009-01-29 8:34 ` Jan Beulich
2009-01-29 8:45 ` Keir Fraser
2009-01-29 10:54 ` Jan Beulich
2009-01-29 11:07 ` Tim Deegan
2009-01-29 11:26 ` Keir Fraser
2009-01-29 14:04 ` Gianluca Guida
2009-01-29 10:12 ` Tim Deegan
2009-01-29 10:57 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=497EED2B.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.