Skip to contentSkip to conversation

Fix stale shared mem key

PATCH New Ben Guthro 1 participant 1 message Oct 24, 2007

lore
Share & tools
lore

Ben Guthro

author
#0 lore raw

PATCH 1/1 Fix stale shared mem key

In xenstore_process_logdirty_event(), if a stale shared memory key is encountered reset 'seg' to NULL so the shared memory initialization can be retried later.

tools/ioemu/xenstore.c +1 -0
diff -r 118a21c66fd5 tools/ioemu/xenstore.c
@@ -318,6 +318,7 @@ void xenstore_process_logdirty_event(voi
         if (logdirty_bitmap_size != *(uint32_t *)seg) {
             fprintf(logfile, "Log-dirty: got %u, calc %lu\n", 
                     *(uint32_t *)seg, logdirty_bitmap_size);
+            seg = NULL; /* Stale key: wait for next watch */
             return;
         }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel