From: Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org,
"H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>,
Linus Torvalds
<torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Subject: Re: [PATCH] i386: Decouple PAE from CONFIG_CMPXCHG64
Date: Wed, 18 Jul 2007 20:18:29 +0200 [thread overview]
Message-ID: <20070718181829.GA3848@one.firstfloor.org> (raw)
In-Reply-To: <11847764879-git-send-email-avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
On Wed, Jul 18, 2007 at 07:34:47PM +0300, Avi Kivity wrote:
> Commit 9d9bbd4d247a674deb43565582151acdc22e90d1 makes CONFIG_CMPXCHG64
> dependent on CONFIG_HIGHMEM64G, but KVM guest SMP support now also
> requires CMPXCHG64 while not being tied to PAE. So the effect of that patch
> is to disable KVM on non-PAE configs.
>
> Untangle those dependencies by:
> - having KVM select CMPXCHG64
> - having HIGHMEM64G select CMPXCHG64_REQUIRED, a variant that also
> checks for the feature at early boot
>
> No processors that support KVM exist that also do not support CMPXCHG64,
> so no additional check is necessary. This setup allows for a single kernel
> that will boot on i486 and also support KVM if available.
The CONFIG should only control the early CPUID checks, which are needed for PAE
kernels.
But for something late like KVM the correct fix is really to drop
the ifdefs around the macro and check boot_cpu_has() yourself.
-Andi
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
next prev parent reply other threads:[~2007-07-18 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-18 16:34 [PATCH] i386: Decouple PAE from CONFIG_CMPXCHG64 Avi Kivity
[not found] ` <11847764879-git-send-email-avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-18 18:18 ` Andi Kleen [this message]
[not found] ` <20070718181829.GA3848-qrUzlfsMFqo/4alezvVtWx2eb7JE58TQ@public.gmane.org>
2007-07-19 1:20 ` H. Peter Anvin
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=20070718181829.GA3848@one.firstfloor.org \
--to=andi-vw/nlti1exurpaaqcnn02g@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox