Message ID | 20150210101318.GB5202@noname.str.redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CA32C140151 for <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2015 21:14:09 +1100 (AEDT) Received: from localhost ([::1]:38831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1YL7pX-0001fd-Ti for incoming@patchwork.ozlabs.org; Tue, 10 Feb 2015 05:14:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <kwolf@redhat.com>) id 1YL7oy-0000il-Be for qemu-devel@nongnu.org; Tue, 10 Feb 2015 05:13:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <kwolf@redhat.com>) id 1YL7ou-0004sk-7D for qemu-devel@nongnu.org; Tue, 10 Feb 2015 05:13:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <kwolf@redhat.com>) id 1YL7ot-0004sW-Vi for qemu-devel@nongnu.org; Tue, 10 Feb 2015 05:13:28 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1AADL7q015999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Feb 2015 05:13:21 -0500 Received: from noname.str.redhat.com (dhcp-192-197.str.redhat.com [10.33.192.197]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id t1AADI7M022649; Tue, 10 Feb 2015 05:13:19 -0500 Date: Tue, 10 Feb 2015 11:13:18 +0100 From: Kevin Wolf <kwolf@redhat.com> To: Stefan Hajnoczi <stefanha@gmail.com> Message-ID: <20150210101318.GB5202@noname.str.redhat.com> References: <1423464639-4764-1-git-send-email-wu.wubin@huawei.com> <20150209144813.GA2076@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <20150209144813.GA2076@stefanha-thinkpad.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: famz@redhat.com, stefanha@redhat.com, subo7@huawei.com, kathy.wangting@huawei.com, bruce.fon@huawei.com, qemu-devel@nongnu.org, arei.gonglei@huawei.com, boby.chen@huawei.com, pbonzini@redhat.com, rudy.zhangmin@huawei.com, Bin Wu <wu.wubin@huawei.com> Subject: Re: [Qemu-devel] [PATCH v2] qemu-coroutine: segfault when restarting co_queue X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
--- a/qemu-coroutine.c +++ b/qemu-coroutine.c @@ -148,5 +148,5 @@ void coroutine_fn qemu_coroutine_yield(void) } self->caller = NULL; - coroutine_swap(self, to); + qemu_coroutine_switch(self, to, COROUTINE_YIELD); }