Received: from eggs.gnu.org ([2001:4830:134:3::10]:42915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booe3-0000ld-0K for qemu-devel@nongnu.org; Tue, 27 Sep 2016 05:25:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boody-0002qv-T6 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 05:25:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boody-0002qo-HM for qemu-devel@nongnu.org; Tue, 27 Sep 2016 05:25:42 -0400 Date: Tue, 27 Sep 2016 17:25:34 +0800 From: Peter Xu Message-ID: <20160927092534.GE10363@pxdev.xzpeter.org> References: <1474897258-1205-1-git-send-email-pbonzini@redhat.com> <20160927021251.GA10363@pxdev.xzpeter.org> <1575153570.3027165.1474966437735.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1575153570.3027165.1474966437735.JavaMail.zimbra@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 00/28] Misc patches for 2016-09-26 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , QEMU Developers On Tue, Sep 27, 2016 at 04:53:57AM -0400, Paolo Bonzini wrote: >=20 >=20 > ----- Original Message ----- > > From: "Peter Xu" > > To: "Peter Maydell" , "Paolo Bonzini" > > Cc: "QEMU Developers" > > Sent: Tuesday, September 27, 2016 4:12:51 AM > > Subject: Re: [Qemu-devel] [PULL 00/28] Misc patches for 2016-09-26 > >=20 > > On Mon, Sep 26, 2016 at 02:19:08PM -0700, Peter Maydell wrote: > >=20 > > [...] > >=20 > > > I also see this compile failure: > > >=20 > > > CC i386-softmmu/hw/i386/amd_iommu.o > > > /home/petmay01/linaro/qemu-for-merges/hw/i386/amd_iommu.c: In funct= ion > > > =E2=80=98amdvi_init=E2=80=99: > > > /home/petmay01/linaro/qemu-for-merges/hw/i386/amd_iommu.c:1083:17: > > > error: =E2=80=98MemoryRegionIOMMUOps {aka struct MemoryRegionIOMMUO= ps}=E2=80=99 has no > > > member named =E2=80=98notify_started=E2=80=99 > > > s->iommu_ops.notify_started =3D amdvi_iommu_notify_started; > > > ^ > > > /home/petmay01/linaro/qemu-for-merges/rules.mak:60: recipe for targ= et > > > 'hw/i386/amd_iommu.o' failed > >=20 > > Paolo, > >=20 > > Would you please help squash this into 02/28 of your PULL request to > > solve above error? >=20 > Shall I also redo patch 3/3 for AMD IOMMU, like this: >=20 > diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c > index a868539..6365682 100644 > --- a/hw/i386/amd_iommu.c > +++ b/hw/i386/amd_iommu.c > @@ -1072,9 +1072,12 @@ static void amdvi_iommu_notify_flag_changed(Memo= ryRegion *iommu, > { > AMDVIAddressSpace *as =3D container_of(iommu, AMDVIAddressSpace, i= ommu); > =20 > - hw_error("device %02x.%02x.%x requires iommu notifier which is not= " > - "currently supported", as->bus_num, PCI_SLOT(as->devfn), > - PCI_FUNC(as->devfn)); > + if (new & IOMMU_NOTIFIER_MAP) { > + error_report("device %02x.%02x.%x requires iommu notifier whic= h is not " > + "currently supported", as->bus_num, PCI_SLOT(as->= devfn), > + PCI_FUNC(as->devfn)); > + exit(1); > + } > } > =20 > static void amdvi_init(AMDVIState *s) >=20 > ? I think we should keep it as it is, because Jason's patchset will only support intel-iommu, not amd-iommu. For now, it won't have problem (just like Intel IOMMU one). But after Jason's patch is merged, people will be able to boot a guest with vhost and amd-iommu (which we actually do not support yet), and that might be problematic. Thanks, -- peterx