From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx0ZF-000161-Rh for qemu-devel@nongnu.org; Thu, 12 Nov 2015 17:42:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zx0ZA-0004Hx-SM for qemu-devel@nongnu.org; Thu, 12 Nov 2015 17:42:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zx0ZA-0004Hg-N7 for qemu-devel@nongnu.org; Thu, 12 Nov 2015 17:42:04 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 58EDB3FF for ; Thu, 12 Nov 2015 22:42:04 +0000 (UTC) From: Bandan Das References: <1447299376-21252-1-git-send-email-bsd@redhat.com> <1447299376-21252-3-git-send-email-bsd@redhat.com> <87y4e3txjz.fsf@blackfin.pond.sub.org> Date: Thu, 12 Nov 2015 17:42:02 -0500 In-Reply-To: <87y4e3txjz.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Thu, 12 Nov 2015 09:46:24 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/2] i440fx: print an error message if user tries to enable iommu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, mst@redhat.com Markus Armbruster writes: > Bandan Das writes: > >> There's no indication of any sort that i440fx doesn't support >> "iommu=on"" >> >> Signed-off-by: Bandan Das >> --- >> hw/pci-host/piix.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c >> index 7b2fbf9..f12593a 100644 >> --- a/hw/pci-host/piix.c >> +++ b/hw/pci-host/piix.c >> @@ -301,6 +301,10 @@ static void i440fx_pcihost_realize(DeviceState *dev, Error **errp) >> static void i440fx_realize(PCIDevice *dev, Error **errp) >> { >> dev->config[I440FX_SMRAM] = 0x02; >> + >> + if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) { >> + fprintf(stderr, "i440fx doesn't support emulated iommu\n"); >> + } >> } >> >> PCIBus *i440fx_init(const char *host_type, const char *pci_type, > > error_report(), please. > > If this is just a warning, please prefix the message with "warning: ". Sure will do. Yeah, it seems good enough just to print a message without exiting. > If it isn't, exit(1).