Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2456821ybt; Tue, 16 Jun 2020 06:41:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/pwZjMRnldJBPbdlqA8ud4/3e9PStklgcgw3xLNJniIHRDFo7yMpiCpIddKATlryL+Y4Z X-Received: by 2002:a17:906:b79a:: with SMTP id dt26mr2987967ejb.422.1592314876000; Tue, 16 Jun 2020 06:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592314875; cv=none; d=google.com; s=arc-20160816; b=hYPqdMVruRtqS/kgix+83L2nTo5PgZwDB1fBfumn4lfTx/jeA+IYszy2GwPHo2Z0x6 Ioz6TzLDHUVo1R/6IWygs5YSDn6+xnoBFKs+/4HdPNXpPNCNfv+GnR9NikJ7J1SccPVT aESBvaQ1NOUAnpqAW4ApzKolo5EVgZL4VjQ93kwV1lEyFa/Ksi7dXn4HLI3OH2cOJ/PK cuVzYPcTvNhY0v2k/LbhrQ9gg3dnbyaeBalvw0qpmCnf6S0tFyllKoh9s/9gVcc0Ybze Jw9LxImxAL8YcH7H8Ve6rT2niuiwbummd/bVZpA7dT++LKY2ToNe5zyRUzR4t46Pz5kZ QuQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=pjHqTF3mbF8EfhlFPD4YfA3OH/6VusuPWoWBi336HKU=; b=qWtMpYWBrq4OfwmyC0rU8ASOVff6cRqZt3CzcEhlbkDMqonOS6U+kEdkqL0qswb/dj /afthxIvpNBm0CLImDTKy00nCGYBPrSKNvYD0xCKH8L78twZNsgAYHmctjwmI6cfjUXl mRaGNaHMAbv1PmfoYTvMFK/aUWBCQHXIfqECY3NpoBJ009P894AiDpErV+7g1sIGu5J7 kd5btoPE7Wob/2iUW7yy7xICGu+/wSfd+bWDDlklpd2pIKACTXwFWoO4WA4Beb9VtCPZ gCN6QBnPwMRsQW2PIzBw1KOfFzC2qsE6jd/jqCD5lZrr9w2YVfTJ7LOCbpyu0kVhgIIV 1Q0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si10555504edr.165.2020.06.16.06.40.52; Tue, 16 Jun 2020 06:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728865AbgFPNgv (ORCPT + 99 others); Tue, 16 Jun 2020 09:36:51 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37652 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727966AbgFPNgu (ORCPT ); Tue, 16 Jun 2020 09:36:50 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05GDVVjT101545; Tue, 16 Jun 2020 09:36:42 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 31pg44s0dm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jun 2020 09:36:42 -0400 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05GDWxXi108139; Tue, 16 Jun 2020 09:36:41 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 31pg44s0cg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jun 2020 09:36:41 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05GDLgiQ009521; Tue, 16 Jun 2020 13:36:39 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma05fra.de.ibm.com with ESMTP id 31mpe826fu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jun 2020 13:36:39 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05GDaaQU9830446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jun 2020 13:36:36 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 873684C04E; Tue, 16 Jun 2020 13:36:36 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D0C594C04A; Tue, 16 Jun 2020 13:36:35 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.26.88]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 16 Jun 2020 13:36:35 +0000 (GMT) Subject: Re: [PATCH v2 1/1] s390: virtio: let arch accept devices without IOMMU feature To: Cornelia Huck Cc: Halil Pasic , linux-kernel@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, mst@redhat.com, jasowang@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.linux-foundation.org, thomas.lendacky@amd.com, David Gibson , Ram Pai , Heiko Carstens , Vasily Gorbik References: <1592224764-1258-1-git-send-email-pmorel@linux.ibm.com> <1592224764-1258-2-git-send-email-pmorel@linux.ibm.com> <20200616115202.0285aa08.pasic@linux.ibm.com> <20200616142010.04b7ba19.cohuck@redhat.com> From: Pierre Morel Message-ID: <8ba494d2-ad91-bc5c-2df8-b9d81c435211@linux.ibm.com> Date: Tue, 16 Jun 2020 15:36:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200616142010.04b7ba19.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-16_04:2020-06-16,2020-06-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 cotscore=-2147483648 bulkscore=0 malwarescore=0 impostorscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 phishscore=0 adultscore=0 mlxlogscore=834 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006160097 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-16 14:20, Cornelia Huck wrote: > On Tue, 16 Jun 2020 12:52:50 +0200 > Pierre Morel wrote: > >> On 2020-06-16 11:52, Halil Pasic wrote: >>> On Mon, 15 Jun 2020 14:39:24 +0200 >>> Pierre Morel wrote: > >>>> @@ -162,6 +163,11 @@ bool force_dma_unencrypted(struct device *dev) >>>> return is_prot_virt_guest(); >>>> } >>>> >>>> +int arch_needs_iommu_platform(struct virtio_device *dev) >>> >>> Maybe prefixing the name with virtio_ would help provide the >>> proper context. >> >> The virtio_dev makes it obvious and from the virtio side it should be >> obvious that the arch is responsible for this. >> >> However if nobody has something against I change it. > > arch_needs_virtio_iommu_platform()? fine with me -- Pierre Morel IBM Lab Boeblingen