]> xenbits.xensource.com Git - xen.git/commitdiff
hvm: In xenstore_process_logdirty_event(), if a stale shared memory
authorKeir Fraser <keir@xensource.com>
Thu, 25 Oct 2007 14:01:59 +0000 (15:01 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 25 Oct 2007 14:01:59 +0000 (15:01 +0100)
key is encountered reset 'seg' to NULL so the shared memory
initialization can be retried later.

Signed-off-by: Ben Guthro <bguthro@virtualron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/ioemu/xenstore.c

index 2b2897cec75edb3d6b149ac4279362c9c0aec8df..ed85eea5f0966c68d8cd9fff12befecfaae28ef3 100644 (file)
@@ -318,6 +318,9 @@ void xenstore_process_logdirty_event(void)
         if (logdirty_bitmap_size != *(uint32_t *)seg) {
             fprintf(logfile, "Log-dirty: got %u, calc %lu\n", 
                     *(uint32_t *)seg, logdirty_bitmap_size);
+            /* Stale key: wait for next watch */
+            shmdt(seg);
+            seg = NULL;
             return;
         }