Skip to contentSkip to conversation

how to check if savevm is completed?

Qemu-devel Zhang Haoyu 2 participants 4 messages Jul 17, 2014 – Aug 28, 2014

lore
Share & tools
lore
#0 lore raw

Hi, all
I run savevm by qemu-monitor, but how to check if savevm is completed? I haven't find the query interface.

Thanks,
Zhang Haoyu

#1 lore raw
Quoted 1 line · Zhang Haoyu

I run savevm by qemu-monitor, but how to check if savevm is completed? I haven't find the query interface.

That is because savevm is synchronous. It blocks until the operation is complete. You cannot use the QEMU monitor while savevm is executing.

Stefan

#2 lore raw
In reply to Zhang Haoyu
Quoted 5 lines
Quoted 1 line

I run savevm by qemu-monitor, but how to check if savevm is completed? I haven't find the query interface.

That is because savevm is synchronous. It blocks until the operation is complete. You cannot use the QEMU monitor while savevm is executing.

So, only the asynchronous operations provide the query interface, like hmp_info_migrate, right?

Thanks,
Zhang Haoyu

Quoted 1 line

Stefan

#3 lore raw
Quoted 6 lines · Zhang Haoyu
Quoted 5 lines
Quoted 1 line

I run savevm by qemu-monitor, but how to check if savevm is completed? I haven't find the query interface.

That is because savevm is synchronous. It blocks until the operation is complete. You cannot use the QEMU monitor while savevm is executing.

So, only the asynchronous operations provide the query interface, like hmp_info_migrate, right?

Yes, because the monitor is blocked during synchronous operations. Only one command is processed at a time.

Stefan