From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Damjan Marion (damarion)" <damarion@cisco.com>
Cc: "pbonzini@redhat.com" <pbonzini@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Subject: Re: [Qemu-devel] vhost-user: broken mem regions
Date: Wed, 25 Jun 2014 18:50:38 +0300 [thread overview]
Message-ID: <20140625155038.GG15720@redhat.com> (raw)
In-Reply-To: <F6EF1C72-B3B7-4DAA-8CDB-0BD591E9E64D@cisco.com>
On Wed, Jun 25, 2014 at 03:46:04PM +0000, Damjan Marion (damarion) wrote:
>
> On 25 Jun 2014, at 17:29, Michael S. Tsirkin <mst@redhat.com> wrote:
>
> > On Wed, Jun 25, 2014 at 02:57:52PM +0000, Damjan Marion (damarion) wrote:
> >>
> >> On 25 Jun 2014, at 16:27, Michael S. Tsirkin <mst@redhat.com> wrote:
> >>
> >>> On Wed, Jun 25, 2014 at 02:20:56PM +0000, Damjan Marion (damarion) wrote:
> >>>>
> >>>> On 25 Jun 2014, at 16:13, Nikolay Nikolaev <n.nikolaev@virtualopensystems.com> wrote:
> >>>>
> >>>>>>> - it will require changes on the user side also
> >>>>>>
> >>>>>> why would it?
> >>>>>> format seems unchanged, right?
> >>>>>
> >>>>> yes, but it will happen that multiple regions have same FD so call to mmap()
> >>>>> should look different, I’m still playing with this on user side...
> >>>>> but then you shoudl somehow accumulate the sizes and send just a single fd, something along these lines.
> >>>>
> >>>> Yes, so I’m not very happy with that approach and looking if there is better proposal,
> >>>> or at least wider agreement how to address this issue.
> >>>>
> >>>> Damjan
> >>>
> >>> still not sure what the issue is ...
> >>>
> >>
> >> No issue, just additional logic is needed on user side to calculate total size of shared regions and call mmap() once per FD.
> >>
> >> Agree?
> >
> > why not just call it multiple times? AFAIK linux handles this just fine.
>
> I need to specify size when calling mmap(), so i need to run trough all regions and sum sizes before calling mmap().
You can map same file in many places.
Just call mmap many times with offsets.
--
MST
next prev parent reply other threads:[~2014-06-25 15:50 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <A459CE38-2929-47A2-8683-8D7EAF0325C0@cisco.com>
[not found] ` <20140625135207.GC14578@redhat.com>
2014-06-25 14:06 ` [Qemu-devel] vhost-user: broken mem regions Damjan Marion (damarion)
2014-06-25 14:13 ` Nikolay Nikolaev
2014-06-25 14:16 ` Michael S. Tsirkin
2014-06-25 14:20 ` Damjan Marion (damarion)
2014-06-25 14:27 ` Michael S. Tsirkin
2014-06-25 14:57 ` Damjan Marion (damarion)
2014-06-25 15:29 ` Michael S. Tsirkin
2014-06-25 15:46 ` Damjan Marion (damarion)
2014-06-25 15:50 ` Michael S. Tsirkin [this message]
2014-06-25 16:30 ` Damjan Marion (damarion)
2014-06-25 16:44 ` Paolo Bonzini
2014-06-25 16:56 ` Nikolay Nikolaev
2014-06-25 17:05 ` Paolo Bonzini
2014-06-25 18:11 ` Michael S. Tsirkin
2014-06-25 18:07 ` Michael S. Tsirkin
2014-06-25 18:13 ` Nikolay Nikolaev
2014-06-25 18:18 ` Michael S. Tsirkin
2014-06-25 21:37 ` Damjan Marion (damarion)
2014-06-26 10:03 ` Nikolay Nikolaev
2014-06-25 17:06 ` Nikolay Nikolaev
2014-06-25 18:00 ` Paolo Bonzini
2014-06-25 21:52 ` Damjan Marion (damarion)
2014-06-26 7:13 ` Michael S. Tsirkin
2014-06-26 7:44 ` Damjan Marion (damarion)
2014-06-26 7:56 ` Michael S. Tsirkin
2014-06-26 8:26 ` Damjan Marion (damarion)
[not found] ` <CADDJ2=M3=mxjHO3=gNq5xKseDyrJkaBVFLkb=SsFr0_d9UUBsQ@mail.gmail.com>
2014-06-25 14:16 ` Damjan Marion (damarion)
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=20140625155038.GG15720@redhat.com \
--to=mst@redhat.com \
--cc=damarion@cisco.com \
--cc=n.nikolaev@virtualopensystems.com \
--cc=pbonzini@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).