From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938767AbcJXNVI (ORCPT ); Mon, 24 Oct 2016 09:21:08 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37950 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934917AbcJXNVG (ORCPT ); Mon, 24 Oct 2016 09:21:06 -0400 From: Martijn Coenen To: gregkh@linuxfoundation.org Cc: arve@android.com, linux-kernel@vger.kernel.org Subject: [PATCH 00/10] android: binder: support for domains and scatter-gather. Date: Mon, 24 Oct 2016 15:20:28 +0200 Message-Id: <1477315238-104062-1-git-send-email-maco@android.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Android userspace will start using binder IPC for communication with HAL modules. To clearly separate this IPC domain from the existing framework IPC domain, this patch series adds support for multiple "binder domains". This is implemented by each domain having its own binder context manager, and then having a separate device node per domain. The other change introduced by this series is scatter-gather; currently all objects passed through binder IPC must be serialized in userspace, with with the exception of binder objects and file descriptors. By adding scatter- gather support for memory buffers, we can avoid the serialization copy, thereby increasing performance for larger transaction sizes. The two patches from Arve are security patches that we've already applied in android-common. I included them in front of the series because my changes touch quite some of that code. Arve Hjønnevåg (2): ANDROID: binder: Add strong ref checks ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct Martijn Coenen (8): android: binder: split flat_binder_object. android: binder: support multiple context managers. android: binder: deal with contexts in debugfs. android: binder: support multiple /dev instances. android: binder: refactor binder_transact() android: binder: add extra size to allocator. android: binder: support for scatter-gather. android: binder: support for file-descriptor arrays. drivers/android/Kconfig | 12 + drivers/android/binder.c | 1021 +++++++++++++++++++++++++++-------- include/uapi/linux/android/binder.h | 103 +++- 3 files changed, 910 insertions(+), 226 deletions(-) -- 2.8.0.rc3.226.g39d4020