From nobody Thu Dec 18 23:00:15 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1751564384; cv=none; d=zohomail.com; s=zohoarc; b=HDK+l5onMfsRRx/u02ne2rrZZx17CcBxwhb0cVeVXgfYGLQezHsZMmDcsS0AJ3F2UMQ5iWEdnPKlJIwNWYMMwtpRpsmtMdr1drV2Zevhhzk+Zku6d94HaMLKoLZ5GxfmF+MfAKo8S5iQEy4dmflVhXh5zo0tthuZkwX8Ot2Ms10= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751564384; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=f7w2y29aMH8m2GXB1cVKamGcDeB4cPEpvmgmQ9G6W5E=; b=OZWTNChWPMLXhSAiWImYs+fRxq3pwkLUOTMB76dI63JkMu8Jh7TD5eG/beQ4nj7kLh/hG1XN/Hqfjdu9a8dp5ZdCz8H0BVXRRTpmGCzvWWGA9/B0lsNW8RgKGN3fDtJ+hqGksfFE2iIytCq5lmW0qWXx5e8wAs/33lXGV0bkTyA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1751564384536311.6048290388493; Thu, 3 Jul 2025 10:39:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uXNpZ-00077m-Lx; Thu, 03 Jul 2025 13:34:41 -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 1uXNpI-0006JZ-Uj for qemu-devel@nongnu.org; Thu, 03 Jul 2025 13:34:26 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uXNpH-0000KB-99 for qemu-devel@nongnu.org; Thu, 03 Jul 2025 13:34:24 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4538bc1cffdso885375e9.0 for ; Thu, 03 Jul 2025 10:34:21 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454b16288b5sm3607595e9.9.2025.07.03.10.34.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Jul 2025 10:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751564060; x=1752168860; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=f7w2y29aMH8m2GXB1cVKamGcDeB4cPEpvmgmQ9G6W5E=; b=T28jY78Pqc7y1V29IVWN0gcxnYHa69hTn6z4lJI+Tif3S8EglTDr7XJM6YWUqqDZ5G U5ThG5VeW93x9KUFVwtEivmrTMd0ocm4BQwfM5GQ/wlPmiznCXe47DjLCZBUznI1zTrE GU0QcJddstUTnpxZr2KA51JhKzBc5qoqdNLkd5BPs94Dk6UHpPxYuyhrTzC6AvNSpUz9 Fr1yt7pIvFgEj2izzOvJXb+cPnBXR09kxY9+iG5mBGqO+z/vUd+kz3vl7xiA/OcgP08Q /dqul3TWn+hOQOBulB4SZYnuQcMAIh4QtJfD/onzPbOYDCsTTBkQkm4W5N0L7DF+x8xv NVMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751564060; x=1752168860; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f7w2y29aMH8m2GXB1cVKamGcDeB4cPEpvmgmQ9G6W5E=; b=t3fHbd/M9rhVAZFiKopAWx48QmAGZe4s5lWO8PmGzsb/njyHQQkY0CO9YFNX0m1PDv aP0Pz64QfgiL8+LxsUy5vBJajwaUrpRunOZsS3JbfxDbECLv56axJMpD7LTYc7FNdjU/ wADPh//vTBMln0aULtbMkgP3R87oypP3PvCM8tL4VNM3FueeO4AlNxGS1I59haOWZW79 2rjO42FdpmQKXHoCcoeSw1AxI6cMNDmT9zPabnIZChPt3ldhUn9yDuVpj3YsLiRvZRvM KPkzFakg0wKaHLA6XAqJBM++6sI+IKt7mVo9Zoo/6GLpwnGcphrCpvVgCJsJnL+bFNXl C2ug== X-Gm-Message-State: AOJu0YzpWCVvrYjOonYsif+EeAPXdyrIRvdw1cGjPL0VJYUwzYV+33eN VS8kVhJtBNbp2XGbTtex1GE8TQxGbbSuJhG8oCEiisEsq+A9zJWQxNLfdaxO9Wd3EsmQofqFpwD av5yi7+0= X-Gm-Gg: ASbGnctqxSiMS05/Py9Zphp/UfXlYVT2b/+IqgsQutZB3EaWQji40u0pmSbIH3AVx+4 NGkHFZE/yKvYoeZOt2y4yX3fKJ5J85lIEuND2sLGcEbtKjDx6WorqGMkVN5XnnL/wFYVP1fH8U4 fBY5/VCQW1jtrUPlXH/y0E891vjBg1xE4ykNUU8AgZGyy9QjVaqG6eDLy1Tz3gSjI/JanMgWTKI 6R92UpUTDh8tJBuv0/kXWgnqYpp8fTIpwlLiwq4ajtpz/s4V72+jo4DCXhvice2MNzDCmFAePzk DusKxln83ABTWDVxBuh9HGS+xhYUjE/h4C4LbaOOQOebp2k7lxS1aJeNrpY+0JjUGOKl9lI/gYG VByyU8hfQh3fcCIfSvsNMoOT1R0vDrqA0kF67 X-Google-Smtp-Source: AGHT+IF6eMSZZafa8TfN18jd07TqYP40t1K+4NkHapAdazU2PCoffmTqgnOFWnC4qDy+kz7lrdehrw== X-Received: by 2002:a05:600c:638e:b0:450:d104:29eb with SMTP id 5b1f17b1804b1-454a36d7ab3mr75862045e9.5.1751564060252; Thu, 03 Jul 2025 10:34:20 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Zhao Liu , Paolo Bonzini , Richard Henderson , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eduardo Habkost , Marcel Apfelbaum , Yanan Wang Subject: [PATCH v6 17/39] cpus: Document CPUState::vcpu_dirty field Date: Thu, 3 Jul 2025 19:32:23 +0200 Message-ID: <20250703173248.44995-18-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250703173248.44995-1-philmd@linaro.org> References: <20250703173248.44995-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1751564385975116600 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Zhao Liu Reviewed-by: Xiaoyao Li --- include/hw/core/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 162a56a5daa..5eaf41a566f 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -442,6 +442,7 @@ struct qemu_work_item; * @opaque: User data. * @mem_io_pc: Host Program Counter at which the memory was accessed. * @accel: Pointer to accelerator specific state. + * @vcpu_dirty: Hardware accelerator is not synchronized with QEMU state * @kvm_fd: vCPU file descriptor for KVM. * @work_mutex: Lock to prevent multiple access to @work_list. * @work_list: List of pending asynchronous work. @@ -538,7 +539,6 @@ struct CPUState { uint32_t kvm_fetch_index; uint64_t dirty_pages; int kvm_vcpu_stats_fd; - bool vcpu_dirty; =20 /* Use by accel-block: CPU is executing an ioctl() */ QemuLockCnt in_ioctl_lock; @@ -554,6 +554,7 @@ struct CPUState { uint32_t halted; int32_t exception_index; =20 + bool vcpu_dirty; AccelCPUState *accel; =20 /* Used to keep track of an outstanding cpu throttle thread for migrat= ion --=20 2.49.0