All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org,
	Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Thomas Huth <thuth@redhat.com>,
	Eduardo Habkost <eduardo@habkost.net>,
	Richard Henderson <richard.henderson@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH 4/8] hw/pci-host/q35: Remove Q35PCIHost::pci_hole64_fix field
Date: Fri, 9 Jan 2026 15:58:15 +0000	[thread overview]
Message-ID: <aWEll_ENkNVVBbWy@redhat.com> (raw)
In-Reply-To: <20250501223522.99772-5-philmd@linaro.org>

This patch did not get merged so far, so in case it is resurrected
I wanted to warn that even though we're going to be removing machine
types that use it, we might want to keep the property.

In this issue

  https://gitlab.com/qemu-project/qemu/-/issues/1947#note_2994552211

being able to disable the pci_hole64_fix is indicated as a possible
fix for a Windows XP  BSOD.

Perhaps there is a better way to avoid the root cause of the BSOD,
but if not this knob would be useful to retain.


On Fri, May 02, 2025 at 12:35:18AM +0200, Philippe Mathieu-Daudé wrote:
> The Q35PCIHost::pci_hole64_fix boolean was only set in
> the pc_compat_2_10[] array, via the 'x-pci-hole64-fix=off'
> property. We removed all machines using that array, lets
> remove that property and all the code around it.



> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>  include/hw/pci-host/q35.h | 1 -
>  hw/pci-host/q35.c         | 6 ++----
>  2 files changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/include/hw/pci-host/q35.h b/include/hw/pci-host/q35.h
> index ddafc3f2e3d..75810528205 100644
> --- a/include/hw/pci-host/q35.h
> +++ b/include/hw/pci-host/q35.h
> @@ -63,7 +63,6 @@ struct Q35PCIHost {
>      PCIExpressHost parent_obj;
>      /*< public >*/
>  
> -    bool pci_hole64_fix;
>      MCHPCIState mch;
>  };
>  
> diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
> index 1951ae440cc..f6e29cc4fc8 100644
> --- a/hw/pci-host/q35.c
> +++ b/hw/pci-host/q35.c
> @@ -116,13 +116,12 @@ static void q35_host_get_pci_hole_end(Object *obj, Visitor *v,
>  static uint64_t q35_host_get_pci_hole64_start_value(Object *obj)
>  {
>      PCIHostState *h = PCI_HOST_BRIDGE(obj);
> -    Q35PCIHost *s = Q35_HOST_DEVICE(obj);
>      Range w64;
>      uint64_t value;
>  
>      pci_bus_get_w64_range(h->bus, &w64);
>      value = range_is_empty(&w64) ? 0 : range_lob(&w64);
> -    if (!value && s->pci_hole64_fix) {
> +    if (!value) {
>          value = pc_pci_hole64_start();
>      }
>      return value;
> @@ -156,7 +155,7 @@ static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v,
>      pci_bus_get_w64_range(h->bus, &w64);
>      value = range_is_empty(&w64) ? 0 : range_upb(&w64) + 1;
>      hole64_end = ROUND_UP(hole64_start + s->mch.pci_hole64_size, 1ULL << 30);
> -    if (s->pci_hole64_fix && value < hole64_end) {
> +    if (value < hole64_end) {
>          value = hole64_end;
>      }
>      visit_type_uint64(v, name, &value, errp);
> @@ -181,7 +180,6 @@ static const Property q35_host_props[] = {
>                       mch.above_4g_mem_size, 0),
>      DEFINE_PROP_BOOL(PCI_HOST_PROP_SMM_RANGES, Q35PCIHost,
>                       mch.has_smm_ranges, true),
> -    DEFINE_PROP_BOOL("x-pci-hole64-fix", Q35PCIHost, pci_hole64_fix, true),
>  };
>  
>  static void q35_host_class_init(ObjectClass *klass, const void *data)
> -- 
> 2.47.1
> 
> 

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  reply	other threads:[~2026-01-09 15:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-01 22:35 [PATCH 0/8] hw/i386/pc: Remove deprecated 2.10, 2.11 and 2.12 PC machines Philippe Mathieu-Daudé
2025-05-01 22:35 ` [PATCH 1/8] hw/i386/pc: Remove deprecated pc-q35-2.10 and pc-i440fx-2.10 machines Philippe Mathieu-Daudé
2026-03-04 14:59   ` Thomas Huth
2025-05-01 22:35 ` [PATCH 2/8] hw/i386/pc: Remove pc_compat_2_10[] array Philippe Mathieu-Daudé
2026-03-04 15:00   ` Thomas Huth
2025-05-01 22:35 ` [PATCH 3/8] hw/pci-host/i440fx: Remove I440FXState::pci_hole64_fix field Philippe Mathieu-Daudé
2025-05-01 22:35 ` [PATCH 4/8] hw/pci-host/q35: Remove Q35PCIHost::pci_hole64_fix field Philippe Mathieu-Daudé
2026-01-09 15:58   ` Daniel P. Berrangé [this message]
2025-05-01 22:35 ` [PATCH 5/8] hw/i386/pc: Remove deprecated pc-q35-2.11 and pc-i440fx-2.11 machines Philippe Mathieu-Daudé
2026-03-04 15:02   ` Thomas Huth
2025-05-01 22:35 ` [PATCH 6/8] hw/i386/pc: Remove pc_compat_2_11[] array Philippe Mathieu-Daudé
2026-03-04 15:04   ` Thomas Huth
2025-05-01 22:35 ` [PATCH 7/8] hw/i386/pc: Remove deprecated pc-q35-2.12 and pc-i440fx-2.12 machines Philippe Mathieu-Daudé
2026-03-04 15:05   ` Thomas Huth
2025-05-01 22:35 ` [PATCH 8/8] hw/i386/pc: Remove pc_compat_2_12[] array Philippe Mathieu-Daudé
2026-03-04 15:06   ` Thomas Huth
2025-06-04  1:30 ` [PATCH 0/8] hw/i386/pc: Remove deprecated 2.10, 2.11 and 2.12 PC machines Xiaoyao Li
2025-06-04  7:07   ` Philippe Mathieu-Daudé
2025-06-04  7:14     ` Philippe Mathieu-Daudé
2025-06-05  5:12       ` Xiaoyao Li

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=aWEll_ENkNVVBbWy@redhat.com \
    --to=berrange@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.com \
    /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.