From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgjcQ-0003TI-5e for qemu-devel@nongnu.org; Sun, 04 Sep 2016 22:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgjcO-0002IY-BE for qemu-devel@nongnu.org; Sun, 04 Sep 2016 22:26:41 -0400 References: <1472526419-5900-1-git-send-email-jasowang@redhat.com> <1472526419-5900-3-git-send-email-jasowang@redhat.com> From: Wei Xu Message-ID: <57CCD7D4.3090808@redhat.com> Date: Mon, 5 Sep 2016 10:26:28 +0800 MIME-Version: 1.0 In-Reply-To: <1472526419-5900-3-git-send-email-jasowang@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH for 2.8 02/11] virtio: convert to use DMA api List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang , mst@redhat.com, qemu-devel@nongnu.org Cc: pbonzini@redhat.com, peterx@redhat.com, cornelia.huck@de.ibm.com, vkaplans@redhat.com, Stefan Hajnoczi , Kevin Wolf , Amit Shah , qemu-block@nongnu.org On 2016=E5=B9=B408=E6=9C=8830=E6=97=A5 11:06, Jason Wang wrote: > @@ -1587,6 +1595,11 @@ static void virtio_pci_device_plugged(DeviceStat= e *d, Error **errp) > } > > if (legacy) { > + if (virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM)) { > + error_setg(errp, "VIRTIO_F_IOMMU_PLATFORM was supported by= " > + "neither legacy nor transitional device."); > + return ; > + } Not sure if i understand it correctly, the transitional device here=20 maybe a bit hard to understand, just a tip for your convenience, besides the denied prompt, can we add what kind of device is supported=20 to the message? such as modern device only, like this. "VIRTIO_F_IOMMU_PLATFORM is supported by modern device only, it is not supported by either legacy or transitional device." > /* legacy and transitional */ > pci_set_word(config + PCI_SUBSYSTEM_VENDOR_ID, > pci_get_word(config + PCI_VENDOR_ID));