From patchwork Mon Nov 25 17:20:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 11260743 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AC8A14ED for ; Mon, 25 Nov 2019 17:26:11 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 70AB3207FD for ; Mon, 25 Nov 2019 17:26:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GFcUwCL4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70AB3207FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:46936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZI7m-0005JM-J3 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 25 Nov 2019 12:26:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57239) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZI2Y-0002Ku-TQ for qemu-devel@nongnu.org; Mon, 25 Nov 2019 12:20:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZI2W-00072S-9Q for qemu-devel@nongnu.org; Mon, 25 Nov 2019 12:20:45 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:25638 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iZI2W-00071m-0z for qemu-devel@nongnu.org; Mon, 25 Nov 2019 12:20:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574702442; 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=Ieq20g0g0Mm5ncHKQTFZelg+aG/LUEVA3RUMZMW0J0c=; b=GFcUwCL4v7ZnNzNqx4+UHMFvVNSS1R7rYMZk1lypW6FbM+HxdcGz6VEJFvY6q7fsv+48z3 MnUOzvUplty1EldhAYuOAGEv0BfPtLjHgRmKj/glWHT3IaPLaywmvRS1ioMF4ozKUzk9HN 5+QJ0pB15imcXDuSfHkMvyRbQocZp4Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-108-oCVZPgHJPS2ySmkk3-uJMQ-1; Mon, 25 Nov 2019 12:20:39 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E066918557C8; Mon, 25 Nov 2019 17:20:37 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.6]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3875E19D70; Mon, 25 Nov 2019 17:20:32 +0000 (UTC) From: David Hildenbrand To: qemu-devel@nongnu.org Subject: [PATCH v2 0/2] s390x/cpumodel: Introduce dynamic feature group Date: Mon, 25 Nov 2019 18:20:29 +0100 Message-Id: <20191125172031.16282-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: oCVZPgHJPS2ySmkk3-uJMQ-1 X-Mimecast-Spam-Score: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 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: Peter Maydell , Thomas Huth , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , Janosch Frank , David Hildenbrand , Cornelia Huck , Richard Henderson , Markus Armbruster , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Michael Mueller , Jiri Denemark , Eduardo Habkost Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" This thread was previously called: s390x/cpumodel: Introduce "best" model variants There was recently a discussion regarding CPU model versions. That concept does not fit s390x where we have a lot of feature variability. I proposed an alternative approach in [1], which might work for x86 as well (but I am not sure if x86 still can or wants to switch to that), and requires only little changes in upper layers. [1] and patch #2 contains more information on the motivation for this. It allows, for example, to specify/expand "best feature set possible on this accelerator, hw and, firmware" " Get the best possible feature set (e.g., excluding deprecated features) for a CPU definition in the configuration -cpu z14,all-features=off,recommended-features=on Get the maximum possible feature set (e.g., including deprecated features) for a CPU definition in the configuration ("everything that could be enabled"): -cpu z14,all-features=off,available-features=on Get all valid features for a CPU definition: -cpu z14,all-features=on " v1 -> v2: - Use dynamic feature groups instead of new models [1] https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg07222.html Cc: Daniel P. Berrangé Cc: Markus Armbruster Cc: Jiri Denemark Cc: Eduardo Habkost Cc: Michael Mueller Cc: Peter Maydell David Hildenbrand (2): s390x/cpumodel: Factor out CPU feature dependencies s390x/cpumodel: Introduce dynamic feature groups target/s390x/cpu_features.c | 29 +++++ target/s390x/cpu_features.h | 14 +++ target/s390x/cpu_models.c | 242 +++++++++++++++++++++++++++--------- 3 files changed, 228 insertions(+), 57 deletions(-)