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=-18.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS 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 5CCBBC433DB for ; Tue, 2 Feb 2021 22:14:14 +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 B35FC64DDB for ; Tue, 2 Feb 2021 22:14:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B35FC64DDB 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]:46702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l73w4-0003f8-GX for qemu-devel@archiver.kernel.org; Tue, 02 Feb 2021 17:14:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l73vK-0002gh-Es for qemu-devel@nongnu.org; Tue, 02 Feb 2021 17:13:26 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:53668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l73vG-0007L0-NC for qemu-devel@nongnu.org; Tue, 02 Feb 2021 17:13:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612304001; 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: in-reply-to:in-reply-to:references:references; bh=zLjE022yB2VHLloKXHptAOh1vd/UQbiTU/ma6DNMkAE=; b=S+z2+0GaGKt8jaso9eE/C9zmbQ52bNkix0VTkJnznXLnMpl09GaNg/FJrIB22O46LpWYks wFiaH+zAQImHeXaAFBNM3BEI5sdrImCMGyjXSmBCHHQAcDYO947NGIcAps5NTbcNQ+JiFP 5Cn6vGkE09DtUOYYm2gPtREasA83JgA= 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-5-kE8QNxSFPpqZ85buyPhQ8Q-1; Tue, 02 Feb 2021 17:13:16 -0500 X-MC-Unique: kE8QNxSFPpqZ85buyPhQ8Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 134DC8710E8; Tue, 2 Feb 2021 22:13:12 +0000 (UTC) Received: from omen.home.shazbot.org (ovpn-112-255.phx2.redhat.com [10.3.112.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id CBA0D722CE; Tue, 2 Feb 2021 22:13:10 +0000 (UTC) Date: Tue, 2 Feb 2021 15:13:10 -0700 From: Alex Williamson To: Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= Subject: Re: [PATCH 12/12] hw/vfio/pci-quirks: Replace the word 'blacklist' Message-ID: <20210202151310.4747ed83@omen.home.shazbot.org> In-Reply-To: <20210202205824.1085853-13-philmd@redhat.com> References: <20210202205824.1085853-1-philmd@redhat.com> <20210202205824.1085853-13-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=alex.williamson@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=216.205.24.124; envelope-from=alex.williamson@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.386, 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_H3=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: Eduardo Otubo , Kevin Wolf , qemu-block@nongnu.org, Peter Maydell , Michael Roth , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Gerd Hoffmann , Stefan Hajnoczi , Max Reitz , Alex =?UTF-8?B?QmVubsOpZQ==?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, 2 Feb 2021 21:58:24 +0100 Philippe Mathieu-Daud=C3=A9 wrote: > Follow the inclusive terminology from the "Conscious Language in your > Open Source Projects" guidelines [*] and replace the word "blacklist" > appropriately. >=20 > [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.m= d >=20 > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > hw/vfio/pci.h | 2 +- > hw/vfio/pci-quirks.c | 14 +++++++------- > hw/vfio/pci.c | 4 ++-- > hw/vfio/trace-events | 2 +- > 4 files changed, 11 insertions(+), 11 deletions(-) Thanks! Reviewed-by: Alex Williamson Acked-by: Alex Williamson > diff --git a/hw/vfio/pci.h b/hw/vfio/pci.h > index 1574ef983f8..64777516d16 100644 > --- a/hw/vfio/pci.h > +++ b/hw/vfio/pci.h > @@ -197,7 +197,7 @@ void vfio_pci_write_config(PCIDevice *pdev, > uint64_t vfio_vga_read(void *opaque, hwaddr addr, unsigned size); > void vfio_vga_write(void *opaque, hwaddr addr, uint64_t data, unsigned s= ize); > =20 > -bool vfio_blacklist_opt_rom(VFIOPCIDevice *vdev); > +bool vfio_opt_rom_in_denylist(VFIOPCIDevice *vdev); > void vfio_vga_quirk_setup(VFIOPCIDevice *vdev); > void vfio_vga_quirk_exit(VFIOPCIDevice *vdev); > void vfio_vga_quirk_finalize(VFIOPCIDevice *vdev); > diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c > index fc8d63c8504..81c3e30df77 100644 > --- a/hw/vfio/pci-quirks.c > +++ b/hw/vfio/pci-quirks.c > @@ -43,19 +43,19 @@ > static const struct { > uint32_t vendor; > uint32_t device; > -} romblacklist[] =3D { > +} rom_denylist[] =3D { > { 0x14e4, 0x168e }, /* Broadcom BCM 57810 */ > }; > =20 > -bool vfio_blacklist_opt_rom(VFIOPCIDevice *vdev) > +bool vfio_opt_rom_in_denylist(VFIOPCIDevice *vdev) > { > int i; > =20 > - for (i =3D 0 ; i < ARRAY_SIZE(romblacklist); i++) { > - if (vfio_pci_is(vdev, romblacklist[i].vendor, romblacklist[i].de= vice)) { > - trace_vfio_quirk_rom_blacklisted(vdev->vbasedev.name, > - romblacklist[i].vendor, > - romblacklist[i].device); > + for (i =3D 0 ; i < ARRAY_SIZE(rom_denylist); i++) { > + if (vfio_pci_is(vdev, rom_denylist[i].vendor, rom_denylist[i].de= vice)) { > + trace_vfio_quirk_rom_in_denylist(vdev->vbasedev.name, > + rom_denylist[i].vendor, > + rom_denylist[i].device); > return true; > } > } > diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c > index f74be782091..759a3b1abf4 100644 > --- a/hw/vfio/pci.c > +++ b/hw/vfio/pci.c > @@ -900,7 +900,7 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev) > =20 > if (vdev->pdev.romfile || !vdev->pdev.rom_bar) { > /* Since pci handles romfile, just print a message and return */ > - if (vfio_blacklist_opt_rom(vdev) && vdev->pdev.romfile) { > + if (vfio_opt_rom_in_denylist(vdev) && vdev->pdev.romfile) { > warn_report("Device at %s is known to cause system instabili= ty" > " issues during option rom execution", > vdev->vbasedev.name); > @@ -927,7 +927,7 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev) > return; > } > =20 > - if (vfio_blacklist_opt_rom(vdev)) { > + if (vfio_opt_rom_in_denylist(vdev)) { > if (dev->opts && qemu_opt_get(dev->opts, "rombar")) { > warn_report("Device at %s is known to cause system instabili= ty" > " issues during option rom execution", > diff --git a/hw/vfio/trace-events b/hw/vfio/trace-events > index c0e75f24b76..079f53acf28 100644 > --- a/hw/vfio/trace-events > +++ b/hw/vfio/trace-events > @@ -49,7 +49,7 @@ vfio_pci_emulated_sub_vendor_id(const char *name, uint1= 6_t val) "%s 0x%04x" > vfio_pci_emulated_sub_device_id(const char *name, uint16_t val) "%s 0x%0= 4x" > =20 > # pci-quirks.c > -vfio_quirk_rom_blacklisted(const char *name, uint16_t vid, uint16_t did)= "%s %04x:%04x" > +vfio_quirk_rom_in_denylist(const char *name, uint16_t vid, uint16_t did)= "%s %04x:%04x" > vfio_quirk_generic_window_address_write(const char *name, const char * r= egion_name, uint64_t data) "%s %s 0x%"PRIx64 > vfio_quirk_generic_window_data_read(const char *name, const char * regio= n_name, uint64_t data) "%s %s 0x%"PRIx64 > vfio_quirk_generic_window_data_write(const char *name, const char * regi= on_name, uint64_t data) "%s %s 0x%"PRIx64