Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp147704rdb; Wed, 20 Dec 2023 08:26:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHU2xHUKZlNUHykgp6aokI5gfWK6Pmz9lDsxhgH+RISK1/s5PmexSZV8cru16aYfiMNiV9+ X-Received: by 2002:a17:902:e74e:b0:1cc:5e1b:98b5 with SMTP id p14-20020a170902e74e00b001cc5e1b98b5mr23074325plf.66.1703089601360; Wed, 20 Dec 2023 08:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703089601; cv=none; d=google.com; s=arc-20160816; b=tHlik+37K2mCxWpS+9FDCJFFnUNeViA7rcHkuPXbupS5D2AxfCIjE1nUeu4KsiZut9 xueYNB+rd/jXCPaVgrBV+0MKDyK2/SnvvwLhPQhX/L5hkZlgFUFAZVHxWw4zsJ8iVqzO 139zpj+TsApC/rGAPqL/VGFeMLpX2O4zmRByiqSTjNgsIXFSLfDslEoiuUPIgKKqL5eH dycarJta+V/dsrm76t1dOBZ6G9ryTegetT5HYpRQzwhzdAJ6R31G4PSqM/ToAW8ljxLM Lnbv0kgfXBPZ+9SS2iEdmszjjGZYVu12Kdv1HfTQjqTKpm6aYNfOW6nwJqfZTNMk81IX PLtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=vEaUEcnajrqgltfyosH4+omdF/fMexYhj4bOk+VvvgM=; fh=JVMv++1TGV2U7ZGRb6hqMDQwKKn1pHeGD1L2S1EXDQE=; b=ZhacjEHSIMCi6/fjeNOIacIUpSA4eWDgaEkht5M8wjvUGwVEyRgzWIhaRAyPQ1WoaD YycBa4RSp40+WWKaCKanCJJbveWfIuDgxtKrfMRYz4J5FHRiCyA/m5Da2Btwq25LBIzA gk7ZFkoeSZTgYj0O4p/3+8fnyOeu7GV/6VBQfEwohTrxZG/BtyFU6PcXw5cCDfunzIaf jEHhvFLz8Wjue7sMWR0QoNvRj680YGROiyaeHioFgDBr8riKpjytCYZTIBMNCgSQ5Qwr I9k2mXcVbWS11/hebpFYuPOyIjiHWs3CKuYbBf7PXKxdtntyZL7bR48oaoakrbYf0BtS +Hug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aAYeNCKu; spf=pass (google.com: domain of linux-kernel+bounces-7271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n2-20020a170902d2c200b001cfdfa28b70si22201495plc.469.2023.12.20.08.26.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 08:26:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aAYeNCKu; spf=pass (google.com: domain of linux-kernel+bounces-7271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 61D6628B4DB for ; Wed, 20 Dec 2023 16:18:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63ADA4AF78; Wed, 20 Dec 2023 16:12:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aAYeNCKu" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BC1A4AF73 for ; Wed, 20 Dec 2023 16:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703088754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vEaUEcnajrqgltfyosH4+omdF/fMexYhj4bOk+VvvgM=; b=aAYeNCKuFX0LtNZanY07NyIxH4iv+eNmZ4oc7aUEAz48jU/L3OTGNT5IDuaG2ffxGWJpXH m09PokzsUDXGLJg6oLyvBtHGu2vWNFcKOpCyXS5/g7Dr0DvUjONN0p47/NOk9o21ui4C5v 0GfSZtMhMvpxzeudYHRYJjk2c6+RYfA= Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-641-eUD6fTTTM5Wc9-8TdDEccA-1; Wed, 20 Dec 2023 11:12:32 -0500 X-MC-Unique: eUD6fTTTM5Wc9-8TdDEccA-1 Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-5e7c4de7198so21082017b3.1 for ; Wed, 20 Dec 2023 08:12:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703088752; x=1703693552; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vEaUEcnajrqgltfyosH4+omdF/fMexYhj4bOk+VvvgM=; b=EYhD4c+ctjm3ouWS6Tc7WSDWyoOrA1W14R6QlSyqryb7//+yn2XUsGJkcX4DTMsvUp r4YVTnAXm5ywT06gdfygE6oaCEAGRpE/CVhi1h8Lk1h2YU4A5XBRZlvk2F6ZCd9YjnV0 ffE/eaXRMnXdUjzE1rnGFX3nOy8J9e4GHDF+rAHWI9JmSMMagzm5WHf6Ym/Mz7bOy6U3 DIiNhbRksOtI1g8nr6UP3ZRnMnoi9+ZVrsb46brhyBxDFIFYS8wG2b3+KsrkD8ZuRyls D5ntMnSlxIHUwxc1fzfoBWJC2MMtXnYQ5J7xbqOZrefep4OV8Jh28qWC7ddJAbjUbZZ1 d+5Q== X-Gm-Message-State: AOJu0YycvmGSpb7AhVcZDSRfEHxxuu0gwgrsBnsWmSE9GGMP66Lc0B47 v5UoEI08K0M+WN6f1Q7TNDvvonHldsoRay4WZGWvJlEHYSfhyw3wOaKGE1iIK3PVsK1NYQ7wf4/ Q/7n1NeOhjhv0A7w3sqitb3jEoxLdsZb1/YvzN0e4 X-Received: by 2002:a25:b28c:0:b0:dbd:ae7b:fa8 with SMTP id k12-20020a25b28c000000b00dbdae7b0fa8mr579089ybj.89.1703088752248; Wed, 20 Dec 2023 08:12:32 -0800 (PST) X-Received: by 2002:a25:b28c:0:b0:dbd:ae7b:fa8 with SMTP id k12-20020a25b28c000000b00dbdae7b0fa8mr579074ybj.89.1703088752028; Wed, 20 Dec 2023 08:12:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219180858.120898-1-dtatulea@nvidia.com> <20231219180858.120898-5-dtatulea@nvidia.com> In-Reply-To: <20231219180858.120898-5-dtatulea@nvidia.com> From: Eugenio Perez Martin Date: Wed, 20 Dec 2023 17:11:55 +0100 Message-ID: Subject: Re: [PATCH vhost v4 04/15] vdpa: Accept VHOST_BACKEND_F_CHANGEABLE_VQ_ADDR_IN_SUSPEND backend feature To: Dragos Tatulea Cc: "Michael S . Tsirkin" , Jason Wang , Si-Wei Liu , Saeed Mahameed , Leon Romanovsky , virtualization@lists.linux-foundation.org, Gal Pressman , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Parav Pandit , Xuan Zhuo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2023 at 7:09=E2=80=AFPM Dragos Tatulea wrote: > > If userland sets this feature, allow it. > > Signed-off-by: Dragos Tatulea > Suggested-by: Eugenio P=C3=A9rez Acked-by: Eugenio P=C3=A9rez > --- > drivers/vhost/vdpa.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c > index da7ec77cdaff..2250fcd90e5b 100644 > --- a/drivers/vhost/vdpa.c > +++ b/drivers/vhost/vdpa.c > @@ -749,6 +749,7 @@ static long vhost_vdpa_unlocked_ioctl(struct file *fi= lep, > BIT_ULL(VHOST_BACKEND_F_IOTLB_PERSIST) | > BIT_ULL(VHOST_BACKEND_F_SUSPEND) | > BIT_ULL(VHOST_BACKEND_F_RESUME) | > + BIT_ULL(VHOST_BACKEND_F_CHANGEABLE_VQ_AD= DR_IN_SUSPEND) | > BIT_ULL(VHOST_BACKEND_F_ENABLE_AFTER_DRI= VER_OK))) > return -EOPNOTSUPP; > if ((features & BIT_ULL(VHOST_BACKEND_F_SUSPEND)) && > -- > 2.43.0 >