From patchwork Sat Aug 21 09:45:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Hauschild X-Patchwork-Id: 12450863 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E717C4338F for ; Sat, 21 Aug 2021 09:47:34 +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 DCD9061184 for ; Sat, 21 Aug 2021 09:47:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DCD9061184 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fs.ei.tum.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:58620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHNbA-00087G-MD for qemu-devel@archiver.kernel.org; Sat, 21 Aug 2021 05:47:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHNZi-0006kK-MR for qemu-devel@nongnu.org; Sat, 21 Aug 2021 05:46:02 -0400 Received: from mail.fs.ei.tum.de ([129.187.54.7]:45290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHNZe-0002wj-Dl for qemu-devel@nongnu.org; Sat, 21 Aug 2021 05:46:02 -0400 Received: from Lucy.fritz.box (pc19f2504.dip0.t-ipconnect.de [193.159.37.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.fs.ei.tum.de (Postfix) with ESMTPSA id 0D32A118756A; Sat, 21 Aug 2021 11:45:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fs.ei.tum.de; s=default; t=1629539145; bh=5RLj7BbYrjm1J573Hbok+oGFgzHIf+0cM4JFAztH+Ks=; h=From:To:Cc:Subject:Date:From; b=LIAHc2saaWGb2W1zVKNXtuBzlGgip5SUcTQMXHWovx5WHHp+7x2ZJtjN+XSbCtDom tQ3sUwhl+T3oBwJPAwzJp4i1GZXLTgf1JKHi2GF6vd4y+Tuo9uiBPGjHdJmnqYKpvf SIflLVCFv8KnY3IC5JMNfysB5wuR0prp1cyvmKQg= From: Florian Hauschild To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour , Florian Hauschild Subject: [RFC PATCH 0/1] QEMU TCG plugin interface extensions Date: Sat, 21 Aug 2021 11:45:26 +0200 Message-Id: <20210821094527.491232-1-florian.hauschild@fs.ei.tum.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=129.187.54.7; envelope-from=florian.hauschild@fs.ei.tum.de; helo=mail.fs.ei.tum.de X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi all, I extended the plugin interface with additional functionalities. I wrote the extensions for fault injection/exploration reasearch using QEMU. The additional functionalities for a plugin are: * Read and write guest memory * Read and write guest registers * Allow plugin to force QEMU into single step mode * Flush TB cache from plugin Currently the changes are stored inside its own c file. Should it be moved into one of the other plugin files? Should a new config option be added to only enable the additional extensions if set? Best regards, Florian Florian Hauschild (1): QEMU plugin interface extension include/qemu/qemu-plugin.h | 35 ++++++++++++ plugins/meson.build | 1 + plugins/readwriteextension.c | 106 +++++++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 plugins/readwriteextension.c