From patchwork Sat Apr 27 15:57:10 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: 792673 Delivered-To: patch@linaro.org Received: by 2002:adf:cc13:0:b0:346:15ad:a2a with SMTP id x19csp973686wrh; Sat, 27 Apr 2024 08:59:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX7mLR/JyrJ4zTTSXjB/n0Lqb5GYT2baF+daL44VmNjZ5hDVqqOWenGiGKUDdsYzW1pn0qCPTeLbQjOoyhpRNSF X-Google-Smtp-Source: AGHT+IG0Vg8TjRRUn+MFHYXl3FmgEG/WmSUd6iBzEzND4NxN2i2FzweSRZ8VDjgjrl/sJw8WI2q9 X-Received: by 2002:ad4:4ee8:0:b0:69b:695f:ad20 with SMTP id dv8-20020ad44ee8000000b0069b695fad20mr7828688qvb.16.1714233550288; Sat, 27 Apr 2024 08:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714233550; cv=none; d=google.com; s=arc-20160816; b=VkwOjnQgaU34UapCQMS0E8iAXkjN3zlRPbbPJ2YKsjZJblYwVK/1mU+z2DVvpwc0KQ vLlfbxCOncqVoeMZQHwJ4rvJxqYO3h8bHaviq2HF7ijfnyZh3JcGDHVmIPjPoj1+J3nM eAg07sb29x0lR9/SYzNweP0wyfAx6UFaGCszDviVYGlt3GG3+2B/bXNFyPWdwv98iEmT xp1ljfM/jKmgkphRZBLN1Qk4sfBaFSHtVGb367nNkB58ocSMq1dB+IvQ514UZ70eLLG8 naEKHZiRxZnIVZRlXq4ymaL9XHo2359BFZlrfQ3COd/9G8QbrGXgZkZYl67MxaQyP7ut Rnmw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TTp39rZqop/if5H1KxCSQywM5GdZtqtO3vJKkvfEhps=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=rL2sz2VwTNbg7KQC5DAm189IDznFdzFiFF85USfCL0hucxscClXnBZqqDEiq00HH+3 FJ6PJ7WiUMHZOIVClRiHGil2Zo8CtPKz2WpMZH1W3frOi/sCbdbKKwengzdu7RTgnDUR 870hiKqfnJH+M2dhsEtzBvO0MlEvgXrYP2RlKF13HyZcmmx3XX62+40yS/Tgo9zCTrQC P0kZP5yT7MLnxd9DNllOQWjfwF8t+JBTzezQmWESx3SY7IYhBSTBSe6VVBoEXu8aSj0j IqA1COUZpIfUw6zMspBvtjDl7J9l1H5fXKBZMnLrRopYZ0x/gZBBqB5QY4JK1S4CHFIf huQQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WfeUbBF9; 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 pt19-20020a056214049300b006993226e0a5si22799069qvb.118.2024.04.27.08.59.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Apr 2024 08:59:10 -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=WfeUbBF9; 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 1s0kRY-0003OT-E6; Sat, 27 Apr 2024 11:58:28 -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 1s0kRV-0003EW-VQ for qemu-devel@nongnu.org; Sat, 27 Apr 2024 11:58:26 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0kRL-0005YH-Hh for qemu-devel@nongnu.org; Sat, 27 Apr 2024 11:58:25 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-41ba1ba55ebso9133365e9.1 for ; Sat, 27 Apr 2024 08:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714233492; x=1714838292; 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=TTp39rZqop/if5H1KxCSQywM5GdZtqtO3vJKkvfEhps=; b=WfeUbBF9MuRCJIHlxa5yZdDPiwlW03RlsRYaaA63MHRdxHdZEciCWFLFTuVB+ugFpQ p5A2hjcgH6RPSVZTTxO9nVTqpII6LjQnYmton4drMxQvHpL2HrNK+wAvLXYFN/PZTJt9 Y0PbK59wyAN3tK0lwTGgqZXZh7r+sN+ilF2iXkpW0Byo3B4KV1HRvzpb9b1mcIHO5RkA F471+2aIMWi8NhEPzNKi3+KKlhx6FUyL9JAPTAg4iJsJI/CyvICLdB8qAlt3nU7Yape2 ZLXdkJ3BgYadoXqCFkRl+Rh+Mhe9gCPN5kITa9jngNbIsylwuc53o9iaM51heX/gSiJN knvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714233492; x=1714838292; 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=TTp39rZqop/if5H1KxCSQywM5GdZtqtO3vJKkvfEhps=; b=YaDP6+KXRUra9i8sW14+oAmGh0u0G1vLvUJrLQ4CNssEyiQjz4U2JwgJ6c2c66juMk QqGlJ7LZE74HWcZzd7rfEoHh1mM6fq+i6uNZiYAFa8v56k7OOoVMCdaLfAsDfpPwntQI aHLMwjjUxDxik6qSfzeCkDAcEraSm2o8539Ssi47FtoY+TGekVP4PYLZLd9MAie7t8h4 awm21ega1Kak9yYMGcycNfXJqcVSOZhllvdn1vfa8YaOT1PBXgDbw0RwV7co0/u96ger RjhaFj0D1ocr2OuXW9aRG5NzLyVJgIzYS9RgM+cS12d34HTcu0rVN8NKD51y4GPMfB/m MsNA== X-Gm-Message-State: AOJu0YwfKj8mDJBRMGN+f+tVom0sKUdK36Ihs+P01s7SG8wriVhpL7NM 6yj1mxZnCJcu6vHTJC/EZlGZhLsbPsUjjU22toP2CkaZvddGUTlCRPW/wmu7C84DINPkpIv0vkk L9qg= X-Received: by 2002:a05:600c:450f:b0:41b:f2ca:19cc with SMTP id t15-20020a05600c450f00b0041bf2ca19ccmr653942wmo.34.1714233492632; Sat, 27 Apr 2024 08:58:12 -0700 (PDT) Received: from m1x-phil.lan ([176.187.209.2]) by smtp.gmail.com with ESMTPSA id m16-20020a05600c3b1000b0041496734318sm38996123wms.24.2024.04.27.08.58.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 27 Apr 2024 08:58:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulation Date: Sat, 27 Apr 2024 17:57:10 +0200 Message-ID: <20240427155714.53669-11-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240427155714.53669-1-philmd@linaro.org> References: <20240427155714.53669-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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 System emulation shouldn't use "user/syscall-trace.h". Signed-off-by: Philippe Mathieu-Daudé --- include/user/syscall-trace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/user/syscall-trace.h b/include/user/syscall-trace.h index b48b2b2d0a..6926434d9a 100644 --- a/include/user/syscall-trace.h +++ b/include/user/syscall-trace.h @@ -10,6 +10,10 @@ #ifndef SYSCALL_TRACE_H #define SYSCALL_TRACE_H +#ifndef CONFIG_USER_ONLY +#error Cannot include this header from system emulation +#endif + #include "exec/user/abitypes.h" #include "gdbstub/user.h" #include "qemu/plugin.h"