public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: Andi Kleen <andi@firstfloor.org>, linux-kernel@vger.kernel.org
Subject: Re: Is vm86old no more implemented?
Date: Sun, 7 Dec 2008 12:18:58 +0100	[thread overview]
Message-ID: <20081207111858.GH6703@one.firstfloor.org> (raw)
In-Reply-To: <200812062202.30476.arvidjaar@mail.ru>

On Sat, Dec 06, 2008 at 10:02:29PM +0300, Andrey Borzenkov wrote:
> On Суббота 06 декабря 2008 13:20:47 Andi Kleen wrote:
> > On Sat, Dec 06, 2008 at 12:52:43PM +0300, Andrey Borzenkov wrote:
> > > On Суббота 06 декабря 2008 11:56:03 Andi Kleen wrote:
> > > > Andrey Borzenkov <arvidjaar@mail.ru> writes:
> > > > > CONFIG_VM86 is defined; is there anything else that is needed?
> > > > > This fails both in 2.6.27.7 and in 2.6.28-rc7. I attach config
> > > > > from 2.6.28-rc7.
> > > >
> > > > It should still work. Can you double check you're running the
> > > > correct kernel? Perhaps a 64bit kernel (which doesn't implement
> > > > it).
> > >
> > > Linux cooker 2.6.28-rc7-1avb #23 Fri Dec 5 22:42:47 MSK 2008 i686
> > > Pentium III (Coppermine) GNU/Linux
> > >
> > > Anything else I can check?
> >
> > Hmm perhaps place a printk into
> > arch/x86/kernel/vm86_32.c:sys_vm86old() and see if it's reached.
> >
> 
> It is:
> 
> [  156.094049] sys_vm86old called by monitor-get-edi
> [  156.243660] sys_vm86old called by monitor-get-edi
> [  285.698333] sys_vm86old called by X
> [  285.699408] sys_vm86old called by X
> [  285.699813] sys_vm86old called by X
> 
> any chance the specific function that is invoked is not implemented? 
> Because at least X apparently does not always fail video BIOS call - how 
> can I catch which calls were successful and which failed? I understand 
> return path sys_vm86old is rather non-standard.

One relatively reliable way would be to add printks to the error
paths again.

You're right it's probabaly related to the non standard return path.
Since it's so non standard i'm not sure you can even trust strace
completely. It relies on the return path and might be slightly confused.

Easiest way to track it down if you know an old kernels which
didn't show the problem would be probably to bisect.

-Andi



-- 
ak@linux.intel.com

      reply	other threads:[~2008-12-07 11:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-06  7:43 Is vm86old no more implemented? Andrey Borzenkov
2008-12-06  8:56 ` Andi Kleen
2008-12-06  9:52   ` Andrey Borzenkov
2008-12-06 10:20     ` Andi Kleen
2008-12-06 19:02       ` Andrey Borzenkov
2008-12-07 11:18         ` Andi Kleen [this message]

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=20081207111858.GH6703@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=arvidjaar@mail.ru \
    --cc=linux-kernel@vger.kernel.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