From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zc9xZ-0007OS-J0 for qemu-devel@nongnu.org; Wed, 16 Sep 2015 06:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zc9xW-0006CK-Dp for qemu-devel@nongnu.org; Wed, 16 Sep 2015 06:29:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zc9xW-0006CG-8t for qemu-devel@nongnu.org; Wed, 16 Sep 2015 06:29:02 -0400 References: <1442283070-3224-1-git-send-email-houcheng@gmail.com> <55F7E7B8.9020502@redhat.com> <55F923A5.3000605@redhat.com> <55F9388C.4030504@redhat.com> From: Paolo Bonzini Message-ID: <55F94469.1080708@redhat.com> Date: Wed, 16 Sep 2015 12:28:57 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH] os-android: Add support to android platform, built by ndk-r10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Houcheng Lin Cc: linhaocheng@itri.org.tw, Peter Maydell , Fam Zheng , qemu-devel@nongnu.org, kvm@vger.kernel.org On 16/09/2015 11:54, Houcheng Lin wrote: > 2015-09-16 17:38 GMT+08:00 Paolo Bonzini : >> >> Actually it's even simpler. shm_open is basically just >> >> char *s; >> int fd; >> >> asprintf(&s, "/dev/shm/%s", name); >> fd = open(s, name | O_CLOEXEC, mode); >> free(s); >> return fd; >> >> plus some error checking. Do Android systems have /dev/shm? >> >> Paolo > > It's simple, thanks. > The android have no /dev/shm. Though we can mknod it but need root prividlege to > do it. Oh well. Then I think it's okay to disable ivshmem on Android. Paolo