xen64: disable 32-bit syscall/sysenter if not supported.
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 10 Jul 2008 23:24:08 +0000 (16:24 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Jul 2008 09:07:44 +0000 (11:07 +0200)
commit62541c376668042e20122864a044360707b2fb82
tree965d05ac3bed88bacd5d7869091d38e78130705f
parent6596f2422306a05be2170efc114da49f26a047dd
xen64: disable 32-bit syscall/sysenter if not supported.

Old versions of Xen (3.1 and before) don't support sysenter or syscall
from 32-bit compat userspaces.  If we can't set the appropriate
syscall callback, then disable the corresponding feature bit, which
will cause the vdso32 setup to fall back appropriately.

Linux assumes that syscall is always available to 32-bit userspace,
and installs it by default if sysenter isn't available.  In that case,
we just disable vdso altogether, forcing userspace libc to fall back
to int $0x80.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/xen/setup.c