From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2 1/4] x86: move syscall trampolines off the stack
Date: Thu, 21 May 2015 12:50:13 +0100 [thread overview]
Message-ID: <555DC675.2080708@citrix.com> (raw)
In-Reply-To: <555DE21D020000780007CB8B@mail.emea.novell.com>
On 21/05/15 12:48, Jan Beulich wrote:
>>>> On 21.05.15 at 13:08, <andrew.cooper3@citrix.com> wrote:
>> On 21/05/15 11:15, Jan Beulich wrote:
>>> This is needed as stacks are going to become non-executable. Use
>>> separate stub pages (shared among suitable CPUs on the same node)
>>> instead.
>>>
>>> Stub areas (currently 128 bytes each) are being split into two parts -
>>> a fixed usage one (the syscall ones) and dynamically usable space,
>>> which will be used by subsequent changes to hold dynamically generated
>>> code during instruction eumlation.
>>>
>>> While sharing physical pages among certain CPUs on the same node, for
>>> now the virtual mappings get established in distinct pages for each
>>> CPU. This isn't a strict requirement, but simplifies VA space
>>> management for this initial implementation: Sharing VA space would
>>> require additional tracking of which areas are currently in use. If
>>> the VA and/or TLB overhead turned out to be a problem, such extra code
>>> could easily be added.
>>>
>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>
>> It might be wise to have a BUILD_BUG_ON() which confirms that
>> STUBS_PER_PAGE is a power of two, which is a requirement given the way
>> it is used.
> Good idea. Along with that one I'm also adding
>
> BUILD_BUG_ON(STUB_BUF_SIZE / 2 < MAX_INST_LEN + 1);
>
> to patch 2 and
>
> BUILD_BUG_ON(STUB_BUF_SIZE / 2 < 16);
>
> to patch 3, in the hope that this won't invalidate your R-b.
Both fine by me
~Andrew
next prev parent reply other threads:[~2015-05-21 11:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 10:07 [PATCH v2 0/4] x86: don't default to executable mappings Jan Beulich
2015-05-21 10:15 ` [PATCH v2 1/4] x86: move syscall trampolines off the stack Jan Beulich
2015-05-21 11:08 ` Andrew Cooper
2015-05-21 11:48 ` Jan Beulich
2015-05-21 11:50 ` Andrew Cooper [this message]
2015-05-22 8:25 ` Jan Beulich
2015-05-22 8:34 ` Jan Beulich
2015-05-22 8:35 ` Andrew Cooper
2015-05-21 10:16 ` [PATCH v2 2/4] x86emul: move stubs " Jan Beulich
2015-05-21 11:10 ` Andrew Cooper
2015-05-21 10:17 ` [PATCH v2 3/4] x86: move I/O emulation " Jan Beulich
2015-05-21 11:12 ` Andrew Cooper
2015-05-21 10:17 ` [PATCH v2 4/4] x86: switch default mapping attributes to non-executable Jan Beulich
2015-05-21 11:14 ` Andrew Cooper
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=555DC675.2080708@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.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.