From patchwork Tue May 6 14:34:54 2025 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: 887781 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp2583910wrq; Tue, 6 May 2025 07:38:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVuTRJDS9pG+zUug4V+M1ebDtfd2s0VOnKvOIcv/Hm5kaMlu42fOsWGmm5uk/OcQbzVjL65wA==@linaro.org X-Google-Smtp-Source: AGHT+IE/VwGouJfIhR4yDoZZYcIoAiDOIXqGR7OfSNI7eeuyUnqkKxTCj1VR4BZqvLEk05jUPctb X-Received: by 2002:a05:6102:334e:b0:4c1:9d9b:54b8 with SMTP id ada2fe7eead31-4dc71f1789dmr96540137.2.1746542322789; Tue, 06 May 2025 07:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746542322; cv=none; d=google.com; s=arc-20240605; b=DdtZqMj+F4O/QzbPHPR1ggcffBo/4fYYWaIJ7gAA3tU9+2Etre+BlhTDNBgzY3rpjP YhJjjIoZ0+RMHp/UcYh3rFo56tIc94uRdy2aC5ICUzm7P+y2aTZ85HZfKiEdi166mXFk Ut36LXbrHU1BnEj9MOFe45oF1w4GzU9pMa2XC9da+fTtQJ7cVnwqUAV/y5QtARiNaW2s iyW6pyAbEjjDWn00DRtWIEbTrWOoBsIJ927lcT3P8mr9fOX2VED/+KTXKeQC+MOSQ0UX RGuPOOzBPTDa454LPlBxYNeJP/jzE6fSnY37IDLlDH8SyUEBScGbxIMcNoR9Ial5AvZz OeZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ufygZT8s60A1VbqI5u3oirvtlHFo9Kd6lcHx0GOiJXE=; fh=RDgTHf1WaRcMPIwh24AEnU5Zq5bVC25IAV1qMucgA6k=; b=YliT+yESc14KceOx2Bn20+4BB5FconfE3PPIaRXaClGmfK+7OFChJ8oW2aal31eotN 72NW+VtYEyXB2cLm7OYMaZ4/qVBLrBf9o2Ptgy8ACNsqq2dtPw6KB9k8uuu/FQ7Nvsmk s7ubBTwNdDM/catLCGIyZBgtsswzfqHljr0gNIr5HOQ8KZ236t6upDhv6YXZHnzYyz1N EK+zUCNnBN1NaSjEUUFgz8lSAiMKhBqFpLVGhGpZFGWVAmB/THcbtQU3WB0cMVUxuSl7 9qRxa43alKcpIXlu9SQsjyg7H2SwWHoIpHLePwEondLoEv0timkPNxaSUjQoyXP2rsie XhiQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hpUrhw+2; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4daf22e7688si2443926137.54.2025.05.06.07.38.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 May 2025 07:38:42 -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=hpUrhw+2; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uCJOZ-0006vu-2j; Tue, 06 May 2025 10:35:43 -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 1uCJOW-0006sY-UH for qemu-devel@nongnu.org; Tue, 06 May 2025 10:35:40 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uCJOV-00013p-5D for qemu-devel@nongnu.org; Tue, 06 May 2025 10:35:40 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-441c99459e9so19207775e9.3 for ; Tue, 06 May 2025 07:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746542137; x=1747146937; 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=ufygZT8s60A1VbqI5u3oirvtlHFo9Kd6lcHx0GOiJXE=; b=hpUrhw+2cC1h//DLPAnSQQUJL89Nmy4qJ1eqnv1AV8lbpvigSc+gO1yxW17a8U7Cuj bGkqhuu2wzQU6cJW8p4QeV1wplmARwy2DqH1hgq3Ru6nV6o5DD2BlgjgdBFB7fm8w8YD Q2WJvp0b3i4UK6IJEwyt7KcunEwGiCiUFz0euVeDfgPdlr/JAcTwoQQWR37zPRi9dOjY vgJZPZPsphNcyDVRcsmaY6Y8OqLRZqJzyx8FB6TrOxKk51b4uVTcilRcUzIL0ASjz9F7 1VtehEAYGlc5yV/cuhe/lh4hJK88U9qunn4Yv7MdOuiuYMHCmx+1IacqdSzK7uq3LTch jNVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746542137; x=1747146937; 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=ufygZT8s60A1VbqI5u3oirvtlHFo9Kd6lcHx0GOiJXE=; b=tWKQklcsv/OpEz1lxRnEgt1QwcB5s9hRv+jrihv2ZXJxzHJHJTJS68F7LjJvXR/lty fcm5DqIxyi9mY28WgJ8mqcu50xkI1mWCnVLwQ3hGYrW+/MiVnDN1iKEPHULG4uNK7R+U aR9v3jwA09AoF5wzYcdvVln8gXTDS2i40Oiw+GvLagO9izE7X0kL5t/YKmJ9IvUr+sSb 3+Yy2TZkd4ehTZa6MwwA/cCNo7XmRVFx2qOLVy8RM+3I5A0p1iOJz+xgfg16nTH5CACi OvEppKwI52ivTeEqPQILyIc9XAgRDZ+DFUxxgNIgMOcITVe5XomiKe1JQt9sI+HuUh1v L5bQ== X-Gm-Message-State: AOJu0YzmwD1+6uSyo9gnVlEaYgoOsaQwAikeJzF1hbdL7XX9/qWjhtYq nvTwXM7otlIfK0xD/aOfChEMHTmA81dhZDP6qkyjOZxFf8cvN55giDJXgM0W0HGbPq1VSeQvsod d X-Gm-Gg: ASbGncuh45t01FIFRwl7mYPo46DOySfo5DBnFX6ysnzDisJBomj4EkWZtIgS6DrhoN7 bq1hV7ARXTtm+5ipCCNYNhjwYrmbKAHNfhSFdWH3CUZBddc8k6FxWVKjdHHSwp90+6QKzHlcvdO CCoCeTsuHzDbXJftg18175I7AlFAVLSJ7nYlKMQtZOToVU+THN6uTLKEAA63/+B1ESW6sMlRyw1 Rpm+8sU4r3bS5cWWbhZBm4Yx9nlku9EQHO4xksX2v/+HHcYlVSNGKYyS24vhWa+G9ZoVaTYiDfW Ni2QvCvyLVT41p7btAsvCrVPj1YpAaV20FoQhpDpQRdJ/tdlZZ0XZatzyjpmXbLtudpBEp7FKo3 9zQRoVa1UuJEC+PRPg0OP X-Received: by 2002:a05:600c:4fc9:b0:43b:cc3c:60bc with SMTP id 5b1f17b1804b1-441bbed9ec1mr185259305e9.15.1746542137077; Tue, 06 May 2025 07:35:37 -0700 (PDT) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-441b2b28082sm215745915e9.34.2025.05.06.07.35.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 06 May 2025 07:35:36 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Wei Liu Subject: [PULL 05/22] target/i386/hvf: Include missing 'exec/target_page.h' header Date: Tue, 6 May 2025 16:34:54 +0200 Message-ID: <20250506143512.4315-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250506143512.4315-1-philmd@linaro.org> References: <20250506143512.4315-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Include "exec/target_page.h" to be able to compile HVF on x86_64: ../target/i386/hvf/hvf.c:139:49: error: use of undeclared identifier 'TARGET_PAGE_SIZE' uint64_t dirty_page_start = gpa & ~(TARGET_PAGE_SIZE - 1u); ^ ../target/i386/hvf/hvf.c:141:45: error: use of undeclared identifier 'TARGET_PAGE_SIZE' hv_vm_protect(dirty_page_start, TARGET_PAGE_SIZE, Fixes: 9c2ff9cdc9b ("exec/cpu-all: remove exec/target_page include") Reported-by: Pierrick Bouvier Reported-by: Wei Liu Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20250425174310.70890-1-philmd@linaro.org> Reviewed-by: Pierrick Bouvier --- target/i386/hvf/hvf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c index 99e37a33e50..b16fb066758 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -50,6 +50,7 @@ #include "qemu/error-report.h" #include "qemu/memalign.h" #include "qapi/error.h" +#include "exec/target_page.h" #include "migration/blocker.h" #include "system/hvf.h"