ia64/xen-unstable

changeset 16240:e4cd41c5c4e8

hvm: 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.

Signed-off-by: Ben Guthro <bguthro@virtualron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Thu Oct 25 15:01:59 2007 +0100 (2007-10-25)
parents b4060976cf5e
children 01d45050a808
files tools/ioemu/xenstore.c
line diff
     1.1 --- a/tools/ioemu/xenstore.c	Thu Oct 25 14:57:08 2007 +0100
     1.2 +++ b/tools/ioemu/xenstore.c	Thu Oct 25 15:01:59 2007 +0100
     1.3 @@ -318,6 +318,9 @@ void xenstore_process_logdirty_event(voi
     1.4          if (logdirty_bitmap_size != *(uint32_t *)seg) {
     1.5              fprintf(logfile, "Log-dirty: got %u, calc %lu\n", 
     1.6                      *(uint32_t *)seg, logdirty_bitmap_size);
     1.7 +            /* Stale key: wait for next watch */
     1.8 +            shmdt(seg);
     1.9 +            seg = NULL;
    1.10              return;
    1.11          }
    1.12