All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: akpm <akpm@osdl.org>, virtualization@lists.osdl.org, sam@ravnborg.org
Subject: Re: Section mismatch in parainstructions
Date: Mon, 11 Dec 2006 01:34:25 -0800	[thread overview]
Message-ID: <457D2621.4030402@goop.org> (raw)
In-Reply-To: <20061210183441.86785fee.randy.dunlap@oracle.com>

Randy Dunlap wrote:
> Good question.  I don't see much doc on that subject.
> Rusty could probably answer that better than me.
>   

Yep, it is definitely his problem, since he wrote both halves of the
equation...

> Something like this:
>
> .exit.text section(s) can be discarded from built-in (non-modular)
> code (or not even loaded at all).
>
> .exit.text section(s) in modules is only loaded when
> CONFIG_MODULE_UNLOAD=y.
>
>
> so what are the .parainstructions text sections for?
> Are they for replacing code instructions based on some
> condition(s)?  (like <gag> self-modifying code? </gag>)

You can compile in support for multiple paravirtualizing hypervisors
(ie, Xen, VMI and/or lhype), and it will work out which backend is
appropriate to use at runtime.  Once it has done that, the backends have
the option to patch inline code to implement simple operations (sti, for
example).

So the .parainstructions section marks where there are instructions
which the backend may want to replace, and the substitution happens
relatively early in the kernel boot process (and on module load, I
assume, but I haven't checked).

    J

  reply	other threads:[~2006-12-11  9:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-10 23:58 Section mismatch in parainstructions Randy Dunlap
2006-12-11  0:40 ` Jeremy Fitzhardinge
2006-12-11  2:34   ` Randy Dunlap
2006-12-11  9:34     ` Jeremy Fitzhardinge [this message]
2006-12-12  0:14 ` Rusty Russell
2006-12-12  3:21 ` Andi Kleen

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=457D2621.4030402@goop.org \
    --to=jeremy@goop.org \
    --cc=akpm@osdl.org \
    --cc=randy.dunlap@oracle.com \
    --cc=sam@ravnborg.org \
    --cc=virtualization@lists.osdl.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 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.