Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5665619imm; Tue, 16 Oct 2018 14:04:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV61wEuFgKXdeT4LngkrwZnADCdyvEfAA6LkrGH7OH1jUHiwwS/ik78ZOt5DlnYpxPc+6qozj X-Received: by 2002:a17:902:7897:: with SMTP id q23-v6mr23451560pll.54.1539723867312; Tue, 16 Oct 2018 14:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539723867; cv=none; d=google.com; s=arc-20160816; b=wFRlQdFMHxn3rVs104l4mmmv5iWhEcWURMnEPjWN/3T7/SsKOU8XWbEeIzFMBX7INK 5ViHH6Wtk8MiUwZUKHt05gNHWWFjsgxT4iBmNzajBSSeS3KCgT1OlpJKXZZyVW02aU7c llYKBjRcXSDUjzAxK7OzbkzMC2HVNaSs8ijPVqzZz+Hc1pce/Luob6JAYu/tLsfGM66C z8NPghLtXCLWTCvVlekVuEU2U82KkIiSZmNxGEMr5d4LNIRXmBBUKcqxIrR36+2hThrf H+nQqDkz515mBvDgingJ2OMv7DDumnCkI5qKHGNL23CYJPKeMS4ivgVD55a7nbkjSYo2 4KcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/L7vfKT1keO4JMijtJelS+0vXzR6hSBZqz3nUHjBSyc=; b=r2xi4+yObpiQP/87V0vtAUIAxJyDHGwA5kIjsVmC0hXaGE5+xjSvrdHhK/Nu8DoFqE ofRfx9vtro2Z/3erMDZiJtF+m7xMo3ushRjC+h5B13eLYUnJ5hzSCiIY7e2nn+24ijA9 7Xu4w9OPGqSMULD+wD9fL9AaEXB+5klFn6fA5x2sYjsC/wNc1vP8R5zAevJtrA0K8hhX Cx+rdUDvtwqNGTJzL+/dcTXn5XIN6yYxOiZbKuQDV0R6aLBkS1QrikgqLDU6IJQCWmrY IYkym+Fpt71VZsAoAMsE6vSMVoRcIa5Eom3rT7YLsTLIUvZ2vE2IvVSqN3IkDxsL7JUn MHyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=v8KFB2FV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22-v6si14810828pll.353.2018.10.16.14.04.11; Tue, 16 Oct 2018 14:04:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=v8KFB2FV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbeJQEy2 (ORCPT + 99 others); Wed, 17 Oct 2018 00:54:28 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34875 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbeJQEy2 (ORCPT ); Wed, 17 Oct 2018 00:54:28 -0400 Received: by mail-lj1-f195.google.com with SMTP id o14-v6so22289373ljj.2 for ; Tue, 16 Oct 2018 14:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/L7vfKT1keO4JMijtJelS+0vXzR6hSBZqz3nUHjBSyc=; b=v8KFB2FVDecrSH1EHp8K5gXha48/0SO6HfdgftMmE2ZS/A8gkB4+6hJnZFZDDTQ/rL 01ZVrPmdwR1lVfwmPvSl6fB/HRJdLS4xJ1++OFFZTLcixM1SMS8Jf4UA8k6L27vFysZo iT9PjHrbHx9U+1d2fFHpDltOBavET5x+pgSamfKdyShwjIwzbhyqTt4HzP2sbSlLqBWy 2zPfulqJwx80AtdJi5UheEIjR1uWHEDC2LfALN2xbNSVlYGCCg0eQy4o/FqFezg99itx b3S7XEXhz8qm/QgRNayK2CLFfXSkpR0bo1gN2W7HA4csOplaINnEyJUacHtleVicsfed OB0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/L7vfKT1keO4JMijtJelS+0vXzR6hSBZqz3nUHjBSyc=; b=szbdJ0a9d7gh9PlO0qEQXZjKeB1v8vDH4SpBXZ5rNMz5IZtF+WY6RbZWOCxIXp3uxZ ew9dHnLiwHKVG2TdlwSrfwqKL7XelQ6c/mUmobDneotYT+v2ZxDlYmAvoh2CyzvtQwOi JhLv1uVyLg6dXJdl2LoQMbcsjTFJ7/wJSm6K6rSPPKwclGOWSZw1/kItGOqHUtwJwBjg j7nt5mg3+CUGFp5qfkGdexcZn2Sd0JPI5+aEyv5qZegl9pPB6er2S+1fisR4KB5WZmR0 +X4H5ySuTGrUK8wD6H6mwEiNAdLB2uJ05U+mJWnja2Pam7LTP+vJbvFsV95z8NnbPDEu 7OPw== X-Gm-Message-State: ABuFfojR48MQowDQ9F9MCca5Q2i11fngT7n+3mgisy85N2eYDOJ9P0Ge cLbTcPDSiE/vx/YkJOCv8n5dKSQNurevL1DOErrNFA== X-Received: by 2002:a2e:7017:: with SMTP id l23-v6mr10311025ljc.160.1539723733115; Tue, 16 Oct 2018 14:02:13 -0700 (PDT) MIME-Version: 1.0 References: <20181003171720.169953-1-rkir@google.com> <20181003171720.169953-9-rkir@google.com> <20181015183807.GA6905@kroah.com> <20181015190134.GA6700@kroah.com> <20181016062924.GB882@kroah.com> In-Reply-To: <20181016062924.GB882@kroah.com> From: Roman Kiryanov Date: Tue, 16 Oct 2018 14:02:01 -0700 Message-ID: Subject: Re: [PATCH v3 09/15] platform: goldfish: pipe: Move goldfish_pipe to goldfish_pipe_v2 To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Todd Kjos Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > I don't want to mix v1 and v2. > > Why? What is the difference? > Why do you even need/want 2 different drivers here In old emulators we implemented the device differently, so we need a different driver. > for something that really should be done with the virtio > interface instead? We are already looking into virtio. But we did not find a userspace API that virtio provides to replace our pipe. The closest we found is virtqueue, but it is a kernel thing. So we will need goldfish_pipe_v3. > > I don't see how userspace could be affected, unless we refer to > > __FILE__ inside the driver for some important things. I believe we > > don't. > > How does your userspace know what module to automatically load? That's > what usually breaks if you do not have proper platform binding happening > automatically. I am not sure if I understand your question. Userspace opens the device by its name. The device name is hardcoded: #define DEVICE_NAME "goldfish_pipe" https://android.googlesource.com/kernel/goldfish/+/android-goldfish-4.14-dev/drivers/platform/goldfish/goldfish_pipe.h#19 I still don't understand how kernel filenames are involved (and whether should they) into userpspace.