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

Issue 100373005: Initial implementation of Bare Metal Mode for NaCl. (Closed)

Created:
7 years ago by hidehiko
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Takashi Toyoshima
Visibility:
Public.

Description

Initial implementation of Bare Metal Mode for NaCl. This CL introduces bare_metal_main, which contains the implementation for Bare Metal Mode replacing nacl_secure_service, and ELF related utility. Some codes are extracted from native_client/src/trusted/service_runtime in order to separate Bare Metal related stuff completely from service runtime. Some parts should be refactored and merged eventually, probably after we convince ourselves that the Bare Metal is stable enough. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=Tried to load the elf binary with this loader, and made sure that the entry point is reached. TBR=jln@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243060

Patch Set 1 : #

Total comments: 18

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 20

Patch Set 4 : Rebase #

Patch Set 5 : #

Total comments: 33

Patch Set 6 : #

Total comments: 18

Patch Set 7 : Rebase #

Patch Set 8 : #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -2 lines) Patch
M components/nacl.gyp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_messages.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_switches.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_types.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_types.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
A components/nacl/loader/nonsfi/elf_loader.h View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A components/nacl/loader/nonsfi/elf_loader.cc View 1 2 3 4 5 6 7 1 chunk +336 lines, -0 lines 0 comments Download
A components/nacl/loader/nonsfi/nonsfi_main.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A components/nacl/loader/nonsfi/nonsfi_main.cc View 1 2 3 4 5 6 7 1 chunk +167 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
hidehiko
This CL is the result of movement from NaCl source tree to Chrome source tree, ...
7 years ago (2013-12-05 16:53:56 UTC) #1
Mark Seaborn
Mostly high-level comments to start with... https://codereview.chromium.org/100373005/diff/20001/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/100373005/diff/20001/components/nacl.gyp#newcode8 components/nacl.gyp:8: 'enable_bare_metal_nacl': 0, If ...
7 years ago (2013-12-06 03:21:16 UTC) #2
hidehiko
Thank you for your review. PTAL? https://codereview.chromium.org/100373005/diff/20001/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/100373005/diff/20001/components/nacl.gyp#newcode8 components/nacl.gyp:8: 'enable_bare_metal_nacl': 0, On ...
7 years ago (2013-12-06 17:40:02 UTC) #3
Mark Seaborn
Thanks for making the changes quickly. https://codereview.chromium.org/100373005/diff/40001/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/100373005/diff/40001/components/nacl.gyp#newcode215 components/nacl.gyp:215: ['target_arch == "ia32"', ...
7 years ago (2013-12-06 21:42:36 UTC) #4
hidehiko
Thank you for your review. PTAL. https://codereview.chromium.org/100373005/diff/40001/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/100373005/diff/40001/components/nacl.gyp#newcode215 components/nacl.gyp:215: ['target_arch == "ia32"', ...
7 years ago (2013-12-09 07:43:38 UTC) #5
Mark Seaborn
I tried testing this on x86-64 using the method I described in: https://codereview.chromium.org/100373005/diff/20001/components/nacl/loader/bare_metal/bare_metal_main.c#newcode252 Specifically: $ ...
7 years ago (2013-12-10 19:56:44 UTC) #6
hidehiko
Could you take another look? I ran the test which you described in the previous ...
7 years ago (2013-12-11 07:56:14 UTC) #7
Mark Seaborn
OK, it's mostly just small things now... https://codereview.chromium.org/100373005/diff/120001/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/100373005/diff/120001/components/nacl.gyp#newcode189 components/nacl.gyp:189: # Currently ...
7 years ago (2013-12-12 04:49:47 UTC) #8
hidehiko
PTAL. Daisy trybot is currently failing, but according to the log, the cause looks not ...
7 years ago (2013-12-12 09:26:03 UTC) #9
hidehiko
Hi Mark, friendly ping? On 2013/12/12 09:26:03, hidehiko wrote: > PTAL. > > Daisy trybot ...
7 years ago (2013-12-17 06:28:30 UTC) #10
Mark Seaborn
LGTM https://codereview.chromium.org/100373005/diff/120001/components/nacl/loader/nonsfi/nonsfi_main.cc File components/nacl/loader/nonsfi/nonsfi_main.cc (right): https://codereview.chromium.org/100373005/diff/120001/components/nacl/loader/nonsfi/nonsfi_main.cc#newcode35 components/nacl/loader/nonsfi/nonsfi_main.cc:35: UNREFERENCED_PARAMETER(out_args); On 2013/12/12 09:26:04, hidehiko wrote: > On ...
7 years ago (2013-12-17 21:18:55 UTC) #11
hidehiko
Thank you, Mark, for your review! jschuh@, could you kindly review components/nacl/common/nacl_messages.h as an OWNER? ...
7 years ago (2013-12-18 08:38:02 UTC) #12
Mark Seaborn
On 2013/12/18 08:38:02, hidehiko wrote: > jschuh@, could you kindly review components/nacl/common/nacl_messages.h > as an ...
7 years ago (2013-12-20 20:35:02 UTC) #13
jschuh
Ah, sorry. Given the background, @jln is probably a much better choice for reviewer. On ...
7 years ago (2013-12-21 03:38:01 UTC) #14
Mark Seaborn
On 20 December 2013 12:35, <mseaborn@chromium.org> wrote: > On 2013/12/18 08:38:02, hidehiko wrote: > >> ...
6 years, 11 months ago (2014-01-02 18:12:19 UTC) #15
hidehiko
On 2014/01/02 18:12:19, Mark Seaborn wrote: > On 20 December 2013 12:35, <mailto:mseaborn@chromium.org> wrote: > ...
6 years, 11 months ago (2014-01-06 02:26:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/100373005/250001
6 years, 11 months ago (2014-01-06 02:26:38 UTC) #17
commit-bot: I haz the power
Change committed as 243060
6 years, 11 months ago (2014-01-06 05:05:11 UTC) #18
jln (very slow on Chromium)
6 years, 10 months ago (2014-02-06 19:35:57 UTC) #19
Message was sent while issue was closed.
components/nacl/common/nacl_messages.h lgtm

Powered by Google App Engine
This is Rietveld 408576698