From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [RFC PATCH] os-android: Add support to android platform, built by ndk-r10 Date: Wed, 16 Sep 2015 12:28:57 +0200 Message-ID: <55F94469.1080708@redhat.com> References: <1442283070-3224-1-git-send-email-houcheng@gmail.com> <55F7E7B8.9020502@redhat.com> <55F923A5.3000605@redhat.com> <55F9388C.4030504@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, Fam Zheng , linhaocheng@itri.org.tw, Peter Maydell , kvm@vger.kernel.org To: Houcheng Lin Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42022 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbbIPK3B (ORCPT ); Wed, 16 Sep 2015 06:29:01 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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