All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tan, Jianfeng" <jianfeng.tan@intel.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Jason Wang <jasowang@redhat.com>,
	Maxime Coquelin <maxime.coquelin@redhat.com>,
	"Michael S . Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration
Date: Thu, 8 Feb 2018 09:20:45 +0800	[thread overview]
Message-ID: <8474af94-7bff-a7b5-e316-b8a0e332467e@intel.com> (raw)
In-Reply-To: <20180207130635.4033f8b8@redhat.com>



On 2/7/2018 8:06 PM, Igor Mammedov wrote:
> On Wed, 7 Feb 2018 07:49:58 +0000
> "Tan, Jianfeng" <jianfeng.tan@intel.com> wrote:
>
>>> -----Original Message-----
>>> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
>>> Sent: Tuesday, February 6, 2018 1:32 AM
>>> To: Igor Mammedov
>>> Cc: Tan, Jianfeng; qemu-devel@nongnu.org; Jason Wang; Maxime Coquelin;
>>> Michael S . Tsirkin
>>> Subject: Re: [Qemu-devel] [RFC] exec: eliminate ram naming issue as
>>> migration
>>>
>>> On 05/02/2018 18:15, Igor Mammedov wrote:
>>>>>> Then we would have both ram block named pc.ram:
>>>>>>                Block Name    PSize
>>>>>>                        pc.ram     4 KiB
>>>>>>        /objects/pc.ram    2 MiB
>>>>>>
>>>>>> But I assume it's a corner case which not really happen.
>>>>> Yeah, you're right. :/  I hadn't thought of hotplug.  It can happen indeed.
>>>> perhaps we should fail object_add memory-backend-foo if it resulted
>>>> in creating ramblock with duplicate id
>>> Note that it would only be duplicated with Jianfeng's patch.  So I'm
>>> worried that his patch is worse than what we have now, because it may
>>> create conflicts with system RAMBlock names are not necessarily
>>> predictable.  Right now, -object creates RAMBlock names that are nicely
>>> constrained within /object/.
>> So we are trading off between the benefit it takes and the bad effect it brings.
>>
>> I'm wondering if the above example is the only failed case this patch leads to, i.e, only there is a ram named "pc.ram" and "/object/pc.ram" in the src VM?
>>
>> Please also consider the second option, that adding an alias name for RAMBlock; I'm not a big fan for that one, as it just pushes the problem to OpenStack/Libvirt.
> looking at provided CLI examples it's configuration issue on src and dst,
> one shall not mix numa and non numa variants.

Aha, that's another thing we also want to change. We now add numa at dst 
node, only because without -numa, we cannot set up the file-baked memory 
with share=on.

For example, "-m xG -mem-path xxx" can set up a file-baked memory, but 
the file is not share-able.

>
>> Or any other suggestions?
> Fix configuration, namely dst side of it (i.e. use the same -m only variant
> without -numa as it's on src).
>
> BTW, what are you trying to achieve adding -numa on dst?

See above reply.

Thanks,
Jianfeng

  reply	other threads:[~2018-02-08  1:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-05 14:58 [Qemu-devel] [RFC] exec: eliminate ram naming issue as migration Jianfeng Tan
2018-02-05 15:45 ` no-reply
2018-02-05 15:53 ` Paolo Bonzini
2018-02-05 16:12   ` Tan, Jianfeng
2018-02-05 16:19     ` Paolo Bonzini
2018-02-05 16:44       ` Tan, Jianfeng
2018-02-05 16:53         ` Paolo Bonzini
2018-02-05 17:15       ` Igor Mammedov
2018-02-05 17:31         ` Paolo Bonzini
2018-02-07  7:49           ` Tan, Jianfeng
2018-02-07 12:06             ` Igor Mammedov
2018-02-08  1:20               ` Tan, Jianfeng [this message]
2018-02-08  9:51                 ` Igor Mammedov
2018-02-08 10:18                   ` Tan, Jianfeng
2018-02-08 11:30                     ` Igor Mammedov
2018-02-24  3:08                       ` Tan, Jianfeng
2018-02-24  3:11                       ` Tan, Jianfeng
2018-02-26 12:55                         ` Igor Mammedov
2018-02-26 14:43                           ` Paolo Bonzini
2018-02-27  4:55                             ` Tan, Jianfeng
2018-02-27  4:36                           ` Tan, Jianfeng
2018-02-28 15:40                             ` Igor Mammedov
2018-02-05 18:44         ` Dr. David Alan Gilbert
2018-02-05 16:12 ` no-reply
2018-02-05 16:29 ` Igor Mammedov
2018-02-05 16:51   ` Tan, Jianfeng
2018-02-05 18:36     ` Dr. David Alan Gilbert
2018-02-06 15:24       ` Igor Mammedov

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=8474af94-7bff-a7b5-e316-b8a0e332467e@intel.com \
    --to=jianfeng.tan@intel.com \
    --cc=imammedo@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=mst@redhat.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 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.