qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: Linhaifeng <haifeng.lin@huawei.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Thibaut Collet <thibaut.collet@6wind.com>,
	jasowang@redhat.com, QEMU <qemu-devel@nongnu.org>,
	stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH v4 1/1] vhost user: add support of live migration
Date: Sat, 18 Jul 2015 09:18:09 -0400 (EDT)	[thread overview]
Message-ID: <135693298.407386.1437225489574.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAJ+F1CK1dwhi5KuwF43HxKa0cijVzyMAqEH6DHQx3vb7Xri8+w@mail.gmail.com>


> > Do you know the size of the ram_addr_t space from
> > VHOST_USER_SET_MEM_TABLE's user address and size fields?
> 
> For some reason, vhost_get_log_size() also takes pc-bios region. I
> think it's quite unnecessary given that the backend will not have
> access to this region.

That's by design.  The pc-bios is mapped into the guest memory, so it
is taken into account.  It shouldn't be a problem, it's just wasting
memory for <4GB VMs but it's not more expensive at run time.

> get_log_size() also computes the size of the rings, I wonder if it's
> necessary since the dev->mem->regions should already contain the
> rings, isn't it?

Indeed.

> > If the size isn't needed, you can reuse LOG_BASE, ignoring the content
> > of the payload and adding the SCM_RIGHTS file descriptor.
> 
> That's possible, if we assume that existing backends won't leak the
> passed fds (vapp does for ex), perhaps it needs a new flag (vhost-user
> features flags are common with vhost, not sure we want to add that
> here, but where else)

Ok, that's for mst to answer.  I think the leak wouldn't be too bad
because right now vhost-user live migration corrupts data so nobody
must be using it.  But if you want to introduce a new message, that
would also be okay of course.

Paolo

  reply	other threads:[~2015-07-18 13:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26  9:22 [Qemu-devel] [PATCH v4 0/1] Add live migration for vhost user Thibaut Collet
2015-06-26  9:22 ` [Qemu-devel] [PATCH v4 1/1] vhost user: add support of live migration Thibaut Collet
2015-07-10 13:05   ` Paolo Bonzini
2015-07-13  2:27     ` Linhaifeng
2015-07-17  0:19       ` Marc-André Lureau
2015-07-17  2:25         ` Paolo Bonzini
2015-07-17 10:34           ` Marc-André Lureau
2015-07-17 12:57             ` Paolo Bonzini
2015-07-17 13:35               ` Marc-André Lureau
2015-07-17 13:50                 ` Paolo Bonzini
2015-07-18  0:07                   ` Marc-André Lureau
2015-07-18 13:18                     ` Paolo Bonzini [this message]
2015-07-17  0:20 ` [Qemu-devel] [PATCH v4 0/1] Add live migration for vhost user Marc-André Lureau

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=135693298.407386.1437225489574.JavaMail.zimbra@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=haifeng.lin@huawei.com \
    --cc=jasowang@redhat.com \
    --cc=marcandre.lureau@gmail.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=thibaut.collet@6wind.com \
    /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).