Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1227410ybt; Thu, 9 Jul 2020 01:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTe9TZ3xdvoopagzF/ryzG/MBP9fUBLlgVEdl+29RdhmJWMfRlO0/U+chvqIw0E9VzUk6t X-Received: by 2002:a17:906:3e13:: with SMTP id k19mr54300456eji.476.1594284173903; Thu, 09 Jul 2020 01:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594284173; cv=none; d=google.com; s=arc-20160816; b=nJPWxGDOAU5hUsuGw4DlxpXRyihpY0iws/i7uM6kqnkym4Hl9fPw/ehE19Nir0Ijd6 Ma1lVgufCj3IvLPQP4/y7khNjPYkciWsZzPX6mDCnD/d8Wo2jfx5nsFk7fs6WM/lN7wh 38e1pSpNJ2Z8N8O+h9wDgf+ZpJmWMqT6IZJ02Y3aaPRrchgknic300VQ/z6h3yxegkl3 XID9/A/5TVIE0lQVXM+at2xWO8mWcpdm7dKYMS4i5YVr7265ORcMtAsazGmH+dSAXi2Q PCqwuZQ7fSU8FiaDcIf2Jgw3+yF1/TvfqqlplUXWpbwewZjYOptHxjAAbwM7dCwrEr0e Qaog== 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=UtdTeBvu4TvS2UYTjV87MLhyiyDyeqtXAHP4K+8As8g=; b=sPpLe5/OBHn8Hjaxexvd/OnmlEkl1MaZ75C1iggS/WvfkJaHaRDxyeski3c0Ou7r/+ z/Hr2MC4CIuBkWZTS7YbhWqsDQYgOHMbtEe46llJt6082Z+78UGt/ONKrv+dQk3wI9aX kFULWDh3UdXHFJEeBGFEiyArG/gHY+OzfQHVDUBeEzHIPMn6Nbqz39G+oB/zrQzddu8L nnrWZ06spfAYRFHKyW/23mOD7mFEzinwhnkaJ6vrL2cJWKCwAke7gP06OZr4BWVUs8Bj OMXukoeIGPOHcLYRPm7kzEzAfyRj0Q643EHAjH2RUUT07HzlX5d4ZrO4Jb4HPgoam7Cx kv9w== 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 g22si1690958edq.111.2020.07.09.01.42.31; Thu, 09 Jul 2020 01:42:53 -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 S1726670AbgGIIjw (ORCPT + 99 others); Thu, 9 Jul 2020 04:39:52 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49138 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726247AbgGIIju (ORCPT ); Thu, 9 Jul 2020 04:39:50 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0698ab4u111432; Thu, 9 Jul 2020 04:39:44 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 325r2caevj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jul 2020 04:39:44 -0400 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0698akDJ112286; Thu, 9 Jul 2020 04:39:43 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 325r2caerd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jul 2020 04:39:42 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0698a3Dt031648; Thu, 9 Jul 2020 08:39:24 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma03ams.nl.ibm.com with ESMTP id 325k1vgm6b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jul 2020 08:39:24 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0698dLdR56164776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Jul 2020 08:39:21 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8869D42056; Thu, 9 Jul 2020 08:39:21 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A6F5642061; Thu, 9 Jul 2020 08:39:20 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.34.67]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 9 Jul 2020 08:39:20 +0000 (GMT) From: Pierre Morel To: linux-kernel@vger.kernel.org Cc: pasic@linux.ibm.com, borntraeger@de.ibm.com, frankja@linux.ibm.com, mst@redhat.com, jasowang@redhat.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.linux-foundation.org, thomas.lendacky@amd.com, david@gibson.dropbear.id.au, linuxram@us.ibm.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com Subject: [PATCH v5 0/2] s390: virtio: let arch validate VIRTIO features Date: Thu, 9 Jul 2020 10:39:17 +0200 Message-Id: <1594283959-13742-1-git-send-email-pmorel@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-09_04:2020-07-08,2020-07-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 mlxlogscore=975 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007090064 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. in this respin: 1) I kept removed the ack from Jason as I reworked the patch @Jason, the nature and goal of the patch did not really changed please can I get back your acked-by with these changes? 2) I suppressed the unnecessary verbosity of the architecture specific patch 3) put back the arch specific code inside arch/s390/mm/init.c after offline discussion with Christian. Regards, Pierre Pierre Morel (2): virtio: let arch validate VIRTIO features s390: virtio: PV needs VIRTIO I/O device protection arch/s390/mm/init.c | 27 +++++++++++++++++++++++++++ drivers/virtio/virtio.c | 19 +++++++++++++++++++ include/linux/virtio_config.h | 1 + 3 files changed, 47 insertions(+) -- 2.25.1 Changelog to v5: - return directly from S390 arch_validate_virtio_features() when the guest is not protected. (Connie) - Somme rewording (Connie, Michael) - moved back code from arch/s390/ ...kernel/uv.c to ...mm/init.c (Christian) to v4: - separate virtio and arch code (Pierre) - moved code from arch/s390/mm/init.c to arch/s390/kernel/uv.c (as interpreted from Heiko's comment) - moved validation inside the arch code (Connie) - moved the call to arch validation before VIRTIO_F_1 test (Michael) to v3: - add warning (Connie, Christian) - add comment (Connie) - change hook name (Halil, Connie) to v2: - put the test in virtio_finalize_features() (Connie) - put the test inside VIRTIO core (Jason) - pass a virtio device as parameter (Halil)