From: Keir Fraser <keir@xensource.com>
To: Gerd Hoffmann <kraxel@suse.de>, Jan Beulich <jbeulich@novell.com>
Cc: Xen devel list <xen-devel@lists.xensource.com>,
Keir Fraser <keir@xensource.com>
Subject: Re: CONFIG_XEN_COMPAT_030002 broken?
Date: Tue, 14 Nov 2006 15:25:45 +0000 [thread overview]
Message-ID: <C17F9079.486E%keir@xensource.com> (raw)
In-Reply-To: <4559DCA1.6030102@suse.de>
On 14/11/06 15:11, "Gerd Hoffmann" <kraxel@suse.de> wrote:
>> not nice for use in (early) feature detection. Maybe it'd be better to try
>> and write
>> a page table entry without PAGE_USER, and check whether that bit got turned
>> on implicitly...
>
> Patch attached, seems to work ok, survived quick test with ttylinux on
> both 3.0.3 and 3.0.2 without crashing and detected both versions correctly.
>
> cheers,
> Gerd
Kernel_pages_need_user_flag seems unnecessary. The one consumer of that flag
could simply do 'flags |= kernel_page_user' unconditionally.
Also, is it necessary to default to 3.0.2 behaviour? Could we have
kernel_page_user==0 initially and then change the value only if 3.0.2 is
detected? This would provide a sanity check that check_page_user_flag() is
being executed early enough. We could even set kernel_page_user to a garbage
value initially, like ~0.
So far we have maintained the COMPAT code to be easily entirely strippable.
So the change to pmd_bad() should either use kernel_page_user rather than
_PAGE_USER, or its definition should be conditional on the COMPAT flag.
-- Keir
next prev parent reply other threads:[~2006-11-14 15:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-13 10:43 CONFIG_XEN_COMPAT_030002 broken? Gerd Hoffmann
2006-11-13 16:09 ` Gerd Hoffmann
2006-11-13 16:40 ` Keir Fraser
2006-11-13 16:47 ` Gerd Hoffmann
2006-11-13 16:56 ` Keir Fraser
2006-11-13 17:08 ` Gerd Hoffmann
2006-11-13 17:12 ` Keir Fraser
2006-11-14 11:14 ` Jan Beulich
2006-11-14 11:50 ` Keir Fraser
2006-11-14 12:32 ` Jan Beulich
2006-11-14 12:42 ` Keir Fraser
2006-11-14 13:02 ` Jan Beulich
2006-11-14 13:12 ` Keir Fraser
2006-11-14 15:11 ` Gerd Hoffmann
2006-11-14 15:25 ` Keir Fraser [this message]
2006-11-14 15:35 ` Gerd Hoffmann
2006-11-14 16:06 ` Gerd Hoffmann
2006-11-14 17:01 ` Keir Fraser
2006-11-15 10:02 ` Gerd Hoffmann
2006-11-15 10:10 ` Keir Fraser
2006-11-14 15:43 ` Jan Beulich
2006-11-14 15:40 ` 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=C17F9079.486E%keir@xensource.com \
--to=keir@xensource.com \
--cc=jbeulich@novell.com \
--cc=kraxel@suse.de \
--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.