[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] question: guest will hang when call system function in
From: |
Li Guang |
Subject: |
Re: [Qemu-devel] question: guest will hang when call system function in migration thread. |
Date: |
Fri, 5 Dec 2014 18:05:25 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
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?
>
>