From patchwork Tue Jan 21 14:23:35 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: 858972 Delivered-To: patch@linaro.org Received: by 2002:adf:fb47:0:b0:385:e875:8a9e with SMTP id c7csp225254wrs; Tue, 21 Jan 2025 06:33:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVDFGf4ouwYhBD3jTwco9y+qPz8A0Z16zz2HottWK/DwR+XUzMxSYs0IxavRIls/sB5FmeYBQ==@linaro.org X-Google-Smtp-Source: AGHT+IFFFROGPm84VoIkjGIK84UZNsbybGgYCmu0F4Y5z1K/pLcOiwup0IKLdA2n2VYbds7USYTa X-Received: by 2002:a05:6102:c52:b0:4b3:ece0:7daa with SMTP id ada2fe7eead31-4b690ccb735mr12830185137.23.1737469995953; Tue, 21 Jan 2025 06:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737469995; cv=none; d=google.com; s=arc-20240605; b=NAmULbp+mToUurQuWY9g8BRQj+KTA0/uhYb3kKw+0UjtHUHHYSGxqMRSs8ubVFzTv6 p5Sp+lZlREjj3/0GF2XcYCa65NXa0tQMjTg4pgrtIXjufIS2Ov7AYYix0hpi0d0D8CCZ zC+Ke8guTu/OIRu+AHcL9NTLZUSdPbuNzfPpC+Hcw49uN/OvULihMHgAnS6ZvmboR5u+ F4MF2zBNTnT499ajFaWO1US7m52QhmpOg54q9sN2LmfDevLnX80jBr757pjgz7MeiBlO 6o6evDStoFnG/tR5XzKs3LMUgbq2MxdLPZdhoLPrMJQ0T0w6j84PcqhQkrN6ADtFeT6o rd6Q== 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=XLtjxkwdz6L1VGr45Id+Wfm3w9Chh81Y/cb2LCx94qE=; fh=T9nLPmYdz8kSl8qI33evWuh/VVTqN+U2Q3T/ETy8raQ=; b=N2pC7owIIUEcJLdo3NFS14ltM4yTEUm7wupZd50aguHyHZsiDgfQyjQSJ1iep192Tk 4/KZiCsYKedC982jkrxC7qYz7gc1vhBmfq0xd829RNrh4SRWUxYAVc5e9w3ZKsFmj4VC yq5GswCS46k8pXLngo5AvtEFadfKWxxUy3m8K5Otex3Tlc4eEyfH54d/R7kIr58gzQsA 7hsaQ0l4u0EIptxzVH16f5iYJF3BqvKDizPc1zkNck2OBh1/0H6XpD6URhygRGqDKWEj Z+hMYvV29dRhvwz478TLpoWZUxLE6v111b1H2+4EPQLdQlYnfkPLGJF93o1yiUk2rcFE jtpA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G9NCpxCk; 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-4b68a1adfd0si3539607137.126.2025.01.21.06.33.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Jan 2025 06:33:15 -0800 (PST) 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=G9NCpxCk; 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 1taFEL-0007fH-JJ; Tue, 21 Jan 2025 09:27:49 -0500 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 1taFCF-0002Qf-Mq for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:25:44 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1taFCA-0003Zt-7M for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:25:38 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-436345cc17bso41095965e9.0 for ; Tue, 21 Jan 2025 06:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737469528; x=1738074328; 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=XLtjxkwdz6L1VGr45Id+Wfm3w9Chh81Y/cb2LCx94qE=; b=G9NCpxCkXb7KaCQ/IPs055hnOPgDAQKTXS147FrPUPJZEDwuRmWsw8dZeYFL50hhMn uTRR7cjbmR+Y1utadxek5uxcLgET2vjG1QD0O2W9Ec6Kf9b5Qp+z5cx4TD/iVfR/9LSm YzZZl4VwHz0qbxf9LWxeFTf/e/dbldDcELLxe96rQjBHsOPIiLgh2TpHf9iUW9YKq6sW nINPuW0qgw1vn0/JvsLmE5e5eWmV4IOlUoeNEc4m8JGGkkaiVvxicX1Me63LwDaMEk0H y4yo75TRVnBlDhz0+ewA1Rk6Zy6VF8nzDU7cIFu2doGHKjMrxsgvgygvLM+RPAlj/GDu 4L7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737469528; x=1738074328; 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=XLtjxkwdz6L1VGr45Id+Wfm3w9Chh81Y/cb2LCx94qE=; b=eVZ7cPpbfzAxApEGJT1fiuXicNRvEgwoGf40QtjAL5k6FQlQhY3xU75ruNSJK72Pdl iuJwV7SCDji9V3chCdyvDrvi2VM1jp1S6WaCBqxe3r0VJYfe8DsfPRtCcFohFjswH5WU l7c9ixPqLppDBhN6O7Jms/0dZ/HbnAAFRDzF8XqpjZ0AdsKVwCWc/chYMl4EY6NHmKxH FaXttBZAqc4mu2871C0n8Ff46kSX9B/hADpk1ob7Q9PFnANz8AHGUVOgkHS678VMrhBs jx1XYMvfmPtU2Y6IKxaaLlrHzBCeisbeLWYh2D3dfZFka96l04t7tYxMR5KUkGkbHCeP u40w== X-Gm-Message-State: AOJu0Yw/273QdrkQrXjGsoVc6Z+cPtWnb21K379Nthlru8NlXehxNf1Y 0WbOIk0MFaD/708KXxD6EVDgiG9YMHxymkOf+/sKidzq372rUoaRqpAH93K4o8iKmuQTJ/uJLo8 qDf0= X-Gm-Gg: ASbGncvWXSizqbGCrJF7kQEAWXJxb2+IDlRmiep3At5LNMgtOBJiJ9Zu2v8yxYDiT/k lOes9iudRwp7jMDSJbFUS+FjHIRGfcZEZY8KNUa5WxjV5xMOikros5VS4f558rcKmjhnUn48WOy Uzi+gpOAx4yPL+ilY83zTt2PsmLaqcHOAW53bNR3AxtoqjWva6N65A4xwBk2OX31cyGYtaefbfN THl6OtGGuY4JCGhnqGDLmGLUfLvD555TVDX0+wv5bqrmGlLr72mIueRnclG6kg8U9vCk7OSCyvV MCBQl04l8WXqIhkT3fakhxrDBPqBlHXdl5ZCJwqedpOH X-Received: by 2002:a05:600c:4e08:b0:435:136:75f6 with SMTP id 5b1f17b1804b1-438912d5426mr194266845e9.0.1737469528605; Tue, 21 Jan 2025 06:25:28 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43890420412sm184694965e9.18.2025.01.21.06.25.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Jan 2025 06:25:28 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 22/28] target/s390x: Restrict I/O handler installers to system emulation Date: Tue, 21 Jan 2025 15:23:35 +0100 Message-ID: <20250121142341.17001-23-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250121142341.17001-1-philmd@linaro.org> References: <20250121142341.17001-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 Signed-off-by: Philippe Mathieu-Daudé --- target/s390x/s390x-internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index a750e7a343a..6e2c98de97a 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -356,6 +356,7 @@ void cpu_inject_stop(S390CPU *cpu); /* ioinst.c */ +#ifndef CONFIG_USER_ONLY void ioinst_handle_xsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra); void ioinst_handle_csch(S390CPU *cpu, uint64_t reg1, uintptr_t ra); void ioinst_handle_hsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra); @@ -373,6 +374,7 @@ void ioinst_handle_schm(S390CPU *cpu, uint64_t reg1, uint64_t reg2, void ioinst_handle_rsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra); void ioinst_handle_rchp(S390CPU *cpu, uint64_t reg1, uintptr_t ra); void ioinst_handle_sal(S390CPU *cpu, uint64_t reg1, uintptr_t ra); +#endif /* CONFIG_USER_ONLY */ /* mem_helper.c */