From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 104E4C433ED for ; Thu, 22 Apr 2021 17:48:33 +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 477F2613A9 for ; Thu, 22 Apr 2021 17:48:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 477F2613A9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=uci.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZdRG-0002d0-Rv for qemu-devel@archiver.kernel.org; Thu, 22 Apr 2021 13:48:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZdPw-0001vV-Mg for qemu-devel@nongnu.org; Thu, 22 Apr 2021 13:47:08 -0400 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]:46711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZdPt-0001sI-Im for qemu-devel@nongnu.org; Thu, 22 Apr 2021 13:47:08 -0400 Received: by mail-il1-x129.google.com with SMTP id l19so34693337ilk.13 for ; Thu, 22 Apr 2021 10:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uci-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=ZHDN1V9Dn1zLqYEM1M9fB4ZcgOYkRzZB9EE1FxKUVKY=; b=Wqvpy2EutWULMvNtvgihHugaurrhi7qDWdM/ytNNV+qtbYC0nGV32T7Rbe3xq5gDzY lSDpTW0axuz4iPZMyYE6soH7KwyC0YCA8HVJs73HopljoyrCPKRpM3o5muS0/cNXcteY K/dlfwNpPefASzuVK3K9/CEa6pnhqlf2ucMLiaI74ZXcRf6FhBMpxcGmSAKjY7833IfM 6FVPAeDsthgkQ7us9y7IyDd5LCqZBbPx2sk1IdfEZbaOuTbLFPGqSEKsvNCX0vrEYL2k Pzqepqk63I10YxjfOsPyWGHWu/Exaeuba6nCbnYT2MhkPgPjd/Dj/y9G3u30nj0GCFiw Zvuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ZHDN1V9Dn1zLqYEM1M9fB4ZcgOYkRzZB9EE1FxKUVKY=; b=pDPZO/j3NFXGi1GFGEvuweqCGAfULBsWNTBqLBi17Tc1hKNa7uFzCfAQE/Z8yvGNyd S+0jHiecceUfHuOsW0CQMXE7kag5p/09iUoWOALxiMRWTiRMqBIHRMruGvZ7AiuPS+F5 azhWbI9EHi7iMA8o/WZUv588SgV32ZFvjrWPl+5XlH1D2VGU3RGocmW+Vs665ei+VGWa rZ/VK2gpgimrBv8PvXTZ/vpAgF5ua6Cq7encDFPjMGWP6IHXo+R01Q4BbjHwrt3TtxxX jNLFczHEGMmJxDnSD4wSCTgknDrgwO3Ivw9OV1BzL4K3C1KaW6RR5Lghgg+LPZN9R3AG MITA== X-Gm-Message-State: AOAM532VCsFiCJpgS//CdmUDj6Jg8FGWx2tFfq/dmfpAZswnB4I7010k RgipL7fmYuqX65HCjP97Kumk1d2+Nkn1aEXaxvrexg== X-Google-Smtp-Source: ABdhPJzlbHfdPmwVGRXCg5/UC01OGYzUv5yKn47EymVrf25Qo2bQUMdoXKE+Lgva8o19MvUZwbfPk3mIHcmNTyB6BDQ= X-Received: by 2002:a05:6e02:8f0:: with SMTP id n16mr3703373ilt.7.1619113619786; Thu, 22 Apr 2021 10:46:59 -0700 (PDT) MIME-Version: 1.0 From: Min-Yih Hsu Date: Thu, 22 Apr 2021 10:46:49 -0700 Message-ID: Subject: [RFC] tcg plugin: Additional plugin interface To: alex.bennee@linaro.org Content-Type: multipart/alternative; boundary="00000000000028a89605c09344e3" Received-SPF: pass client-ip=2607:f8b0:4864:20::129; envelope-from=minyihh@uci.edu; helo=mail-il1-x129.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --00000000000028a89605c09344e3 Content-Type: text/plain; charset="UTF-8" Hi Alex and QEMU developers, Recently I was working with the TCG plugin. I found that `qemu_plugin_cb_flags` seems to reserve the functionality to read / write CPU register state, I'm wondering if you can share some roadmap or thoughts on this feature? Personally I see reading the CPU register state as (kind of) low-hanging fruit. The most straightforward way to implement it will be adding another function that can be called by insn_exec callbacks to read (v)CPU register values. What do you think about this? Thank you -Min -- Min-Yih Hsu Ph.D Student in ICS Department, University of California, Irvine (UCI). --00000000000028a89605c09344e3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Alex and QEMU developers,

Recently I was=C2=A0working with the TCG plugin. I found that `qemu_= plugin_cb_flags` seems to reserve the functionality to read / write CPU reg= ister state, I'm wondering if you can share some roadmap or thoughts on= this feature?

Personally I see readin= g the CPU register state as (kind of) low-hanging fruit. The most straightf= orward way to implement=C2=A0it will be adding another function that can be= called by insn_exec callbacks to read (v)CPU register values. What do you = think about this?

Thank you
-Min
--=
Min-Y= ih Hsu
Ph.D Student in ICS Department, University of California, = Irvine (UCI).
--00000000000028a89605c09344e3--