From patchwork Wed Apr 24 17:45:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 791529 Delivered-To: patch@linaro.org Received: by 2002:a5d:4884:0:b0:346:15ad:a2a with SMTP id g4csp965248wrq; Wed, 24 Apr 2024 10:46:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW4K/kPCAR77SwXYfEA4HCnkvS/WLE6niDh4FH3o02CyL3/0W5wU1pHnpo/MzBblsarZPzPo+Hu3SQNfpWFM3BZ X-Google-Smtp-Source: AGHT+IGbsYZo3gPxPTiL8GFB9nhmF4u0XYMAWvtZI0sAWsYelEdoOPjxcpLyb0mgUVAcPLFWu9ov X-Received: by 2002:a05:620a:8229:b0:78d:4828:db67 with SMTP id ow41-20020a05620a822900b0078d4828db67mr3312792qkn.29.1713980763894; Wed, 24 Apr 2024 10:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713980763; cv=none; d=google.com; s=arc-20160816; b=RxSRro4GaFTbZROJZ4FWXQpPWEUyC1Oq+/3v9h7FTge1G0tWN0tR9NkP+BM7qWdDtF nXq54yvkMhjvuwGuri3ZMnviyHERdjqtjd0+UTbkEoqAxHRugNAf9b7HrAJGAA2fVSv0 rvYL7/OcM9xDjwguOEgD1qZQCUdo0FdNw/PgQG7Ugkk5Pn9EP38wmRNSa+cWBbS7TFjG oiEGS6lqB+8zVv5ldYUMeEXdjQUgatNltstcRp00tqINPc3NliKnHL+nJwmGeKAXmk6W wcm+f5bKmiov3022uHZTulEExAKdShNISpU6/j6M8XbyG8bt/dpI694EZIyZSLCdJb2S 8wDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Ml+4qNbbwrewfNa4tKqFrq9Yee47wMDeCNmhWRp2b6s=; fh=pQdzMQWLvprOEFeY1b+KYmrI7eqCdh3tFqq1CIbzDUc=; b=cdXdyjhJlfCfS4drHvpf8ya2avjJKb271ZbQ8J0Sfug1yuAHUsN79i3DxzG405wwWD exgArwH0P9FYqnpm3dZ7KkvfpQ0URgV5dt74PmFwz+23+ee06wFLGrA+WtO3ykfcYIla 8d5xONa/9iljFUxFAWmmxUcHZdsfZUJEO6MFfNkOFRGJv9qd5vuxlZk/WFxs4NnwLGp2 Low58MgSYHqzhYl4T29Uc48j4pdOdifOqxwvK67hfRBrPgaMc4C0WMcNsnZPYHQkd6/B E6RKXI4gBMKxiE2fE6/DtuK1ZlqhuH8eej/yxrHmfIZSk7GMmCQ5oL+xiasiFx1x33OL nDRQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mmqRn2sW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id vu25-20020a05620a561900b007907c1f1de1si5626479qkn.637.2024.04.24.10.46.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2024 10:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mmqRn2sW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzggQ-0005JK-1j; Wed, 24 Apr 2024 13:45:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzggF-0005Gj-GW for qemu-devel@nongnu.org; Wed, 24 Apr 2024 13:45:15 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzggB-0005Z1-OB for qemu-devel@nongnu.org; Wed, 24 Apr 2024 13:45:13 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-347c197a464so46853f8f.2 for ; Wed, 24 Apr 2024 10:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713980709; x=1714585509; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ml+4qNbbwrewfNa4tKqFrq9Yee47wMDeCNmhWRp2b6s=; b=mmqRn2sWKxKWFqDbRi1SWv0AMAPn0YKxWhD+Mmap2tV+ILnHP0RezUrhhSuL3+a5oQ URLQ7VZTbccfVtyjcezzow5RjaUOi3Qmi/5zrNIiD+88dIdOp+QvfaUPouuPWaEmucpX LfNzvFvRnW7B7MrzgGvZLfUjwcwV+YavcyYle6Eh5Km3vBRJXD2u9aJR9zPsBvbV8k6u bNZ0bggLB4zRmyc81aISpyq3lRZ4rcsBWEJnhaNeAJBwMCvgDA00SVkqNb3ejlfgXoi0 bh4r12awrD4taG2VqGfsTFdJfZrvoeVkbX4ev6LlYF8okrXHVWoIOt4GpZn1+H/rW5Av rpyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713980709; x=1714585509; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ml+4qNbbwrewfNa4tKqFrq9Yee47wMDeCNmhWRp2b6s=; b=Rs6Ge5+NOGPGJ/yw4I1ePLHqKwA0BD2B6zxHZaraU+3KEV1jfbZK8dIZGy3a8DUkMI 2aJSm8FRDBpmgeraNRa4KLHoooehmt2Y7JHbJbeF/faVaWfoTTyj6EaohI4wHBRemvWI lESIYKqXWxR390pN3SBLsQOVBRwO+NXCFLqwQxndB/WU+IFramv/WOWxBsJDRkVp3+Jl mKFeKOl1iVOrIqrmoMjNP6D+o2eRLJkQ0blmLnKleMdJf2SAa3PPdSI94ym5VEJivTqD Fy3hBfIm3Bl+Ivo7nt9r/Nq7rrJSU5FHRb02ZxyiX540td4AZKJlzxAplsoW6AkLEx/b mI9w== X-Gm-Message-State: AOJu0Yz/y0AJmSQoHAxIrA6qp7JqaEFSWyIUmx+Sy5glWOgCdyt3yROs wz4SHE0GsxCS2mauzpqTXkEzMlbFJPSs01DG/9rxQFEYdNEPYnkOulx65NtSP7xzb6Eb4LUoVhS n X-Received: by 2002:adf:fb0b:0:b0:346:d12d:fcab with SMTP id c11-20020adffb0b000000b00346d12dfcabmr1726298wrr.65.1713980708973; Wed, 24 Apr 2024 10:45:08 -0700 (PDT) Received: from localhost.localdomain (mon75-h03-176-184-51-42.dsl.sta.abo.bbox.fr. [176.184.51.42]) by smtp.gmail.com with ESMTPSA id f3-20020adfe903000000b003445bb2362esm17616085wrm.65.2024.04.24.10.45.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Apr 2024 10:45:08 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Sunil Muthuswamy , Roman Bolshakov , Alexander Graf , qemu-arm@nongnu.org, Cameron Esfahani , Reinoud Zandijk , Philippe =?unknown-8bit?q?Mathieu-Dau?= =?unknown-8bit?q?d=C3=A9?= Subject: [PATCH 0/3] accel: Add new @dirty field on HVF/NVMM/WHPX Date: Wed, 24 Apr 2024 19:45:03 +0200 Message-ID: <20240424174506.326-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=philmd@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We want CPUState to only contain fields used by common code. Start using a specific @dirty field for HVF/NVMM/WHPX (TCG then KVM will follow). Philippe Mathieu-Daudé (3): accel/whpx: Use accel-specific per-vcpu @dirty field accel/nvmm: Use accel-specific per-vcpu @dirty field accel/hvf: Use accel-specific per-vcpu @dirty field include/hw/core/cpu.h | 3 +-- include/sysemu/hvf_int.h | 1 + accel/hvf/hvf-accel-ops.c | 10 +++++----- target/arm/hvf/hvf.c | 4 ++-- target/i386/hvf/hvf.c | 4 ++-- target/i386/hvf/x86hvf.c | 2 +- target/i386/nvmm/nvmm-all.c | 21 +++++++++++---------- target/i386/whpx/whpx-all.c | 23 ++++++++++++----------- 8 files changed, 35 insertions(+), 33 deletions(-) Reviewed-by: Richard Henderson