From: Paolo Bonzini <pbonzini@redhat.com>
To: Houcheng Lin <houcheng@gmail.com>
Cc: qemu-devel@nongnu.org, Fam Zheng <famz@redhat.com>,
linhaocheng@itri.org.tw, Peter Maydell <peter.maydell@linaro.org>,
kvm@vger.kernel.org
Subject: Re: [RFC PATCH] os-android: Add support to android platform, built by ndk-r10
Date: Wed, 16 Sep 2015 12:28:57 +0200 [thread overview]
Message-ID: <55F94469.1080708@redhat.com> (raw)
In-Reply-To: <CAL8JtxC9S-oEjEzLoWCuuX5o4D2P7ek+MdnKWsCiOQcPkxxDew@mail.gmail.com>
On 16/09/2015 11:54, Houcheng Lin wrote:
> 2015-09-16 17:38 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
>>
>> 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
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Houcheng Lin <houcheng@gmail.com>
Cc: linhaocheng@itri.org.tw, Peter Maydell <peter.maydell@linaro.org>,
Fam Zheng <famz@redhat.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [RFC PATCH] os-android: Add support to android platform, built by ndk-r10
Date: Wed, 16 Sep 2015 12:28:57 +0200 [thread overview]
Message-ID: <55F94469.1080708@redhat.com> (raw)
In-Reply-To: <CAL8JtxC9S-oEjEzLoWCuuX5o4D2P7ek+MdnKWsCiOQcPkxxDew@mail.gmail.com>
On 16/09/2015 11:54, Houcheng Lin wrote:
> 2015-09-16 17:38 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
>>
>> 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
next prev parent reply other threads:[~2015-09-16 10:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 2:11 [RFC PATCH] os-android: Add support to android platform, built by ndk-r10 Houcheng Lin
2015-09-15 9:41 ` Paolo Bonzini
2015-09-15 17:26 ` Houcheng Lin
2015-09-15 17:34 ` Houcheng Lin
2015-09-15 17:34 ` [Qemu-devel] " Houcheng Lin
2015-09-16 8:09 ` Paolo Bonzini
2015-09-16 8:09 ` [Qemu-devel] " Paolo Bonzini
2015-09-16 9:28 ` Houcheng Lin
2015-09-16 9:28 ` [Qemu-devel] " Houcheng Lin
2015-09-16 9:38 ` Paolo Bonzini
2015-09-16 9:38 ` [Qemu-devel] " Paolo Bonzini
2015-09-16 9:54 ` Houcheng Lin
2015-09-16 9:54 ` [Qemu-devel] " Houcheng Lin
2015-09-16 10:28 ` Paolo Bonzini [this message]
2015-09-16 10:28 ` Paolo Bonzini
2015-09-15 10:19 ` Fam Zheng
-- strict thread matches above, loose matches on Subject: below --
2015-09-15 5:11 Houcheng Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F94469.1080708@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=houcheng@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linhaocheng@itri.org.tw \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.