Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 884303002: Launch nexes from mojo_shell.

Created:
5 years, 10 months ago by Nick Bray (chromium)
Modified:
5 years, 10 months ago
Reviewers:
jamesr, qsr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Launch Native Client executables from mojo_shell. Only works on x64 and the shell is killed when a .nexe exits. BUG=401761

Patch Set 1 #

Patch Set 2 : Simplify #

Patch Set 3 : Whitepace #

Total comments: 20

Patch Set 4 : EDits #

Patch Set 5 : Formatting error #

Total comments: 8

Patch Set 6 : EDits #

Total comments: 6

Patch Set 7 : Peel out untrusted build #

Patch Set 8 : Mojo IRT #

Total comments: 6

Patch Set 9 : Edits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -9 lines) Patch
M mojo/BUILD.gn View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M mojo/nacl/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
A + mojo/nacl/config.gni View 1 chunk +4 lines, -1 line 0 comments Download
M mojo/nacl/monacl_sel_main.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M mojo/nacl/monacl_sel_main.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M mojo/nacl/monacl_shell.cc View 1 chunk +2 lines, -1 line 0 comments Download
M shell/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M shell/dynamic_application_loader.cc View 1 2 3 4 5 6 7 8 7 chunks +48 lines, -0 lines 0 comments Download
A shell/nacl/nacl_service_runner.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A shell/nacl/nacl_service_runner.cc View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (2 generated)
Nick Bray (chromium)
Are you the best person to review this?
5 years, 10 months ago (2015-01-28 22:54:13 UTC) #2
jamesr
https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc File mojo/nacl/monacl_shell.cc (right): https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc#newcode27 mojo/nacl/monacl_shell.cc:27: MOJO_HANDLE_INVALID); MOJO_INVALID_HANDLE ? https://codereview.chromium.org/884303002/diff/40001/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/884303002/diff/40001/shell/dynamic_application_loader.cc#newcode116 shell/dynamic_application_loader.cc:116: ...
5 years, 10 months ago (2015-01-28 23:11:31 UTC) #3
Nick Bray (chromium)
https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc File mojo/nacl/monacl_shell.cc (right): https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc#newcode27 mojo/nacl/monacl_shell.cc:27: MOJO_HANDLE_INVALID); On 2015/01/28 23:11:30, jamesr wrote: > MOJO_INVALID_HANDLE ? ...
5 years, 10 months ago (2015-01-29 22:31:35 UTC) #4
jamesr
https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc File mojo/nacl/monacl_shell.cc (right): https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc#newcode27 mojo/nacl/monacl_shell.cc:27: MOJO_HANDLE_INVALID); On 2015/01/29 22:31:34, Nick Bray (chromium) wrote: > ...
5 years, 10 months ago (2015-01-29 22:32:04 UTC) #5
Nick Bray (chromium)
https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc File mojo/nacl/monacl_shell.cc (right): https://codereview.chromium.org/884303002/diff/40001/mojo/nacl/monacl_shell.cc#newcode27 mojo/nacl/monacl_shell.cc:27: MOJO_HANDLE_INVALID); On 2015/01/29 22:32:03, jamesr wrote: > On 2015/01/29 ...
5 years, 10 months ago (2015-01-29 22:34:54 UTC) #6
jamesr
https://codereview.chromium.org/884303002/diff/80001/mojo/public/platform/nacl/BUILD.gn File mojo/public/platform/nacl/BUILD.gn (right): https://codereview.chromium.org/884303002/diff/80001/mojo/public/platform/nacl/BUILD.gn#newcode15 mojo/public/platform/nacl/BUILD.gn:15: "mojo/nacl:mojo", nothing in //mojo/public should depend on targets outside ...
5 years, 10 months ago (2015-01-29 23:41:23 UTC) #7
Nick Bray (chromium)
https://codereview.chromium.org/884303002/diff/80001/mojo/public/platform/nacl/BUILD.gn File mojo/public/platform/nacl/BUILD.gn (right): https://codereview.chromium.org/884303002/diff/80001/mojo/public/platform/nacl/BUILD.gn#newcode15 mojo/public/platform/nacl/BUILD.gn:15: "mojo/nacl:mojo", On 2015/01/29 23:41:23, jamesr wrote: > nothing in ...
5 years, 10 months ago (2015-01-29 23:54:55 UTC) #8
jamesr
"balance" isn't really the right word here - this patch as checked in will fail ...
5 years, 10 months ago (2015-01-29 23:59:05 UTC) #9
viettrungluu
On 2015/01/29 23:59:05, jamesr wrote: > "balance" isn't really the right word here - this ...
5 years, 10 months ago (2015-01-30 00:14:17 UTC) #10
qsr
https://codereview.chromium.org/884303002/diff/40002/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/884303002/diff/40002/shell/dynamic_application_loader.cc#newcode5 shell/dynamic_application_loader.cc:5: #include "shell/dynamic_application_loader.h" I'm probably completely missing a point somewhere ...
5 years, 10 months ago (2015-01-30 15:04:12 UTC) #12
Nick Bray (chromium)
I'll peel out the untrusted bits Monday, just responding to qsr. https://codereview.chromium.org/884303002/diff/40002/shell/dynamic_application_loader.cc File shell/dynamic_application_loader.cc (right): ...
5 years, 10 months ago (2015-01-31 02:47:10 UTC) #13
Nick Bray (chromium)
jamesr: untrusted bit have been peeled out, should be ready for review. Tell me if ...
5 years, 10 months ago (2015-02-02 20:48:12 UTC) #14
jamesr
I don't think optimizing for mmap()ing a local file is terribly wise at this stage. ...
5 years, 10 months ago (2015-02-03 05:15:42 UTC) #15
Nick Bray (chromium)
> I don't think optimizing for mmap()ing a local file is terribly wise at this ...
5 years, 10 months ago (2015-02-03 19:06:31 UTC) #16
jamesr
Is the desire to mmap() the only reason that the nacl loader has to be ...
5 years, 10 months ago (2015-02-06 01:27:21 UTC) #17
Nick Bray (chromium)
On 2015/02/06 01:27:21, jamesr wrote: > Is the desire to mmap() the only reason that ...
5 years, 10 months ago (2015-02-06 02:08:39 UTC) #18
Aaron Boodman
On 2015/02/06 02:08:39, Nick Bray (chromium) wrote: > Maybe in a year NaCl loading can ...
5 years, 10 months ago (2015-02-06 02:18:54 UTC) #19
jamesr
Special-casing speculatively seems like a bad idea to me as well. I agree there are ...
5 years, 10 months ago (2015-02-06 02:25:29 UTC) #20
Nick Bray (chromium)
On 2015/02/06 02:18:54, Aaron Boodman wrote: > On 2015/02/06 02:08:39, Nick Bray (chromium) wrote: > ...
5 years, 10 months ago (2015-02-06 03:18:50 UTC) #21
jamesr
You could take a data pipe, read it out to a file on disk, then ...
5 years, 10 months ago (2015-02-06 03:21:25 UTC) #22
jamesr
5 years, 10 months ago (2015-02-06 05:07:24 UTC) #23
To expand on that a bit, we're going to need to make a number of changes to
loading in order to support packaging, signing+identify, out of process and
coherent caching.  When we have those we'll need to do a lot of performance
tuning.  We're also currently a bit over-encumbered by different loading paths. 
With that in mind, the only sorts of changes that should happen to loading in
the shell are ones that add fundamental new capabilities that we don't have
today and need in order to make progress in other areas or changes that simplify
things.  This patch doesn't add a fundamental new capability to the shell since
everything it does could be done using existing primitives and it adds another
loading path to worry about which will make accomplishing all of the other goals
I mentioned harder.  This sounds like a bad tradeoff to make.

Powered by Google App Engine
This is Rietveld 408576698