Received: from eggs.gnu.org ([2001:4830:134:3::10]:49605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh9u7-0006lW-8o for qemu-devel@nongnu.org; Tue, 06 Sep 2016 02:30:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bh9u5-0003q3-6P for qemu-devel@nongnu.org; Tue, 06 Sep 2016 02:30:42 -0400 References: <1472526419-5900-1-git-send-email-jasowang@redhat.com> <1472526419-5900-3-git-send-email-jasowang@redhat.com> <57CCD7D4.3090808@redhat.com> From: Jason Wang Message-ID: <99261ebf-f472-baec-5ebc-9429cd5d4bb5@redhat.com> Date: Tue, 6 Sep 2016 14:30:26 +0800 MIME-Version: 1.0 In-Reply-To: <57CCD7D4.3090808@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: Wei Xu , mst@redhat.com, qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Amit Shah , peterx@redhat.com, vkaplans@redhat.com, Stefan Hajnoczi , cornelia.huck@de.ibm.com, pbonzini@redhat.com On 2016=E5=B9=B409=E6=9C=8805=E6=97=A5 10:26, Wei Xu wrote: > On 2016=E5=B9=B408=E6=9C=8830=E6=97=A5 11:06, Jason Wang wrote: >> @@ -1587,6 +1595,11 @@ static void=20 >> virtio_pci_device_plugged(DeviceState *d, Error **errp) >> } >> >> if (legacy) { >> + if (virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM)) { >> + error_setg(errp, "VIRTIO_F_IOMMU_PLATFORM was supported b= y" >> + "neither legacy nor transitional device."); >> + return ; >> + } > > Not sure if i understand it correctly, the transitional device here=20 > maybe a bit hard to understand,=20 "transitional" were defined by spec. > 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." Ok. > >> /* legacy and transitional */ >> pci_set_word(config + PCI_SUBSYSTEM_VENDOR_ID, >> pci_get_word(config + PCI_VENDOR_ID)); >