From nobody Sun Feb 8 10:44:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594819199; cv=none; d=zohomail.com; s=zohoarc; b=TfjaHC0xOliKP6egvsnvqdGJS+eFt8GT21fvJ1fQgC3Fi6hUmcUZwVXSdk1x/xghRPyWv5tFviBPUnmgNZ0LMQdss6aJJILtvoHHclsBHJ3XHff6Onrg4jQUZNL564e7IGtGsHA33X8GS5ve1tyWSkx+O33Uryrnc9k5xNajCGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594819199; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Zbi5X8sEm3AKNYmaEKJGFWMfdxl/pU19sE608TpMmDM=; b=jrGqCN0J0upjWjJPMipkId+C0/G4qREhxQ4idYB5npUWdN0zLHzhop6pZqot/SoNuPCze1lQRR+bkYQdQ04F0taDtD84HoHbFMn97QcOuViAZjCQw+f3gbW5SeJpGOUUZbn4JJ8UwJUKJQSLl7XtNpmzvT0ClQzB7ozAuJeL0MY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 159481919906534.272705516675956; Wed, 15 Jul 2020 06:19:59 -0700 (PDT) Received: from localhost ([::1]:48396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvhKF-0002Px-TF for importer@patchew.org; Wed, 15 Jul 2020 09:19:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvhJH-00017w-Ob for qemu-devel@nongnu.org; Wed, 15 Jul 2020 09:18:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:57594 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jvhJF-00073W-Oa for qemu-devel@nongnu.org; Wed, 15 Jul 2020 09:18:55 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-299-VG-i-y98NCODy7hZINUuaA-1; Wed, 15 Jul 2020 09:18:49 -0400 Received: by mail-wr1-f70.google.com with SMTP id o12so1348189wrj.23 for ; Wed, 15 Jul 2020 06:18:49 -0700 (PDT) Received: from x1w.redhat.com (138.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.138]) by smtp.gmail.com with ESMTPSA id a15sm3796033wrh.54.2020.07.15.06.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 06:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594819133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zbi5X8sEm3AKNYmaEKJGFWMfdxl/pU19sE608TpMmDM=; b=S1UEG0faW2iq4m8A5WLMuZWcQNhGOjZrgQxcc0MGDCJBYI75+63LIA/Us7igyIxtg0uhWB 4N+FNio08ZsRWPPBx67KpV4qIpOX6svzchhusaL6QY8+W4AzxNAbvY0z6s7EL6ldTALsdH wqaP81sQnOwkQWHNzgLeBogcI6PZsu4= X-MC-Unique: VG-i-y98NCODy7hZINUuaA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Zbi5X8sEm3AKNYmaEKJGFWMfdxl/pU19sE608TpMmDM=; b=pKTiaSvMjr+8Rl2P1wVnZ3O1q57SOUnmDymSFp154Oq38aG6OUpKEakXmI5wJIwFw4 Ofo7alCcM63fYfI803Wgy6AHm6Pl0b3BsCWq8gd71M23WQuBl4arKlZm9zGUcB1p7RWv n5DIrgZIBNcycaTcaw6l1Czz/cDRPxtwvIVUS/JVDTqmAG77a8h/2/S200dk7do/XZsh xU0HazP1vGDqKLmrjFwY12lFEk5gg10eH5cgYpd9nU1mZHK0hNfa/drC6sLdDyfyHv07 xycyspDpGZWrCcBhhrlgXWfIw5qZWJ79Esi4K93ZDcU2Whf5ZBD5WeTMfmbuSDUSXqru Pm/w== X-Gm-Message-State: AOAM533d0iDNpE+TDLXqK2QS2Lxmdkxkzaei5q6FhDbTfuuzwHkNsjDR fFRbR3LYKLzVC5JgHzzc/VKB/g7YJ9nFe0wBiScxrLiq06EmsrEExGC62ygZNuO963cyQfCIgLW gVXtf4/WxOVVF3RU= X-Received: by 2002:adf:b608:: with SMTP id f8mr12143492wre.363.1594819127880; Wed, 15 Jul 2020 06:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd1hktajcwt6IlTSNw8oVN0i2hE/dfN0jCa+YQuDTnBvSXgCkZ25y6LNd7mK4cXfmCZFaYfg== X-Received: by 2002:adf:b608:: with SMTP id f8mr12143461wre.363.1594819127568; Wed, 15 Jul 2020 06:18:47 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH-for-5.2] hw/s390x: Move S390_ADAPTER_SUPPRESSIBLE from 'css.h' to 's390_flic.h' Date: Wed, 15 Jul 2020 15:18:45 +0200 Message-Id: <20200715131845.30469-1-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=207.211.31.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/15 05:07:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Cornelia Huck , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Not all s390x devices require to have access to the CPU internals. To reduce the include dependencies on "s390x/css.h", move the S390_ADAPTER_SUPPRESSIBLE definition to "s390x/s390_flic.h". Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/s390x/css.h | 7 ------- include/hw/s390x/s390_flic.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/hw/s390x/css.h b/include/hw/s390x/css.h index 08c869ab0a..7858666307 100644 --- a/include/hw/s390x/css.h +++ b/include/hw/s390x/css.h @@ -12,7 +12,6 @@ #ifndef CSS_H #define CSS_H =20 -#include "cpu.h" #include "hw/s390x/adapter.h" #include "hw/s390x/s390_flic.h" #include "hw/s390x/ioinst.h" @@ -233,12 +232,6 @@ uint32_t css_get_adapter_id(CssIoAdapterType type, uin= t8_t isc); void css_register_io_adapters(CssIoAdapterType type, bool swap, bool maska= ble, uint8_t flags, Error **errp); =20 -#ifndef CONFIG_KVM -#define S390_ADAPTER_SUPPRESSIBLE 0x01 -#else -#define S390_ADAPTER_SUPPRESSIBLE KVM_S390_ADAPTER_SUPPRESSIBLE -#endif - #ifndef CONFIG_USER_ONLY SubchDev *css_find_subch(uint8_t m, uint8_t cssid, uint8_t ssid, uint16_t schid); diff --git a/include/hw/s390x/s390_flic.h b/include/hw/s390x/s390_flic.h index 4687ecfe83..6bf9d73728 100644 --- a/include/hw/s390x/s390_flic.h +++ b/include/hw/s390x/s390_flic.h @@ -17,6 +17,13 @@ #include "hw/s390x/adapter.h" #include "hw/virtio/virtio.h" #include "qemu/queue.h" +#include "cpu.h" + +#ifndef CONFIG_KVM +#define S390_ADAPTER_SUPPRESSIBLE 0x01 +#else +#define S390_ADAPTER_SUPPRESSIBLE KVM_S390_ADAPTER_SUPPRESSIBLE +#endif =20 /* * Reserve enough gsis to accommodate all virtio devices. --=20 2.21.3