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

Issue 7108031: this patch adds the manifest proxy server to sel_ldr and the manifest (Closed)

Created:
9 years, 6 months ago by bsy
Modified:
9 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

this patch adds the manifest proxy server to sel_ldr and the manifest proxy service stubs to reverse_service in the plugin. the service stubs are not hooked up, and just logs and sends back bogus replies. this patch also adds an SRPC-based (irt=0) test to tests/nameservice/ so that the nexe would run in the browser and thereby trigger the RPCs to the plugin to exercise the name service and manifest sub-name service functionality. the plan is that the RPC service stubs in the plugin will be replaced with Pepper calls that uses the trusted interface to extract the underlying file descriptor and pass it back to the untrusted IRT code, initially for read-only access. the IRT can use the descriptor to emulate the Pepper file object read/write API using read/write service runtime syscalls, rather than doing bulk data transfers via RPCs, providing a short-circuited I/O path. for read/write access (later), hooking up quota management callbacks (also via reverse channels) will be necessary, but quota calls are control plane traffic, and bulk data plane traffic should continue to go through service runtime syscalls. TEST= tests/nameservice/srpc_nameservice_test BUG= http://code.google.com/p/nativeclient/issues/detail?id=1534 http://code.google.com/p/nativeclient/issues/detail?id=566 Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=5671

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 47

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Total comments: 16

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 2

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1280 lines, -70 lines) Patch
M SConstruct View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A src/trusted/manifest_name_service_proxy/build.scons View 1 chunk +12 lines, -0 lines 0 comments Download
A src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A src/trusted/manifest_name_service_proxy/manifest_proxy.h View 1 1 chunk +78 lines, -0 lines 0 comments Download
A src/trusted/manifest_name_service_proxy/manifest_proxy.c View 1 2 3 4 5 6 1 chunk +354 lines, -0 lines 0 comments Download
M src/trusted/plugin/service_runtime.h View 1 2 3 4 5 6 2 chunks +5 lines, -6 lines 0 comments Download
M src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
A src/trusted/reverse_service/manifest_rpc.h View 1 chunk +17 lines, -0 lines 0 comments Download
A src/trusted/reverse_service/reverse_control_rpc.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M src/trusted/reverse_service/reverse_service.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/trusted/reverse_service/reverse_service.cc View 1 2 3 4 5 6 7 8 5 chunks +91 lines, -5 lines 0 comments Download
M src/trusted/service_runtime/build.scons View 1 2 3 4 5 6 6 chunks +6 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/name_service/default_name_service.c View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M src/trusted/service_runtime/name_service/name_service.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M src/trusted/service_runtime/name_service/name_service.c View 1 2 3 4 5 6 8 chunks +44 lines, -2 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.h View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.c View 1 2 3 4 5 6 7 13 chunks +44 lines, -33 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr_standard.c View 1 2 3 4 5 6 3 chunks +96 lines, -1 line 0 comments Download
M src/trusted/service_runtime/sel_ldr_thread_interface.c View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/service_runtime/service_runtime.gyp View 1 2 3 4 5 6 4 chunks +2 lines, -4 lines 0 comments Download
M src/trusted/simple_service/nacl_simple_service.c View 1 2 3 4 5 6 6 chunks +14 lines, -7 lines 0 comments Download
M src/trusted/threading/nacl_thread_interface.c View 1 2 3 4 5 6 3 chunks +14 lines, -2 lines 0 comments Download
M tests/multiple_sandboxes/nacl.scons View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tests/nameservice/nacl.scons View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A tests/nameservice/srpc_nameservice.nmf View 1 chunk +7 lines, -0 lines 0 comments Download
A tests/nameservice/srpc_nameservice_test.c View 1 2 3 4 5 1 chunk +292 lines, -0 lines 0 comments Download
A tests/nameservice/srpc_nameservice_test.html View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
bsy
9 years, 6 months ago (2011-06-10 23:13:00 UTC) #1
bsy
polina: plz review the plugin-side changes noel: plz review the rest
9 years, 6 months ago (2011-06-10 23:14:10 UTC) #2
bsy
ping
9 years, 6 months ago (2011-06-13 23:43:52 UTC) #3
noelallen_use_chromium
First set of comments, I need to check the nexe to understand exactly what you ...
9 years, 6 months ago (2011-06-14 02:25:45 UTC) #4
bsy
ncbray: noelallen wants you to check line 20 (or thereabouts) of http://codereview.chromium.org/7108031/diff/4006/tests/nameservice/nacl.scons?column_width=80 -bsy On Mon, ...
9 years, 6 months ago (2011-06-14 20:29:32 UTC) #5
bsy
http://codereview.chromium.org/7108031/diff/4006/src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp File src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp (right): http://codereview.chromium.org/7108031/diff/4006/src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp#newcode44 src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp:44: 'XP_WIN', cut-n-pasted cargo-cult code. http://codereview.chromium.org/7108031/diff/4006/src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp#newcode55 src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp:55: 'configurations': { src/trusted/desc/desc.gyp ...
9 years, 6 months ago (2011-06-14 20:30:03 UTC) #6
noelallen_use_chromium
A few nits, and a missing error check in the test, otherwise LGTM. http://codereview.chromium.org/7108031/diff/4006/src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp File ...
9 years, 6 months ago (2011-06-14 22:08:13 UTC) #7
bsy
polina? http://codereview.chromium.org/7108031/diff/4006/src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp File src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp (right): http://codereview.chromium.org/7108031/diff/4006/src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp#newcode28 src/trusted/manifest_name_service_proxy/manifest_name_service_proxy.gyp:28: ['OS=="linux"', { On 2011/06/14 22:08:14, noelallen wrote: > ...
9 years, 6 months ago (2011-06-15 00:21:03 UTC) #8
polina
http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc File src/trusted/reverse_service/reverse_service.cc (right): http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc#newcode49 src/trusted/reverse_service/reverse_service.cc:49: out_args[0]->u.bval = 1; Start now always succeeds? http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc#newcode89 src/trusted/reverse_service/reverse_service.cc:89: ...
9 years, 6 months ago (2011-06-15 00:40:29 UTC) #9
polina
http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc File src/trusted/reverse_service/reverse_service.cc (right): http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc#newcode118 src/trusted/reverse_service/reverse_service.cc:118: out_args[1]->u.hval = (struct NaClDesc*) NaClDescInvalidMake(); On 2011/06/15 00:40:29, polina ...
9 years, 6 months ago (2011-06-15 00:51:05 UTC) #10
bsy
ptal http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc File src/trusted/reverse_service/reverse_service.cc (right): http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc#newcode49 src/trusted/reverse_service/reverse_service.cc:49: out_args[0]->u.bval = 1; weird. reverted. http://codereview.chromium.org/7108031/diff/20001/src/trusted/reverse_service/reverse_service.cc#newcode89 src/trusted/reverse_service/reverse_service.cc:89: // ...
9 years, 6 months ago (2011-06-15 20:03:35 UTC) #11
polina
LGTM http://codereview.chromium.org/7108031/diff/26004/src/trusted/reverse_service/reverse_service.cc File src/trusted/reverse_service/reverse_service.cc (right): http://codereview.chromium.org/7108031/diff/26004/src/trusted/reverse_service/reverse_service.cc#newcode117 src/trusted/reverse_service/reverse_service.cc:117: // actually do lookups/URL fetches. Please capitalize and ...
9 years, 6 months ago (2011-06-15 22:50:12 UTC) #12
bsy
9 years, 6 months ago (2011-06-15 23:26:57 UTC) #13
thx

r5671

http://codereview.chromium.org/7108031/diff/26004/src/trusted/reverse_service...
File src/trusted/reverse_service/reverse_service.cc (right):

http://codereview.chromium.org/7108031/diff/26004/src/trusted/reverse_service...
src/trusted/reverse_service/reverse_service.cc:117: // actually do lookups/URL
fetches.
On 2011/06/15 22:50:12, polina wrote:
> Please capitalize and add a matching comment to the other placeholder(s).

Done.

Powered by Google App Engine
This is Rietveld 408576698