From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD38b-0007ru-MY for qemu-devel@nongnu.org; Mon, 30 Apr 2018 03:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD38Y-0000mU-Iv for qemu-devel@nongnu.org; Mon, 30 Apr 2018 03:22:17 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51412 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fD38Y-0000mM-Du for qemu-devel@nongnu.org; Mon, 30 Apr 2018 03:22:14 -0400 References: <20180425045129.17449-1-peterx@redhat.com> <20180425045129.17449-4-peterx@redhat.com> <2492f7d8-ed63-6f1c-773f-baa223020022@redhat.com> <20180427062615.GY9036@xz-mi> <20180428022407.GG13269@xz-mi> <635e37b2-30a6-b204-3005-e3e098cb38f8@redhat.com> <20180428031413.GK13269@xz-mi> From: Paolo Bonzini Message-ID: <71bafba6-56ae-7052-2c0f-0d0b88200f9a@redhat.com> Date: Mon, 30 Apr 2018 09:22:10 +0200 MIME-Version: 1.0 In-Reply-To: <20180428031413.GK13269@xz-mi> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 03/10] intel-iommu: add iommu lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu , Jason Wang Cc: Fam Zheng , "Michael S . Tsirkin" , qemu-devel@nongnu.org, Alex Williamson , Stefan Hajnoczi , Jintack Lim , David Gibson On 28/04/2018 05:14, Peter Xu wrote: >> # git grep imrc-\>translate\ =3D >> hw/alpha/typhoon.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D typhoon_tran= slate_iommu; >> hw/dma/rc4030.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D rc4030_dma_tran= slate; >> hw/i386/amd_iommu.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D amdvi_trans= late; >> hw/i386/intel_iommu.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D vtd_iommu= _translate; >> hw/ppc/spapr_iommu.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D spapr_tce_= translate_iommu; >> hw/s390x/s390-pci-bus.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D s390_tr= anslate_iommu; >> hw/sparc/sun4m_iommu.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D sun4m_tr= anslate_iommu; >> hw/sparc64/sun4u_iommu.c:=C2=A0=C2=A0=C2=A0 imrc->translate =3D sun4u_= translate_iommu; > Sorry I didn't notice this one. This point is valid. But again, we > need to know whether they are thread-safe already. For VT-d, it never > hurt to have this patch to fix its own problem, so above is not a > reason to not have current patch, since it solves different problems. > Basically I'll see the solution of above problem as a separate patch > as current one. If they are not thread-safe, we fix them too. They are not many. Paolo