{"id":2220194,"url":"http://patchwork.ozlabs.org/api/covers/2220194/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20260406153331.8846-1-xukl2019@sjtu.edu.cn/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260406153331.8846-1-xukl2019@sjtu.edu.cn>","list_archive_url":null,"date":"2026-04-06T15:32:51","name":"[v2,0/1] contrib/plugins: add syscall-filter passthrough zlib demo","submitter":{"id":93022,"url":"http://patchwork.ozlabs.org/api/people/93022/?format=json","name":"XU Kailiang","email":"xukl2019@sjtu.edu.cn"},"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20260406153331.8846-1-xukl2019@sjtu.edu.cn/mbox/","series":[{"id":498875,"url":"http://patchwork.ozlabs.org/api/series/498875/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498875","date":"2026-04-06T15:32:52","name":"contrib/plugins: add syscall-filter passthrough zlib demo","version":2,"mbox":"http://patchwork.ozlabs.org/series/498875/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2220194/comments/","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":"legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)","Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqD196BrRz1yGn\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 01:35:25 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w9lyV-00078V-UJ; Mon, 06 Apr 2026 11:34:52 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <xukl2019@sjtu.edu.cn>)\n id 1w9lyT-000783-W8\n for qemu-devel@nongnu.org; Mon, 06 Apr 2026 11:34:50 -0400","from smtp232.sjtu.edu.cn ([202.120.2.232])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <xukl2019@sjtu.edu.cn>)\n id 1w9lyQ-0008Bg-6M\n for qemu-devel@nongnu.org; Mon, 06 Apr 2026 11:34:48 -0400","from proxy188.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188])\n by smtp232.sjtu.edu.cn (Postfix) with ESMTPS id B7EC3100825FC;\n Mon,  6 Apr 2026 23:34:31 +0800 (CST)","from xuklXiaoxin (unknown [202.120.32.222])\n by proxy188.sjtu.edu.cn (Postfix) with ESMTPSA id 0381537C8CA;\n Mon,  6 Apr 2026 23:34:30 +0800 (CST)"],"From":"XU Kailiang <xukl2019@sjtu.edu.cn>","To":"qemu-devel <qemu-devel@nongnu.org>","Cc":"=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>,\n Ziyang Zhang <functioner@sjtu.edu.cn>, Yun Wang <yunwang94@sjtu.edu.cn>,\n Mingyuan Xia <xiamy@ultrarisc.com>, Zhengwei Qi <qizhwei@sjtu.edu.cn>,\n XU Kailiang <xukl2019@sjtu.edu.cn>","Subject":"[PATCH v2 0/1] contrib/plugins: add syscall-filter passthrough zlib\n demo","Date":"Mon,  6 Apr 2026 23:32:51 +0800","Message-ID":"<20260406153331.8846-1-xukl2019@sjtu.edu.cn>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260331173656.35305-1-xukl2019@sjtu.edu.cn>","References":"<20260331173656.35305-1-xukl2019@sjtu.edu.cn>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=202.120.2.232;\n envelope-from=xukl2019@sjtu.edu.cn;\n helo=smtp232.sjtu.edu.cn","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,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <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>,\n <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"},"content":"Hi,\n\nThis v2 simplifies the earlier series into one minimal, runnable example for\nthe linux-user syscall filter API.\n\nIt adds:\n\n- one plugin: contrib/plugins/passthrough.c\n- one matching in-tree example: contrib/plugins/passthrough-examples/ (zlib)\n\nThe plugin handles a small passthrough protocol over a magic syscall\n(load HTL module, resolve HTL symbol, invoke HTL entry). The zlib guest thunk\nlibrary (GTL) uses this protocol to forward selected zlib calls to host-side\nHTL/native zlib.\n\nCompared to v1 [1], this version narrows scope:\n\n- drop the callback/qsort prototype\n- drop extra demo variants\n- keep only a single plugin + single matching example that is easy to build\n  and reproduce\n\nBuild/repro documentation is provided in:\n\n- docs/about/emulation.rst\n- contrib/plugins/passthrough-examples/README.rst\n\nThanks,\nXU Kailiang\n\n[1]: https://lore.kernel.org/qemu-devel/20260331173656.35305-1-xukl2019@sjtu.edu.cn/T/#t\n\n---\n\nXU Kailiang (1):\n  contrib/plugins: add syscall-filter passthrough zlib demo\n\n contrib/plugins/meson.build                   |  11 ++\n contrib/plugins/passthrough-examples/Makefile |  23 +++\n .../plugins/passthrough-examples/README.rst   |  60 +++++++\n .../plugins/passthrough-examples/meson.build  |  19 ++\n .../passthrough-examples/passthrough-gtl.c    |  41 +++++\n .../passthrough-examples/passthrough-gtl.h    |  17 ++\n .../plugins/passthrough-examples/zlib-demo.c  |  90 ++++++++++\n .../plugins/passthrough-examples/zlib-gtl.c   |  72 ++++++++\n .../plugins/passthrough-examples/zlib-htl.c   |  37 ++++\n contrib/plugins/passthrough-protocol.h        |  14 ++\n contrib/plugins/passthrough.c                 | 162 ++++++++++++++++++\n docs/about/emulation.rst                      |  33 ++++\n 12 files changed, 579 insertions(+)\n create mode 100644 contrib/plugins/passthrough-examples/Makefile\n create mode 100644 contrib/plugins/passthrough-examples/README.rst\n create mode 100644 contrib/plugins/passthrough-examples/meson.build\n create mode 100644 contrib/plugins/passthrough-examples/passthrough-gtl.c\n create mode 100644 contrib/plugins/passthrough-examples/passthrough-gtl.h\n create mode 100644 contrib/plugins/passthrough-examples/zlib-demo.c\n create mode 100644 contrib/plugins/passthrough-examples/zlib-gtl.c\n create mode 100644 contrib/plugins/passthrough-examples/zlib-htl.c\n create mode 100644 contrib/plugins/passthrough-protocol.h\n create mode 100644 contrib/plugins/passthrough.c\n\n\nbase-commit: b6a7d06213e5d2f7d124d16418bc289c4a8a4b82"}