From patchwork Sun May 10 06:14:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhao xiao qiang X-Patchwork-Id: 11538641 Return-Path: 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 DE20614C0 for ; Sun, 10 May 2020 06:18:57 +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 B4A2A2082E for ; Sun, 10 May 2020 06:18:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="cO+zu1Qj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4A2A2082E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=163.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]:53326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXfIe-0004hC-TL for patchwork-qemu-devel@patchwork.kernel.org; Sun, 10 May 2020 02:18:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXfGC-0000gJ-6U for qemu-devel@nongnu.org; Sun, 10 May 2020 02:16:24 -0400 Received: from m12-18.163.com ([220.181.12.18]:49079) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jXfG9-0000Tk-3x for qemu-devel@nongnu.org; Sun, 10 May 2020 02:16:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=cThyaTgGLZ3I6o5sAk gh07FKp2Vj9HqqzzvQtucERRo=; b=cO+zu1Qj6eAy6xNj77pYf8Y/J537vPPBy/ N9ZxZLuS9yRgZVEuwKIplEm9ZE4VZaxDwCo51ikluJhz+cBK+ZzepM4wMpm9d0C2 uN//poL/9qovSmF5OfXzJksMuaE0DesF8okRUVAiLNWJsOHqXoTUB1AW7G4jOptz U5D8pNWoE= Received: from localhost.localdomain (unknown [103.235.247.137]) by smtp14 (Coremail) with SMTP id EsCowADH7trXm7dehaPQBA--.17000S2; Sun, 10 May 2020 14:15:34 +0800 (CST) From: xiaoqiang zhao To: berrange@redhat.com, marcandre.lureau@redhat.com, eblake@redhat.com, kwolf@redhat.com, armbru@redhat.com Subject: [PATCH v3 0/3] qemu-sockets: add abstract UNIX domain socket support Date: Sun, 10 May 2020 14:14:19 +0800 Message-Id: <20200510061422.24841-1-zxq_yx_007@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: EsCowADH7trXm7dehaPQBA--.17000S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GFyxJw18GFy7tr4kuFyxuFg_yoW3WFX_Xr y0k3s5KrW7Ka1rAa4YkF13JrW7Ar40gF1vqF1DtrZ8Ww18Zrn8trs8Aryxtw1UXFyDZF1x X3s7GrZ3A347CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xREsqXtUUUUU== X-Originating-IP: [103.235.247.137] X-CM-SenderInfo: 520ts5t0bqili6rwjhhfrp/xtbB0hMgxlUMWAEnIgAAsi Received-SPF: pass client-ip=220.181.12.18; envelope-from=zxq_yx_007@163.com; helo=m12-18.163.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/10 02:16:04 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, xiaoqiang zhao , kraxel@redhat.com, pbonzini@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" By default qemu does not support abstract UNIX domain socket address. Add this ability to make qemu handy when abstract address is needed. Changes since v2: * reorganize code to cover both connect and listen * qapi related changes * add test cases and update qemu-options documents Xiaoqiang Zhao (3): qemu-sockets: add abstract UNIX domain socket support tests/util-sockets: add abstract unix socket cases qemu-options: updates for abstract unix sockets chardev/char-socket.c | 4 ++ chardev/char.c | 7 ++++ qapi/sockets.json | 9 ++++- qemu-options.hx | 9 ++++- tests/test-util-sockets.c | 83 +++++++++++++++++++++++++++++++++++++++ util/qemu-sockets.c | 39 ++++++++++++++---- 6 files changed, 141 insertions(+), 10 deletions(-)