qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: "bauerchen(陈蒙蒙)" <bauerchen@tencent.com>
Cc: borntraeger <borntraeger@de.ibm.com>,
	qemu-s390x <qemu-s390x@nongnu.org>,
	mhartmay <mhartmay@linux.ibm.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	pbonzini <pbonzini@redhat.com>
Subject: Re: [PATCH] mem-prealloc: initialize cond and mutex(Internet mail)
Date: Mon, 9 Mar 2020 14:19:14 +0100	[thread overview]
Message-ID: <20200309141914.0b9ad42f@Igors-MacBook-Pro> (raw)
In-Reply-To: <4976eaee60934e458e105bebe20d4d18@tencent.com>

On Mon, 9 Mar 2020 11:16:10 +0000
bauerchen(陈蒙蒙) <bauerchen@tencent.com> wrote:

> Thanks,  in fact,do_touch_pages is called just when vm starts up, but using init flag and Gonce maybe more elegant !
> if needed,I can submit a new patch ! 
> thanks very much!

it's called from os_mem_prealloc() -> touch_all_pages() which is called
at least once per an instance of hotsmem backend. So if several backends
are used then it should be called several times.
The same applies when a hostmem backend is added during runtime (hotplug)



  reply	other threads:[~2020-03-09 13:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06  8:50 [PATCH] mem-prealloc: initialize cond and mutex Christian Borntraeger
2020-03-06  9:06 ` Paolo Bonzini
2020-03-06  9:57 ` 回复: [PATCH] mem-prealloc: initialize cond and mutex(Internet mail) bauerchen(陈蒙蒙)
2020-03-09  9:17   ` Christian Borntraeger
2020-03-09 10:03 ` [PATCH] mem-prealloc: initialize cond and mutex Igor Mammedov
2020-03-09 10:05   ` Paolo Bonzini
2020-03-09 11:01     ` Christian Borntraeger
2020-03-09 11:16       ` Re: [PATCH] mem-prealloc: initialize cond and mutex(Internet mail) bauerchen(陈蒙蒙)
2020-03-09 13:19         ` Igor Mammedov [this message]
2020-03-10  7:06           ` bauerchen(陈蒙蒙)
2020-03-11 18:34             ` Paolo Bonzini
2020-03-12  5:05               ` bauerchen(陈蒙蒙)

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=20200309141914.0b9ad42f@Igors-MacBook-Pro \
    --to=imammedo@redhat.com \
    --cc=bauerchen@tencent.com \
    --cc=borntraeger@de.ibm.com \
    --cc=mhartmay@linux.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@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).