From patchwork Mon Nov 6 11:44:55 2023 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: 741384 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1038335wrr; Mon, 6 Nov 2023 03:48:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVfdFKsO4bNQqFT4QJaDY7ryiTW+7AVAWV9f0ibEq+BktzhCYJJC794rYnJRix665MsMjU X-Received: by 2002:a05:6214:3007:b0:653:5bed:83d4 with SMTP id ke7-20020a056214300700b006535bed83d4mr37027701qvb.30.1699271286969; Mon, 06 Nov 2023 03:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699271286; cv=none; d=google.com; s=arc-20160816; b=qTb9FDDXHZTLvsiqQgxCLnjbv/AY3JmSJmFaUcg7iiGCZlogBB99PA19UpngIJkC5X 1TRUIQ+pMakh5UODBKtOY2o9GW9dy7WMMvkTJv4f7wuUs6JokzNX/78lC+CHcQiSRSKs i495+yz3Vn/mxKk55O359QAOMy9Wj3U6i7rOQkM0cOFei2k/WL9mdtXfGi2zDSZ1jTbe uzOMU+bGo7UT1no5zjNFC8bcwCYh+rdG9pI6Z2h3PcPIoQRGBhagOojBdxK5lMuEVEWR KDuiTqBpWfEVWwWlH/4300rby+tAguLI7IgtjrctmofNcBF439ERAmGoBC7i3y6LAxZJ 2V+A== 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=HAp2vJsfIjryO6ERGLNtaKXCTt6QsFuHAbc0TgTsKDY=; fh=iyPtDenH/bpJiwn6+MxCUj0FPuOI6mBlLIyfrvrbZlI=; b=hXgpnAMx/ERywpjegpq1kKIk3Wzb76bQ6u/pMZ8k4obOBndeyVy+hNUNoI1NDlVBef zGpDZmYPJxWSTW9+J5oy3v7su70of4hSznnlRtih9r5Ujk/ayLa+mZuLmu0fBUTkCc8P gjHpzn56zAFBkYtyVPtcRwwb/xb+kKNbCz3ubKsjo/R9CFpY1dOHddriQLN9m64cMWN1 ntW8mmf+h+3EdfiJnAlUmBDDTRO5BJ/ZxnUpx1+kQdnlg/VUvrzUkEjShdlAJZ9N1qoO lyZqhRLsP3eUBeNyHPjphe8k3BuYuzieubOdGCWKDT1LL0IvWhiCIL0HZnfUUdBT6pN3 jQcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fd9387Sh; 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 w1-20020a0562140b2100b0066d0543b654si5283583qvj.341.2023.11.06.03.48.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 03:48:06 -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=fd9387Sh; 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 1qzy2Z-00026S-9k; Mon, 06 Nov 2023 06:45:18 -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 1qzy2U-00025Q-Os for qemu-devel@nongnu.org; Mon, 06 Nov 2023 06:45:06 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzy2T-00053k-9M for qemu-devel@nongnu.org; Mon, 06 Nov 2023 06:45:06 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4083ac51d8aso33496365e9.2 for ; Mon, 06 Nov 2023 03:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699271103; x=1699875903; 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=HAp2vJsfIjryO6ERGLNtaKXCTt6QsFuHAbc0TgTsKDY=; b=fd9387ShaL67S3Ue/jpUGyr2Ng3Md64LQkHToJ3+9YwFCYL5HyV9sJN3cbwzwY4Ye7 X91Iwwf4tDROU7E6bB600ChseiHQLOMhGXI9xtRohi+nmEPMT+yLlbV6HRkZ9zNMXSoQ LN8xh8j+vxG93P0LuFYiOXxnJRgeyM9Hdeyzf0gmaI4VdUyrulrd5mvvxxR+ye/UFipp CO0WBpm1CnmDgC4hTGbBEB7UNOU0VLweezjZSWYsqk/11rntzBKdWfbnvh/GufMBxXXu pyrXXNZw3zQyLqMRbRlKZjLH+8KAn1qBPt6feOl0LIdnH7OTDQ6HPBONFCRrIYJevPrm 7J6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699271103; x=1699875903; 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=HAp2vJsfIjryO6ERGLNtaKXCTt6QsFuHAbc0TgTsKDY=; b=cDB0+TQXAlfKIF5nZQlIzi21ezW6z5dL6+DkXPGKe+D/xgKbABGKejOqNx1tCThWe2 ZDY5GnhLUkT9mxmxij1JBzGPGozvNqdEZXWB3m8nL/Td07hmuLvrctx2jryctzr1jhJQ VVAMjj3JaMv9AUsp8j3FcHtX1GZZ7v8WYozhPwPIDouPlL1aYYvLqt5tS+zQcqRKbFO2 GqtEn1B96g1Q3a7qWa1XaxWvGujE0v3S8QNXS4Ui/7uWQbjjqZfZfvpu1sjE5yI+MlNr GeSpcGQOJ4upCx5BgTSR5PGE4RR8Mk55sq+4lAbFcoLsA2+BhveesvNUD0mTEHmlc8c3 NxFg== X-Gm-Message-State: AOJu0YzCJIOhvmXu6iuu7c2uyzkRfuHC1xToe1nFAwr5fCCGdTL611y3 yZOQZ+mooQs3ShwfDqq+9DZBKU14nM0loz5YAs4= X-Received: by 2002:a05:600c:a0a:b0:409:5580:bc9f with SMTP id z10-20020a05600c0a0a00b004095580bc9fmr13581608wmp.34.1699271103429; Mon, 06 Nov 2023 03:45:03 -0800 (PST) Received: from m1x-phil.lan (176-131-220-199.abo.bbox.fr. [176.131.220.199]) by smtp.gmail.com with ESMTPSA id j19-20020a05600c191300b004090ca6d785sm12055182wmq.2.2023.11.06.03.45.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 06 Nov 2023 03:45:03 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Thomas Huth , David Hildenbrand , Halil Pasic , Eric Farman , Christian Borntraeger , qemu-s390x@nongnu.org, Ilya Leoshkevich , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/4] target/s390x/cpu: Restrict CPUS390XState declaration to 'cpu.h' Date: Mon, 6 Nov 2023 12:44:55 +0100 Message-ID: <20231106114500.5269-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::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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, T_SCC_BODY_TEXT_LINE=-0.01 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 In order to restrict CPUS390XState declaration to "cpu.h" (both target-specific): - have the following prototypes take a S390CPU* instead: . css_do_sic() . sclp_service_call() . sclp_service_call_protected() - restrict cpu_get_tb_cpu_state() definition to TCG Philippe Mathieu-Daudé (4): hw/s390x/css: Have css_do_sic() take S390CPU instead of CPUS390XState hw/s390x/sclp: Have sclp_service_call[_protected]() take S390CPU* target/s390x/cpu: Restrict cpu_get_tb_cpu_state() definition to TCG target/s390x/cpu: Restrict CPUS390XState declaration to 'cpu.h' include/hw/s390x/css.h | 2 +- include/hw/s390x/sclp.h | 5 ++--- target/s390x/cpu-qom.h | 2 -- target/s390x/cpu.h | 11 ++++++++--- hw/s390x/css.c | 3 ++- hw/s390x/sclp.c | 7 ++++--- target/s390x/kvm/kvm.c | 4 ++-- target/s390x/tcg/misc_helper.c | 5 +++-- 8 files changed, 22 insertions(+), 17 deletions(-) Reviewed-by: Thomas Huth