From: Ian Jackson Subject: Re: [PATCH][QEMU] Fix HVM guest hang in save/restore with the network load Date: Fri, 16 May 2008 16:50:44 +0100 Message-ID: <18477.44372.802612.748509@mariner.uk.xensource.com> References: <18476.25333.881714.504303@mariner.uk.xensource.com> <18477.43972.435122.151074@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18477.43972.435122.151074@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , SUZUKI Kazuhiro , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I wrote: > I'm going to see if I can get our version, which is in some ways more > elegant, into upstream. However, I did find what looks like a small mistake, for which this is the fix: diff -r d0817f08599a tools/ioemu/hw/pci.c --- a/tools/ioemu/hw/pci.c Fri May 16 09:37:19 2008 +0100 +++ b/tools/ioemu/hw/pci.c Fri May 16 16:48:52 2008 +0100 @@ -101,7 +101,7 @@ int pci_device_load(PCIDevice *s, QEMUFi int i; qemu_get_buffer(f, &irq_state, 1); for (i = 0; i < 4; i++) - pci_set_irq(s, i, !!(irq_state >> i)); + pci_set_irq(s, i, (irq_state >> i) & 1); } return 0; } The value written to the savefile is a bitmap of irq states, and the recovery of the relevant bit is not correct. Signed-off-by: Ian Jackson Ian.