]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Introduce two new job types
authorOsier Yang <jyang@redhat.com>
Mon, 13 Dec 2010 08:30:30 +0000 (16:30 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 13 Dec 2010 17:20:29 +0000 (10:20 -0700)
commit5faf88fe9809045c15de5ddc7970aca46b516fe7
tree692c9f8664c98f96efda9ae809fccd6cc51da8dc
parent84094af780adf629a792d9614d88963baaa9a753
qemu: Introduce two new job types

Currently, all of domain "save/dump/managed save/migration"
use the same function "qemudDomainWaitForMigrationComplete"
to wait the job finished, but the error messages are all
about "migration", e.g. when a domain saving job is canceled
by user, "migration was cancled by client" will be throwed as
an error message, which will be confused for user.

As a solution, intoduce two new job types(QEMU_JOB_SAVE,
QEMU_JOB_DUMP), and set "priv->jobActive" to "QEMU_JOB_SAVE"
before saving, to "QEMU_JOB_DUMP" before dumping, so that we
could get the real job type in
"qemudDomainWaitForMigrationComplete", and give more clear
message further.

And as It's not important to figure out what's the exact job
is in the DEBUG and WARN log, also we don't need translated
string in logs, simply repace "migration" with "job" in some
statements.

* src/qemu/qemu_driver.c
src/qemu/qemu_driver.c