Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2251647rwd; Tue, 13 Jun 2023 23:31:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fq22Jly2TqXLWhdyzCZk+hoYdbATkFpFAh46uKqVL0Ur8lFJqpKZk78zZoRC3qUArrJkl X-Received: by 2002:a17:90a:d587:b0:25c:1f58:37b7 with SMTP id v7-20020a17090ad58700b0025c1f5837b7mr595752pju.23.1686724281080; Tue, 13 Jun 2023 23:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686724281; cv=none; d=google.com; s=arc-20160816; b=bI9F2EKFbZ/HF/CwOdZI2jC4LMOGnk7rBfS7PcJAdg0vLj3794VzI1vSInAZoulr0D AtPazB+K6m0T3SizcRYV/rKrynLybUSK0B12LlkO1ZtNCcFnlHYolp3nfi7GiZox136C gu9zGtqQR+01o2vq4KkKYGDtPVgRZD4IC2ctqcPn3u3oXhJCyOe9V0xEzH5VqiQl9a7b E/ScONxfwU/0653Plzxcxt+sh8u/GQcilaBZLrkk4WOJuf1PoyIh9vhwR+5+P+YR7IzN /+giHxEiCLgfYQ4JEQ0bzsNFiWNR3cH0pbvUYoNqfu2/zh3cLhqg6ipWIiOT7qaIS/AV UkLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:mime-version:user-agent:message-id :in-reply-to:date:references:cc:to:from; bh=sEZwVF3si2IGb9/A0gfy7k4EVC209SFqIDvYawtPZUs=; b=ZLLOBIQyPd+4kT9O+/YsPhoKVeP+fkYaTYNEF++cwp3ABNGuCWEph4SFBOfsKbU+hM Oltq535nQMkJsZlDuOzYoJVOTnkC82GtseXBbPQ47lMKFDe9c+CwHkSxW+Oa59na6qbE QVM1FNwTf+te99OaLkM0KQYyeQ2ARJ+8x8LJt/pcYEZC1Mt7zwGoP2NBvnS0g6g5vhe4 KT/1DeuFECB/Pysb7FeNq4L6rWaKTe5tipMKJQr550RwHn7EwzHuqvkgjnabpVGAjqS3 1USiSOFrtENUioXxeIHABAQi4NYHITUUEKHiJT7ZgDTChLXfGS+VVQ0Xjvu2h/wlRB3/ 4BMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m123-20020a633f81000000b0054fda551fecsi307845pga.426.2023.06.13.23.31.08; Tue, 13 Jun 2023 23:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234371AbjFNGDk (ORCPT + 99 others); Wed, 14 Jun 2023 02:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233669AbjFNGDj (ORCPT ); Wed, 14 Jun 2023 02:03:39 -0400 Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94F1D1AA for ; Tue, 13 Jun 2023 23:03:37 -0700 (PDT) Received: from in02.mta.xmission.com ([166.70.13.52]:36596) by out01.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1q9JbT-009Rpp-9K; Wed, 14 Jun 2023 00:03:35 -0600 Received: from ip68-110-29-46.om.om.cox.net ([68.110.29.46]:55536 helo=email.froward.int.ebiederm.org.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1q9JbJ-003KA2-K3; Wed, 14 Jun 2023 00:03:34 -0600 From: "Eric W. Biederman" To: Mike Christie Cc: Oleg Nesterov , linux@leemhuis.info, nicolas.dichtel@6wind.com, axboe@kernel.dk, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com, sgarzare@redhat.com, jasowang@redhat.com, stefanha@redhat.com, brauner@kernel.org References: <20230601183232.8384-1-michael.christie@oracle.com> <20230602192254.GD555@redhat.com> <87r0qt18qq.fsf_-_@email.froward.int.ebiederm.org> <20230605151037.GE32275@redhat.com> <03c07f48-8922-f563-560c-f0d4cc3e1279@oracle.com> <20230606121643.GD7542@redhat.com> <39f5913c-e658-e476-0378-62236bb4ed49@oracle.com> <20230606193907.GB18866@redhat.com> Date: Wed, 14 Jun 2023 01:02:58 -0500 In-Reply-To: (Mike Christie's message of "Tue, 6 Jun 2023 15:38:04 -0500") Message-ID: <87mt12oa25.fsf_-_@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1q9JbJ-003KA2-K3;;;mid=<87mt12oa25.fsf_-_@email.froward.int.ebiederm.org>;;;hst=in02.mta.xmission.com;;;ip=68.110.29.46;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX1/4Ah0HgiSeh15/g7eNi4deF/0irVfxcS8= X-SA-Exim-Connect-IP: 68.110.29.46 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-DCC: ; sa07 0; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Mike Christie X-Spam-Relay-Country: X-Spam-Timing: total 8918 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 213 (2.4%), b_tie_ro: 8 (0.1%), parse: 1.15 (0.0%), extract_message_metadata: 3.4 (0.0%), get_uri_detail_list: 0.91 (0.0%), tests_pri_-2000: 3.3 (0.0%), tests_pri_-1000: 2.6 (0.0%), tests_pri_-950: 1.32 (0.0%), tests_pri_-900: 1.08 (0.0%), tests_pri_-200: 0.84 (0.0%), tests_pri_-100: 2.9 (0.0%), tests_pri_-90: 1378 (15.5%), check_bayes: 1375 (15.4%), b_tokenize: 5 (0.1%), b_tok_get_all: 817 (9.2%), b_comp_prob: 2.2 (0.0%), b_tok_touch_all: 547 (6.1%), b_finish: 0.88 (0.0%), tests_pri_0: 7287 (81.7%), check_dkim_signature: 0.67 (0.0%), check_dkim_adsp: 2.9 (0.0%), poll_dns_idle: 1.04 (0.0%), tests_pri_10: 3.3 (0.0%), tests_pri_500: 9 (0.1%), rewrite_mail: 0.00 (0.0%) Subject: Can vhost translate to io_uring? X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am sad my idea for simplifying things did not work out. Let's try an even bigger idea to reduce maintenance and simplify things. Could vhost depend on io_uring? Could vhost just be a translation layer of existing vhost requests to io_uring requests? At a quick glance it looks like io_uring already supports the functionality that vhost supports (which I think is networking and scsi). If vhost could become a translation layer that would allow removing the vhost worker and PF_USER_WORKER could be removed completely, leaving only PF_IO_WORKER. I suggest this because a significant vhost change is needed because in the long term the hacks in exec and coredump are not a good idea. Which means something like my failed "[PATCH v3] fork, vhost: Use CLONE_THREAD to fix freezer/ps regression". If we have to go to all of the trouble of reworking things it why can't we just make io_uring do all of the work? Eric