Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4466426pxb; Tue, 5 Oct 2021 03:48:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAWgF4I8g4Y5rFIUPK1w8b4YbFIXYCWxQstR3o832sztz0F1XSNcmQHJ9w353L/7Xxpm2V X-Received: by 2002:a17:90a:d3c3:: with SMTP id d3mr2981583pjw.140.1633430931419; Tue, 05 Oct 2021 03:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633430931; cv=none; d=google.com; s=arc-20160816; b=BClnMOTF6M0g+b90++1FqfqqqpYL8xO2B0qjTdJFOg/GUBO+HvX3/Fz4qvCTACXi7M UoqZTbCGxwkHjb4oDqy+SHop0vzX6+Zmms9sqB4xHkMECCtYA7qp1Wky0oJ4gYW6CMue StOcjtavd3yMbbPftYILbyhhZQQCmzGKrtC7BybloegtNQYxLV+cenQIZu4iiYSPAZKb rV9Kg6XJaJU+NCGP3MbHdA9yL1bbdEQx8afGdA5hFjMtkbBkTCcF8IUCSxKS/GuO9HJu wEKWO4lvYrr0kdk4jDRFvMbQ2Q3+7OdFZRAWpAZ+TMrzxFC2jsmvsdvQYzY6fSjERxKO seKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=deadNT7igQA5kiktClWxY+e0NuQjlhQ0rN218pA/ZNk=; b=CaQa7lkkw45zkJdm4uDINHCJs28c3vvHQU7WIFRoqjD3gA8+NY7/9qdsVLqmqGFbqa MBIk2cscJTNuOcn1qDFuv0BjVpREpcS8bbVJhHI9smlX04ypBt0fSf8SKhD7oC4vJEeu RM8JWbg2rp4yjz2cT2nPTHQuE2AL7v/x6z0rdMwwTF+C9H3HluDF1P41/scVrTht38GL gujPAC85xdSJ9LJypvAZyy/PkP52/7Syc83Ry7US1sNbBlVaui0f06n87xMvH50UVAFW 52/lyvOrYiUKnSTCARkfeE+pywzytuzZWRT1Lfz9dZYBcfz9892p0cpLbczzBGfCqjxc Uhcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QZFEvcfG; 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=pass (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 t66si10326451pfd.319.2021.10.05.03.48.39; Tue, 05 Oct 2021 03:48:51 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QZFEvcfG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234070AbhJEKsj (ORCPT + 99 others); Tue, 5 Oct 2021 06:48:39 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39660 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233077AbhJEKsh (ORCPT ); Tue, 5 Oct 2021 06:48:37 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1959g0I1007011; Tue, 5 Oct 2021 06:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=deadNT7igQA5kiktClWxY+e0NuQjlhQ0rN218pA/ZNk=; b=QZFEvcfGhMXktUtgPOybyKH43qDP/m8rrpZkeAdxzxnPFbMbEZM4vR6g0bf3lpfuvL6m TPdzTdjNmnFNT4OVwitGcpqLZ2NkX+dhirE20HG6KmCcpMPv8MjSdk+f7ZIvF7OAwNBp mvWGHjjLCOACIuCnNRHq0rYzPxfnFIcAtSJIlX0eRhQ9wusuoNVND7jsi15DpxBBlIlU BIugvVHCDn+T5WDjWOR52jrGSmIb/FqwI2hdd6Iaf8FqLZ+0ITHLqpcxYNOupbCX5hsk cOFzNKDgFgameiQd9IpVFCvVaJXdzvcT1MA336hmrJ9xLp6nHBcVepXxnGe1B1blayzj mQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bgma4sdfj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Oct 2021 06:46:43 -0400 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 195Akh86025213; Tue, 5 Oct 2021 06:46:43 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bgma4sdey-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Oct 2021 06:46:43 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 195AhClO009016; Tue, 5 Oct 2021 10:46:41 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 3bef2a17gq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Oct 2021 10:46:41 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 195Akbrj5309060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Oct 2021 10:46:37 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B73EDAE081; Tue, 5 Oct 2021 10:46:37 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC792AE089; Tue, 5 Oct 2021 10:46:36 +0000 (GMT) Received: from li-e979b1cc-23ba-11b2-a85c-dfd230f6cf82 (unknown [9.171.45.119]) by d06av26.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 5 Oct 2021 10:46:36 +0000 (GMT) Date: Tue, 5 Oct 2021 12:46:34 +0200 From: Halil Pasic To: "Michael S. Tsirkin" Cc: linux-s390@vger.kernel.org, markver@us.ibm.com, Christian Borntraeger , qemu-devel@nongnu.org, Jason Wang , Cornelia Huck , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Xie Yongji , Halil Pasic Subject: Re: [RFC PATCH 1/1] virtio: write back features before verify Message-ID: <20211005124634.2a774796.pasic@linux.ibm.com> In-Reply-To: <20211005035014-mutt-send-email-mst@kernel.org> References: <20210930012049.3780865-1-pasic@linux.ibm.com> <20210930070444-mutt-send-email-mst@kernel.org> <20211001092125.64fef348.pasic@linux.ibm.com> <20211002055605-mutt-send-email-mst@kernel.org> <87bl452d90.fsf@redhat.com> <20211004090018-mutt-send-email-mst@kernel.org> <20211005092539.145c9cc4.pasic@linux.ibm.com> <20211005035014-mutt-send-email-mst@kernel.org> Organization: IBM X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: dISC-4Fas47o_uRyUynz0RAGrkvMT9az X-Proofpoint-GUID: tCE_4RJXbd3HchYj9DxiZqvQ87w1z1GS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-10-04_05,2021-10-04_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 adultscore=0 malwarescore=0 phishscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110050061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 Oct 2021 03:53:17 -0400 "Michael S. Tsirkin" wrote: > > Wouldn't a call from transport code into virtio core > > be more handy? What I have in mind is stuff like vhost-user and vdpa. My > > understanding is, that for vhost setups where the config is outside qemu, > > we probably need a new command that tells the vhost backend what > > endiannes to use for config. I don't think we can use > > VHOST_USER_SET_VRING_ENDIAN because that one is on a virtqueue basis > > according to the doc. So for vhost-user and similar we would fire that > > command and probably also set the filed, while for devices for which > > control plane is handled by QEMU we would just set the field. > > > > Does that sound about right? > > I'm fine either way, but when would you invoke this? > With my idea backends can check the field when get_config > is invoked. > > As for using this in VHOST, can we maybe re-use SET_FEATURES? > > Kind of hacky but nice in that it will actually make existing backends > work... Basically the equivalent of this patch, just on the vhost interface, right? Could work I have to look into it :)