All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Alex Williamson" <alex@shazbot.org>,
	"Cédric Le Goater" <clg@redhat.com>
Subject: [PATCH for-12.0 9/9] vfio/pci: Rename vfio_opt_rom_in_denylist() to vfio_quirk_rom_in_denylist()
Date: Mon,  9 Nov 2026 10:06:25 +0100	[thread overview]
Message-ID: <20261109090625.908592-10-clg@redhat.com> (raw)
In-Reply-To: <20261109090625.908592-1-clg@redhat.com>

The function is defined in pci-quirks.c. Rename it to follow the
vfio_quirk_ naming convention.

No functional change.

Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
 hw/vfio/pci.h        | 2 +-
 hw/vfio/pci-quirks.c | 2 +-
 hw/vfio/pci-rom.c    | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/vfio/pci.h b/hw/vfio/pci.h
index faf0e9dcf022..463dd5d81130 100644
--- a/hw/vfio/pci.h
+++ b/hw/vfio/pci.h
@@ -252,7 +252,6 @@ void vfio_pci_config_register_vga(VFIOPCIDevice *vdev);
 
 /* ROM */
 void vfio_pci_size_rom(VFIOPCIDevice *vdev);
-bool vfio_opt_rom_in_denylist(VFIOPCIDevice *vdev);
 
 /* VGA */
 uint64_t vfio_vga_read(void *opaque, hwaddr addr, unsigned size);
@@ -284,6 +283,7 @@ bool vfio_add_virt_caps(VFIOPCIDevice *vdev, Error **errp);
 void vfio_rom_quirk_setup(VFIOPCIDevice *vdev);
 void vfio_quirk_reset(VFIOPCIDevice *vdev);
 VFIOQuirk *vfio_quirk_alloc(int nr_mem);
+bool vfio_quirk_rom_in_denylist(VFIOPCIDevice *vdev);
 
 /* IGD */
 void vfio_probe_igd_bar0_quirk(VFIOPCIDevice *vdev, int nr);
diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
index a38a0e7a3aca..da5836edeb21 100644
--- a/hw/vfio/pci-quirks.c
+++ b/hw/vfio/pci-quirks.c
@@ -48,7 +48,7 @@ static const struct {
     { 0x14e4, 0x168e }, /* Broadcom BCM 57810 */
 };
 
-bool vfio_opt_rom_in_denylist(VFIOPCIDevice *vdev)
+bool vfio_quirk_rom_in_denylist(VFIOPCIDevice *vdev)
 {
     int i;
 
diff --git a/hw/vfio/pci-rom.c b/hw/vfio/pci-rom.c
index c8c59727bf7e..89b2b67f8325 100644
--- a/hw/vfio/pci-rom.c
+++ b/hw/vfio/pci-rom.c
@@ -180,7 +180,7 @@ void vfio_pci_size_rom(VFIOPCIDevice *vdev)
 
     if (pdev->romfile || !pdev->rom_bar) {
         /* Since pci handles romfile, just print a message and return */
-        if (vfio_opt_rom_in_denylist(vdev) && pdev->romfile) {
+        if (vfio_quirk_rom_in_denylist(vdev) && pdev->romfile) {
             warn_report("Device at %s is known to cause system instability"
                         " issues during option rom execution",
                         vdev->vbasedev.name);
@@ -208,7 +208,7 @@ void vfio_pci_size_rom(VFIOPCIDevice *vdev)
         return;
     }
 
-    if (vfio_opt_rom_in_denylist(vdev)) {
+    if (vfio_quirk_rom_in_denylist(vdev)) {
         if (pdev->rom_bar > 0) {
             warn_report("Device at %s is known to cause system instability"
                         " issues during option rom execution",
-- 
2.56.0



      parent reply	other threads:[~2026-11-09  9:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09  9:06 [PATCH for-12.0 0/9] vfio/pci: Split pci.c Cédric Le Goater
2026-11-09  9:06 ` [PATCH for-12.0 1/9] vfio/pci: Extract interrupt handling into pci-irq.c Cédric Le Goater
2026-11-09  9:06 ` [PATCH for-12.0 2/9] vfio/pci: Move vfio_mmap_set_enabled() to region.c Cédric Le Goater
2026-11-30 22:47   ` Alex Williamson
2026-11-09  9:06 ` [PATCH for-12.0 3/9] vfio/pci: Rename IRQ functions Cédric Le Goater
2026-11-30 22:47   ` Alex Williamson
2026-11-09  9:06 ` [PATCH for-12.0 4/9] vfio/pci: Replace deprecated g_memdup() with g_memdup2() Cédric Le Goater
2026-11-09  9:06 ` [PATCH for-12.0 5/9] vfio/pci: Extract PCI capability setup into pci-caps.c Cédric Le Goater
2026-11-09  9:06 ` [PATCH for-12.0 6/9] vfio/pci: Rename capability functions Cédric Le Goater
2026-11-09  9:06 ` [PATCH for-12.0 7/9] vfio/pci: Rename vfio_sub_page_bar_update_mappings() function Cédric Le Goater
2026-11-09  9:06 ` [PATCH for-12.0 8/9] vfio/pci: Extract ROM handling into pci-rom.c Cédric Le Goater
2026-11-09  9:06 ` Cédric Le Goater [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261109090625.908592-10-clg@redhat.com \
    --to=clg@redhat.com \
    --cc=alex@shazbot.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.