Message ID | a16d91d48d91d8ff6863e603a852a19dbb23b58c.1582576372.git.jag.raman@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=a4nG=4M=nongnu.org=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AADE924 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 24 Feb 2020 21:23:29 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 71018218AC for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 24 Feb 2020 21:23:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="qpL8wzZs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71018218AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:43782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1j6LCK-0002KC-KD for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Feb 2020 16:23:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50854) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <jag.raman@oracle.com>) id 1j6Kml-0007jd-Ix for qemu-devel@nongnu.org; Mon, 24 Feb 2020 15:57:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jag.raman@oracle.com>) id 1j6Kmk-0003uL-IE for qemu-devel@nongnu.org; Mon, 24 Feb 2020 15:57:03 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:53648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <jag.raman@oracle.com>) id 1j6Kmk-0003fl-9Y for qemu-devel@nongnu.org; Mon, 24 Feb 2020 15:57:02 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01OKrrEn164241; Mon, 24 Feb 2020 20:56:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : in-reply-to : references; s=corp-2020-01-29; bh=11GRFHKYicQAWpUGFaClGFpZjf42fOND2jTkHGMe8jM=; b=qpL8wzZsp4Ih/KG5BcpY2G5HDBrWqEoiY8K9k38YCpS+3SH4OrgQbhDjA9pRhv+odGSP o7ZyiZzMchg61A6UoMYs0sTbf3kK7K/1pIjAKyVwKI3S2x2kKBQsyZUoFSMjr4Nz3IcW 1T/XUudiqcSjkUSTrYbm3dq4WUcyc9UTFWJqk/27hKW/8NaOe2+hVaEQ9/99gvmLX7GF 3sePTXshKoscsQjagka5Vg31W+4RCmdOc6wRsbvRBMHmjVkhChIwVHGtjb2pSXd8bRNA OLvJUaRjJuguh4AFL+dbR+8ed0FGdPYYWkO6U9RgFkRD5A5iFgZuHxzSRITEtOCYHVfE Qw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2ybvr4p978-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Feb 2020 20:56:47 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01OKqOFK089544; Mon, 24 Feb 2020 20:56:46 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2yby5dmcrg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Feb 2020 20:56:46 +0000 Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 01OKuiHg028708; Mon, 24 Feb 2020 20:56:44 GMT Received: from jaraman-bur-1.us.oracle.com (/10.152.33.39) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Feb 2020 12:56:44 -0800 From: Jagannathan Raman <jag.raman@oracle.com> To: qemu-devel@nongnu.org Subject: [PATCH v5 31/50] multi-process: handle heartbeat messages in remote process Date: Mon, 24 Feb 2020 15:55:22 -0500 Message-Id: <a16d91d48d91d8ff6863e603a852a19dbb23b58c.1582576372.git.jag.raman@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <cover.1582576372.git.jag.raman@oracle.com> References: <cover.1582576372.git.jag.raman@oracle.com> In-Reply-To: <cover.1582576372.git.jag.raman@oracle.com> References: <cover.1582576372.git.jag.raman@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9541 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 suspectscore=1 mlxlogscore=999 phishscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002240153 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9541 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 impostorscore=0 suspectscore=1 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002240153 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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> Cc: elena.ufimtseva@oracle.com, fam@euphon.net, swapnil.ingle@nutanix.com, john.g.johnson@oracle.com, kraxel@redhat.com, jag.raman@oracle.com, quintela@redhat.com, mst@redhat.com, armbru@redhat.com, kanth.ghatraju@oracle.com, felipe@nutanix.com, thuth@redhat.com, ehabkost@redhat.com, konrad.wilk@oracle.com, dgilbert@redhat.com, liran.alon@oracle.com, stefanha@redhat.com, thanos.makatos@nutanix.com, rth@twiddle.net, kwolf@redhat.com, berrange@redhat.com, mreitz@redhat.com, ross.lagerwall@citrix.com, marcandre.lureau@gmail.com, pbonzini@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> |
Series |
Initial support for multi-process qemu
|
expand
|
diff --git a/remote/remote-main.c b/remote/remote-main.c index 872ff7e..2c05d20 100644 --- a/remote/remote-main.c +++ b/remote/remote-main.c @@ -315,6 +315,7 @@ static void process_msg(GIOCondition cond, MPQemuChannel *chan) { MPQemuMsg *msg = NULL; Error *err = NULL; + int wait; if ((cond & G_IO_HUP) || (cond & G_IO_ERR)) { goto finalize_loop; @@ -389,6 +390,10 @@ static void process_msg(GIOCondition cond, MPQemuChannel *chan) case DEVICE_DEL: process_device_del_msg(msg); break; + case PROXY_PING: + wait = msg->fds[0]; + notify_proxy(wait, (uint32_t)getpid()); + break; default: error_setg(&err, "Unknown command"); goto finalize_loop;