From: Li Guang <lig.fnst@cn.fujitsu.com>
To: 陈梁 <chenliang0016@icloud.com>
Cc: qemu list <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] question: guest will hang when call system function in migration thread.
Date: Fri, 5 Dec 2014 18:05:25 +0800 [thread overview]
Message-ID: <54818365.5030900@cn.fujitsu.com> (raw)
In-Reply-To: <BA2189DF-CFA4-4C14-A0E9-7684162A40DE@icloud.com>
Hi,
which version you tested?
do you let vm continue to run after migration?
can you provide more info?
can't reproduce it on latest version.
Thanks!
On 12/04/2014 11:14 PM, 陈梁 wrote:
> Hi all
>
> guest will hang when call system function in migration thread. The cpu usage of vcpu thread is 100%.
>
> the code like this:
>
> static void *migration_thread(void *opaque)
> {
> MigrationState *s = opaque;
> int64_t initial_time = qemu_clock_get_ms(QEMU_CLOCK_REALTIME);
> int64_t setup_start = qemu_clock_get_ms(QEMU_CLOCK_HOST);
> int64_t initial_bytes = 0;
> int64_t max_size = 0;
> int64_t start_time = initial_time;
> bool old_vm_running = false;
>
> //test code
> system("df -h”);
>
> qemu_savevm_state_begin(s->file, &s->params);
> …
>
> Is it anything wrong? or it is not allow to call system in migration thread?
>
>
prev parent reply other threads:[~2014-12-05 10:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-04 15:14 [Qemu-devel] question: guest will hang when call system function in migration thread 陈梁
2014-12-05 10:05 ` Li Guang [this message]
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=54818365.5030900@cn.fujitsu.com \
--to=lig.fnst@cn.fujitsu.com \
--cc=chenliang0016@icloud.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.