Message ID | 117550f9615ce46ace1721b7d98a6bd3c02ab759.1567534653.git.jag.raman@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=el2y=W6=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 B4A3A15E9 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 3 Sep 2019 20:53:09 +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 8AE3B208E4 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 3 Sep 2019 20:53:09 +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="KcEkgLf4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AE3B208E4 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]:51296 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 1i5FnY-0003yN-6z for patchwork-qemu-devel@patchwork.kernel.org; Tue, 03 Sep 2019 16:53:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53535) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <jag.raman@oracle.com>) id 1i5Fa4-0007fw-Gp for qemu-devel@nongnu.org; Tue, 03 Sep 2019 16:39:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jag.raman@oracle.com>) id 1i5Fa3-0000Xy-DP for qemu-devel@nongnu.org; Tue, 03 Sep 2019 16:39:12 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:36830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <jag.raman@oracle.com>) id 1i5Fa3-0000XN-5Y for qemu-devel@nongnu.org; Tue, 03 Sep 2019 16:39:11 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x83KYLB6066648; Tue, 3 Sep 2019 20:39:04 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-2019-08-05; bh=FIc3D2OO49s7HejpuvfBf2ok/YTl9KnG+s8fPQomsd8=; b=KcEkgLf4I8+vaPCM+sCbQMpONhaYv8IiNPrIDe67VXK7x75n/41UsCtwkvhaqnez6sHu bpLN/pppUMUm11P/z6B+OP87T/myYFKDv6VAdI3X++4GvloDDzdCzy+Lk0wnt9AjxKMc PspIKmyqrtjZGm3PJ8M2ccGB52UTox2+pwJEsDTDmFjmOmmI03rJoYu+O4bfRd0xwuXS N37NUKv8zTKevBbNR0wZwgiA2BDlMZKf+MTeF6LmRuV7MFbSdLiwmK7LiDgdTm4sK7tw DtfskEmzvyYfL+fWFxLmcb/Nfu7SUBKJkS6l6Os7NI5AOjiFc3Taij3IuK+P9CrB79xg 0A== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2usy4u8326-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Sep 2019 20:39:04 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x83KcXao178144; Tue, 3 Sep 2019 20:39:04 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2us4wegqug-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Sep 2019 20:39:04 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x83Kd32w012649; Tue, 3 Sep 2019 20:39:03 GMT Received: from jaraman-bur-1.us.oracle.com (/10.152.33.39) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 03 Sep 2019 13:39:02 -0700 From: Jagannathan Raman <jag.raman@oracle.com> To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 16:37:51 -0400 Message-Id: <117550f9615ce46ace1721b7d98a6bd3c02ab759.1567534653.git.jag.raman@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <cover.1567534653.git.jag.raman@oracle.com> References: <cover.1567534653.git.jag.raman@oracle.com> In-Reply-To: <cover.1567534653.git.jag.raman@oracle.com> References: <cover.1567534653.git.jag.raman@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9369 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909030207 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9369 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909030206 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 Subject: [Qemu-devel] [RFC v3 PATCH 25/45] multi-process: remote: use fd for socket from parent process 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, 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, thuth@redhat.com, ehabkost@redhat.com, konrad.wilk@oracle.com, dgilbert@redhat.com, liran.alon@oracle.com, stefanha@redhat.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 of multi-process qemu
|
expand
|
diff --git a/remote/remote-main.c b/remote/remote-main.c index 3e92a83..e284d5f 100644 --- a/remote/remote-main.c +++ b/remote/remote-main.c @@ -63,6 +63,7 @@ #include "block/qdict.h" #include "qapi/qmp/qlist.h" #include "qemu/log.h" +#include "qemu/cutils.h" static ProxyLinkState *proxy_link; PCIDevice *remote_pci_dev; @@ -439,6 +440,7 @@ finalize_loop: int main(int argc, char *argv[]) { Error *err = NULL; + int fd = -1; module_call_init(MODULE_INIT_QOM); @@ -461,7 +463,13 @@ int main(int argc, char *argv[]) return -1; } - proxy_link_init_channel(proxy_link, &proxy_link->com, STDIN_FILENO); + fd = qemu_parse_fd(argv[1]); + if (fd == -1) { + printf("Failed to parse fd for remote process.\n"); + return -EINVAL; + } + + proxy_link_init_channel(proxy_link, &proxy_link->com, fd); proxy_link_set_callback(proxy_link, process_msg); start_handler(proxy_link);