From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Guthro Subject: [PATCH] Fix stale shared mem key Date: Wed, 24 Oct 2007 17:00:06 -0400 Message-ID: <471FB256.60308@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080403020101070406040400" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel , Robert Phillips List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------080403020101070406040400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Signed-off-by: Robert Phillips --------------080403020101070406040400 Content-Type: text/x-patch; name="lm-qemu-xs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lm-qemu-xs.patch" diff -r 118a21c66fd5 tools/ioemu/xenstore.c --- a/tools/ioemu/xenstore.c Mon Oct 22 21:06:11 2007 +0100 +++ b/tools/ioemu/xenstore.c Wed Oct 24 16:24:39 2007 -0400 @@ -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; } --------------080403020101070406040400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------080403020101070406040400--