From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4E86C433F5 for ; Tue, 19 Apr 2022 11:33:47 +0000 (UTC) Received: from localhost ([::1]:37822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngm78-0006nu-Li for qemu-devel@archiver.kernel.org; Tue, 19 Apr 2022 07:33:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngm6G-0005Nj-2a for qemu-devel@nongnu.org; Tue, 19 Apr 2022 07:32:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:52692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngm6C-0005aa-VO for qemu-devel@nongnu.org; Tue, 19 Apr 2022 07:32:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650367967; 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: in-reply-to:in-reply-to:references:references; bh=IzWVUknzT342xWDLAbeGzn+eMKHYH5Od3NPLMPktXmI=; b=HcxKhn9Y5xAWi20Y9jobVdsFC7PwpNP/syfHzyUZhJSlhhac1PVdZsV8y6dYoTqJ8jQpeP tdqHNk5hljkVcfWkwSdcV0G4wSJf4rLGVDvK32sVusWnFLlcOoQrEfPeYWyvMADEmf7NJM EGs6M9oR8jxlkNdJnGEwQIcvbZLGubo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-475-F-eEY3EtND2C0s6AayR9nQ-1; Tue, 19 Apr 2022 07:32:46 -0400 X-MC-Unique: F-eEY3EtND2C0s6AayR9nQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 022323C02B79; Tue, 19 Apr 2022 11:32:46 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B206040CF910; Tue, 19 Apr 2022 11:32:44 +0000 (UTC) From: Florian Weimer To: Stefan Hajnoczi Subject: Re: Portable inline asm to get address of TLS variable References: <87leyaznm6.fsf@oldenburg.str.redhat.com> <877d9uzgsd.fsf@oldenburg.str.redhat.com> <8735k1q452.fsf@oldenburg.str.redhat.com> Date: Tue, 19 Apr 2022 13:32:42 +0200 In-Reply-To: (Stefan Hajnoczi's message of "Tue, 1 Mar 2022 13:39:41 +0000") Message-ID: <87lew12tr9.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=fweimer@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Received-SPF: pass client-ip=170.10.129.124; envelope-from=fweimer@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Rodgers , Stefan Hajnoczi , Richard Henderson , qemu-devel , Serge Guelton Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" * Stefan Hajnoczi: > On Tue, Mar 01, 2022 at 12:54:49PM +0100, Florian Weimer wrote: >> > I took a quick look at C++20 coroutines since they are available in >> > compilers but the primitives look hard to use even from C++, let alone >> > from C. >> >> Could you go into details what makes them hard to use? Is it because >> coroutines are infectious across the call stack? > > Here is the simplest tutorial on C++20 coroutines I found: > https://itnext.io/c-20-coroutines-complete-guide-7c3fc08db89d > > The amount of boilerplate for trivial coroutine functions is ridiculous. Would an execution agent library reduce that usage overhead? Cc:ing Thomas, who might know the answer. Thanks, Florian