All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] question: guest will hang when call system function in migration thread.
@ 2014-12-04 15:14 陈梁
  2014-12-05 10:05 ` Li Guang
  0 siblings, 1 reply; 2+ messages in thread
From: 陈梁 @ 2014-12-04 15:14 UTC (permalink / raw)
  To: qemu list; +Cc: 陈梁

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?
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] question: guest will hang when call system function in migration thread.
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Li Guang @ 2014-12-05 10:05 UTC (permalink / raw)
  To: 陈梁; +Cc: qemu list

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?
>  
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-05 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.