[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 2/8] qemu: don't restore state label twice

On 03/26/2011 08:12 AM, Eric Blake wrote:
Otherwise, if something like doStopVcpus fails after the first
restore, a second restore is attempted and throws a useless

* src/qemu/qemu_driver.c (qemudDomainSaveFlag): Avoid second
restore of state label.

Original post:

  src/qemu/qemu_driver.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 016ad1d..e0e86d3 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -2044,6 +2044,7 @@ static int qemudDomainSaveFlag(struct qemud_driver *driver, virDomainPtr dom,
                                                   vm, path)<  0)
          VIR_WARN("failed to restore save state label on %s", path);
+    bypassSecurityDriver = true;

      if (cgroup != NULL) {
          rc = virCgroupDenyDevicePath(cgroup, path,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]