From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1049AC48BDF for ; Thu, 10 Jun 2021 19:49:39 +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 BD1B561285 for ; Thu, 10 Jun 2021 19:49:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD1B561285 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+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrQgL-0000Dz-T1 for qemu-devel@archiver.kernel.org; Thu, 10 Jun 2021 15:49:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrQfe-0007hE-0P for qemu-devel@nongnu.org; Thu, 10 Jun 2021 15:48:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:44330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrQfZ-0006Iq-1R for qemu-devel@nongnu.org; Thu, 10 Jun 2021 15:48:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623354527; 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: in-reply-to:in-reply-to:references:references; bh=JyeYLyhIzc+KopoEKT13Vuc8haXpM0rX/3LXUdnIRgc=; b=igV89iVWTyvvMD8ZfMr89d2VeZhePojck4d5qOjLjLnzivJrmLons7Mezl8tapwIJ4vWf+ g00oatnHK+W6e/eKGOf7aLfWnvXpihAulqDg8LW3vz4SbDuKAOTcDxnU76NUnv4wTGweAE VfHNRnuFx2o8gl2QFjgqF5/Z/IgRBAc= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-84-I2Y8bHTwMqCKoMj1X_0bzA-1; Thu, 10 Jun 2021 15:48:44 -0400 X-MC-Unique: I2Y8bHTwMqCKoMj1X_0bzA-1 Received: by mail-vs1-f72.google.com with SMTP id m14-20020a67fe4e0000b0290255df7450beso1455883vsr.8 for ; Thu, 10 Jun 2021 12:48:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JyeYLyhIzc+KopoEKT13Vuc8haXpM0rX/3LXUdnIRgc=; b=f7+MVHZAwywrkSfV1tUQf4RNslVZ4A0m8n63wu5P2Ywok1XOqIIi9fNVGqxJ7wjI6Y ewqNd/XIQLoSygxZBtW9SGueTr+7xK0d687IeII+hFJipH618BHvFPTnTJkeSbleonoP six8tmPkKYz85alMNjg5olF6awojAKS1Jsnf2nskRdFG8pETcnPprTZn012Vp8QlktLd rYmPf+IM17CHFgPveyuNOgRsnpb4z8t15gmqLwqYrlWvQvb6pGcMvMOBLDCll8D0DP2K VFTSuHqpJU+2edPdqtlghwkZqGXJ6ghApAXpeDRIs+EgsArQ36nYfo4A0TnP8cPj+xIv v02g== X-Gm-Message-State: AOAM530ifcev5N67doqaMMiuW9c4EhaJq6gVemnciY7Quo4Baug4DPb2 5OjvT7JNI1tEwKXg2xaegIN9jrvsaNiAqO4gm9o7c03FsW5HgbiPSycOIwR6ezIEJx+7a0s1zL2 cPYkE0sF0YAfv2WBMAVFxfw0sypMJ8x0= X-Received: by 2002:ab0:60c5:: with SMTP id g5mr82912uam.5.1623354524082; Thu, 10 Jun 2021 12:48:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5LvJ23G5bDiqaf+VAOjj3DwxH7XuGQCCaRzKZbur/ov5fbyp1CLRdB2fMoy9ghZyhC8JWlBQNXZlHDgZ8Gbo= X-Received: by 2002:ab0:60c5:: with SMTP id g5mr82891uam.5.1623354523931; Thu, 10 Jun 2021 12:48:43 -0700 (PDT) MIME-Version: 1.0 References: <20210608140938.863580-1-crosa@redhat.com> <20210608140938.863580-3-crosa@redhat.com> In-Reply-To: <20210608140938.863580-3-crosa@redhat.com> From: Willian Rampazzo Date: Thu, 10 Jun 2021 16:48:18 -0300 Message-ID: Subject: Re: [PATCH 2/4] Python QEMU utils: introduce a generic feature list To: Cleber Rosa Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=wrampazz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=170.10.133.124; envelope-from=wrampazz@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.199, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , Thomas Huth , Eduardo Habkost , qemu-block@nongnu.org, Erik Skultety , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , Wainer dos Santos Moschetta , qemu-devel , John Snow , Andrea Bolognani , Stefan Hajnoczi , Max Reitz , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Beraldo Leal Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, Jun 8, 2021 at 11:09 AM Cleber Rosa wrote: > > Which can be used to check for any "feature" that is available as a > QEMU command line option, and that will return its list of available > options. > > This is a generalization of the list_accel() utility function, which > is itself re-implemented in terms of the more generic feature. > > Signed-off-by: Cleber Rosa > --- > python/qemu/utils/__init__.py | 2 ++ > python/qemu/utils/accel.py | 15 ++---------- > python/qemu/utils/feature.py | 44 +++++++++++++++++++++++++++++++++++ > 3 files changed, 48 insertions(+), 13 deletions(-) > create mode 100644 python/qemu/utils/feature.py > Based on my comments from the next patch of this series: Reviewed-by: Willian Rampazzo