These two patches implement a lock for long-running
job(save, dump and migration) and normal job which will
return in short time but maybe affect the state of virtual
machine.

With these patches, the normal job could not execute while
the long-ruuning job or other normal job is running.

In order to tracking these job, job type for normal job and
long-ruuning job(will be called as async job in code) is
defined.

The abort job is called while user want to cancel such async
job. Note that there is no cancellation function for async
job in xenlight stack. So, abort function just block the
cancellation of user.

Bamvor Jian Zhang (2):
  Introduce a lock for libxl long-running api
  Add lock for libxl api

 src/libxl/libxl_conf.h   |  58 +++++
 src/libxl/libxl_driver.c | 665 ++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 662 insertions(+), 61 deletions(-)

-- 
1.7.12

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to