From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzOK1-0001Qd-43 for qemu-devel@nongnu.org; Wed, 17 Jul 2013 05:46:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzOJy-00013k-1M for qemu-devel@nongnu.org; Wed, 17 Jul 2013 05:46:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzOJx-00013d-Q3 for qemu-devel@nongnu.org; Wed, 17 Jul 2013 05:46:53 -0400 Date: Wed, 17 Jul 2013 12:48:12 +0300 From: "Michael S. Tsirkin" Message-ID: <1374054430-21966-6-git-send-email-mst@redhat.com> References: <1374054430-21966-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1374054430-21966-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 5/5] pc: don't access fw cfg if NULL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori commit f8c457b88d72a48989f190bc3d7b79f4f3b7d11c "pc: pass PCI hole ranges to Guests" broke Xen as it has no fw_cfg. Check for this configuration and boil out. Signed-off-by: Michael S. Tsirkin Tested-by: Stefano Stabellini --- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 80c27d6..cb3897e 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1000,7 +1000,7 @@ typedef struct PcRomPciInfo { static void pc_fw_cfg_guest_info(PcGuestInfo *guest_info) { PcRomPciInfo *info; - if (!guest_info->has_pci_info) { + if (!guest_info->has_pci_info || !guest_info->fw_cfg) { return; } -- MST