public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sjmunroe at us dot ibm dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/6816] Support for POWER7 VSX registers in *context routines
Date: Thu, 16 Oct 2008 19:38:00 -0000	[thread overview]
Message-ID: <20081016193656.1766.qmail@sourceware.org> (raw)
In-Reply-To: <20080804175727.6816.cseo@linux.vnet.ibm.com>


------- Additional Comments From sjmunroe at us dot ibm dot com  2008-10-16 19:36 -------
>I.e., the version value would have to be in the range of the original data
>structure and there must not be any ambiguity (i.e., you have to find a byte or
>four in the original structure which has a limited range and use one of the
>value which _never_ can happen in the real world).

As I explained before the size of the ucontext is implied in an unambiguous way
by the feature enable bits (FP,VMX,VSX) of the MSR saved with the GPRs in the
ucontext. The kernal swapcontext swapcontext has set these since kernel 2.6.0,
before that getcontext zeroed the MSR. I believe that is unambiguous enough.

So if you want to not change sizeof(ucontext), we can do that. Just anyone crazy
enough to try copying a ucontext from a signal frame has to know to check for
MSR:VSX and copy a little bit more. And then use the swapcontext syscall with
the larger length. The kernel should handle this!

I assume we still need the wrappers to handle the previous version changes
(adding VMX) and any future changes?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6816

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


  parent reply	other threads:[~2008-10-16 19:38 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-04 17:58 [Bug libc/6816] New: " cseo at linux dot vnet dot ibm dot com
2008-08-04 18:17 ` [Bug libc/6816] " cseo at linux dot vnet dot ibm dot com
2008-08-04 18:17 ` cseo at linux dot vnet dot ibm dot com
2008-08-04 18:18 ` cseo at linux dot vnet dot ibm dot com
2008-08-04 18:19 ` cseo at linux dot vnet dot ibm dot com
2008-08-04 18:20 ` cseo at linux dot vnet dot ibm dot com
2008-08-05 15:40 ` rsa at us dot ibm dot com
2008-08-05 17:54 ` sjmunroe at us dot ibm dot com
2008-08-05 19:42 ` rsa at us dot ibm dot com
2008-08-25 22:55 ` drepper at redhat dot com
2008-09-12 21:59 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 21:59 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:00 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:01 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:02 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:02 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:03 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:04 ` cseo at linux dot vnet dot ibm dot com
2008-09-12 22:16 ` cseo at linux dot vnet dot ibm dot com
2008-10-15 22:23 ` drepper at redhat dot com
2008-10-16 14:02 ` rsa at us dot ibm dot com
2008-10-16 14:57 ` drepper at redhat dot com
2008-10-16 16:54 ` sjmunroe at us dot ibm dot com
2008-10-16 17:07 ` drepper at redhat dot com
2008-10-16 19:38 ` sjmunroe at us dot ibm dot com [this message]
2009-04-07 18:10 ` drepper at redhat dot com
2009-04-07 18:31 ` rsa at us dot ibm dot com
2009-04-07 18:39 ` drepper at redhat dot com
2010-06-01  3:38 ` pasky at suse dot cz
2010-06-01 15:02 ` rsa at us dot ibm dot com
2010-06-01 15:40 ` rsa at us dot ibm dot com
     [not found] <bug-6816-131@http.sourceware.org/bugzilla/>
2013-10-11  7:52 ` jakub at redhat dot com

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=20081016193656.1766.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).