From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9pqT-0004CL-L6 for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9pqN-00073j-Lh for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:25:12 -0400 Received: from [59.151.112.132] (port=27928 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9pqM-000711-Qi for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:25:07 -0400 References: <1465200062-13824-1-git-send-email-caoj.fnst@cn.fujitsu.com> <1465200062-13824-13-git-send-email-caoj.fnst@cn.fujitsu.com> From: Cao jin Message-ID: <5755349E.6060904@cn.fujitsu.com> Date: Mon, 6 Jun 2016 16:30:22 +0800 MIME-Version: 1.0 In-Reply-To: <1465200062-13824-13-git-send-email-caoj.fnst@cn.fujitsu.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 12/15] pci: Convert msi_init() to Error and fix callers to check it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Jason Wang , Markus Armbruster , Marcel Apfelbaum , Alex Williamson , Hannes Reinecke , Dmitry Fleytman , Paolo Bonzini , John Snow , Gerd Hoffmann On 06/06/2016 04:00 PM, Cao jin wrote: > diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c > > + if (xhci->msi != ON_OFF_AUTO_OFF) { > + ret = msi_init(dev, 0x70, xhci->numintrs, true, false, &err); > + /* Any error other than -ENOTSUP(board's MSI support is broken) > + * is a programming error */ > + assert(!ret || ret == -ENOTSUP); > + if (ret && xhci->msi == ON_OFF_AUTO_ON) { > + /* Can't satisfy user's explicit msi=on request, fail */ > + error_append_hint(&err, "You have to use msi=auto (default) or " > + "si=off with this machine type.\n"); sorry, I made a typo "si=off", maybe it could be fixed when be applied by maintainer -- Yours Sincerely, Cao jin