Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3158295ybx; Fri, 8 Nov 2019 15:01:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzJ9I5fdFLc/Hzlktvip9giS3h+yfe7pl12jmk4k1O1iliuiWveKcgItj0gXCdNxlm2K6g1 X-Received: by 2002:a05:6402:104c:: with SMTP id e12mr6826771edu.199.1573254108601; Fri, 08 Nov 2019 15:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573254108; cv=none; d=google.com; s=arc-20160816; b=P1w0hemfj9pZfVTChkZ2IWUeZXWyE9PS9lrFCGwyu3jRbQKuWnUUNczdAa4G1vifKW 7+AURye0EPbYjXEPPzMgiyENairV7F8dWTEZE2lRE8iuLxPr4jlL+jNtS8fu0I3u8Ho+ RJYvkRPIGKh5CSFSf0NuJxAC1DlMrZIjvKfO+XSNUhJ+21SBADkEl6xsA44/561einoG +lHpihwwZTzfbgTW2KqEbYYu+EQUEJu6Rn9ttjCd6LJ1kO8a0m+JMANsZhkkM282PeN2 EDT7ni8E1ybK1/qGnYSamG4ESTrvJP93Gnp6ySZYMNEoTFYyvNl66H4oVMTL/ao7rWe/ BRgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=fT8jOw1RD6Yq9VyKxutTeSeWCXzUuPGTvTcZMqHsIOA=; b=IJreTKdwcvjxL1sStirIye/HzD2lJCYHpjpu4PLVVpT0KqptEohISdXqflR2WDUwuT BoKDQ3Atg1k7cyejm/TnGog/w8gbTVK9Mh71HYH2JRxuYhyUvYJIVOSAAQa2EMxS4KMj /Rb0mLVgwBtcjoasNFRSZqXEYmwEQVPU5V+0u3uAuNMfdagDIbcklCsMBj+uJIiasuQa VTpyUsq84djpp75eRApotGPHLAR681MOkFbw3ujxt1JzMr/tJpoS+/hpFv3SWadkQRsw 1bBt5dAYK/5NsEizwndJgZekNPGFMdykgZnXG7hmPgtvdQh90LIsXH6eh9rofm+m3iwR 0V1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id p3si5628941edj.395.2019.11.08.15.01.25; Fri, 08 Nov 2019 15:01:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727647AbfKHXAv (ORCPT + 99 others); Fri, 8 Nov 2019 18:00:51 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39402 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726121AbfKHXAv (ORCPT ); Fri, 8 Nov 2019 18:00:51 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA8MvEnh060123 for ; Fri, 8 Nov 2019 18:00:50 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2w5heb09qh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 08 Nov 2019 18:00:49 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 8 Nov 2019 23:00:47 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 8 Nov 2019 23:00:43 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xA8N0hGA9240610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 Nov 2019 23:00:43 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E3AD3AE057; Fri, 8 Nov 2019 23:00:42 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E075AE05F; Fri, 8 Nov 2019 23:00:39 +0000 (GMT) Received: from oc0525413822.ibm.com (unknown [9.80.217.215]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 8 Nov 2019 23:00:39 +0000 (GMT) From: Ram Pai To: linuxppc-dev@lists.ozlabs.org Cc: benh@kernel.crashing.org, david@gibson.dropbear.id.au, mpe@ellerman.id.au, paulus@ozlabs.org, mdroth@linux.vnet.ibm.com, hch@lst.de, linuxram@us.ibm.com, andmike@us.ibm.com, sukadev@linux.vnet.ibm.com, mst@redhat.com, ram.n.pai@gmail.com, aik@ozlabs.ru, cai@lca.pw, tglx@linutronix.de, bauerman@linux.ibm.com, linux-kernel@vger.kernel.org Subject: [RFC v2 0/2] Enable IOMMU support for pseries Secure VMs Date: Fri, 8 Nov 2019 15:00:09 -0800 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 19110823-0008-0000-0000-0000032CDBBA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19110823-0009-0000-0000-00004A4BE5E7 Message-Id: <1573254011-1604-1-git-send-email-linuxram@us.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-08_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=427 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911080221 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series enables IOMMU support for pseries Secure VMs. Tested using QEMU command line option: "-device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x4, iommu_platform=on,disable-modern=off,disable-legacy=on" and "-device virtio-blk-pci,scsi=off,bus=pci.0, addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0, iommu_platform=on,disable-modern=off,disable-legacy=on" changelog: v2: added comments describing the changes. requested by Alexey and Michael Ellermen. Ram Pai (2): powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor. powerpc/pseries/iommu: Use dma_iommu_ops for Secure VMs aswell. arch/powerpc/platforms/pseries/iommu.c | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) -- 1.8.3.1