From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
"Jordan Justen (Intel address)" <jordan.l.justen@intel.com>,
qemu-devel@nongnu.org, Anthony Liguori <aliguori@amazon.com>,
Igor Mammedov <imammedo@redhat.com>,
Laszlo Ersek <lersek@redhat.com>
Subject: Re: [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info
Date: Tue, 26 Nov 2013 17:28:05 +0200 [thread overview]
Message-ID: <20131126152805.GA22682@redhat.com> (raw)
In-Reply-To: <1385479258.10163.13.camel@nilsson.home.kraxel.org>
On Tue, Nov 26, 2013 at 04:20:58PM +0100, Gerd Hoffmann wrote:
> On Di, 2013-11-26 at 16:04 +0200, Michael S. Tsirkin wrote:
> > On Tue, Nov 26, 2013 at 12:00:51PM +0100, Gerd Hoffmann wrote:
> > > Hi,
> > >
> > > > I think it's down to other qemu bugs (such as _CRS not covering
> > > > all of PCI memory), we shall just fix them.
> > >
> > > i.e. the attached patch should fixup things.
> > >
> > > cheers,
> > > Gerd
> > >
> >
> > Yes, I think it's a start. Q35 is a bit harder because of the MMIO
> > region.
>
> ??? Do you mean mmconfig? That can live inside the window.
Are you sure? When I tried windows crashed but maybe I'm wrong.
Did you try some windows guests?
> So
> something like the attached patch should work in theory. In practice it
> hasn't the expected effect for some reason ...
>
> > Do we want to tweak end too? There's all kind of
> > stuff there so need to be careful ...
>
> I'd leave the end as-is, at the ioapic address.
>
> cheers,
> Gerd
>
> >From 3d01b6c46fbf655bdb9b4f7ca427f40959b05d31 Mon Sep 17 00:00:00 2001
> From: Gerd Hoffmann <kraxel@redhat.com>
> Date: Tue, 26 Nov 2013 16:18:04 +0100
> Subject: [PATCH] [wip] q35: fix 32bit pci hole
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> hw/pci-host/q35.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
> index c043998..8d47bf9 100644
> --- a/hw/pci-host/q35.c
> +++ b/hw/pci-host/q35.c
> @@ -179,15 +179,6 @@ static void q35_host_initfn(Object *obj)
> object_property_add(obj, PCIE_HOST_MCFG_SIZE, "int",
> q35_host_get_mmcfg_size,
> NULL, NULL, NULL, NULL);
> -
> - /* Leave enough space for the biggest MCFG BAR */
> - /* TODO: this matches current bios behaviour, but
> - * it's not a power of two, which means an MTRR
> - * can't cover it exactly.
> - */
> - s->mch.pci_info.w32.begin = MCH_HOST_BRIDGE_PCIEXBAR_DEFAULT +
> - MCH_HOST_BRIDGE_PCIEXBAR_MAX;
> - s->mch.pci_info.w32.end = IO_APIC_DEFAULT_ADDRESS;
> }
>
> static const TypeInfo q35_host_info = {
> @@ -365,6 +356,8 @@ static int mch_init(PCIDevice *d)
> 0x100000000ULL - mch->below_4g_mem_size);
> memory_region_add_subregion(mch->system_memory, mch->below_4g_mem_size,
> &mch->pci_hole);
> + mch->pci_info.w32.begin = mch->below_4g_mem_size;
> + mch->pci_info.w32.end = IO_APIC_DEFAULT_ADDRESS;
>
> pci_hole64_size = pci_host_get_hole64_size(mch->pci_hole64_size);
> pc_init_pci64_hole(&mch->pci_info, 0x100000000ULL + mch->above_4g_mem_size,
> --
> 1.8.3.1
>
next prev parent reply other threads:[~2013-11-26 15:25 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 11:53 [Qemu-devel] [PULL for-1.8 0/2] pc last minute fixes for 1.8 Michael S. Tsirkin
2013-11-18 11:53 ` [Qemu-devel] [PULL for-1.8 1/2] pc: disable pci-info Michael S. Tsirkin
2013-11-26 8:12 ` Laszlo Ersek
2013-11-26 9:10 ` Michael S. Tsirkin
2013-11-26 11:00 ` Gerd Hoffmann
2013-11-26 14:04 ` Michael S. Tsirkin
2013-11-26 14:22 ` Laszlo Ersek
2013-11-26 15:04 ` Michael S. Tsirkin
2013-11-26 15:42 ` Gerd Hoffmann
2013-11-26 15:48 ` Michael S. Tsirkin
2013-11-26 18:26 ` Igor Mammedov
2013-11-27 6:15 ` Michael S. Tsirkin
2013-11-26 15:20 ` Gerd Hoffmann
2013-11-26 15:28 ` Michael S. Tsirkin [this message]
2013-11-26 15:59 ` Gerd Hoffmann
2013-11-27 6:20 ` Michael S. Tsirkin
2013-11-26 14:11 ` Laszlo Ersek
2013-11-26 18:58 ` Igor Mammedov
2013-11-18 11:53 ` [Qemu-devel] [PULL for-1.8 2/2] doc: fix hardcoded helper path Michael S. Tsirkin
2013-11-18 15:06 ` [Qemu-devel] [PULL for-1.8 0/2] pc last minute fixes for 1.8 Eric Blake
2013-11-18 15:17 ` Michael S. Tsirkin
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=20131126152805.GA22682@redhat.com \
--to=mst@redhat.com \
--cc=aliguori@amazon.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=jordan.l.justen@intel.com \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).