All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Bug 1769053 <1769053@bugs.launchpad.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1769053] Re: Cannot start a guest with more than 1TB of RAM
Date: Tue, 8 May 2018 15:22:34 +0200	[thread overview]
Message-ID: <20180508132234.yegmw442swuofykh@sirius.home.kraxel.org> (raw)
In-Reply-To: <20180508112338.GI2500@work-vm>

  Hi,

>   d) For smaller amount of RAM it might still fail if
> RAM+rounding+pci+hotplug space goes over the limit.
>      Figuring that limit out is tricky (and I thought it
>      might be BIOS/EFI dependent as well depending where they
>      decide to put their PCI devices)

Both seabios and ovmf try to not go too high in address space.  Reason
is exactly the phys-bits issue.  Using 40 here by default does not only
limit the memory to 1TB.  It also has the problem that the guest thinks
it has 1TB of address space but in reality it might be less.  Even
recent skylake machines have phys-bits=39 (512G) only, and trying to use
the physical address space above 512G in the guest just doesn't work
because the phys-bits=39 limit applies to EPT too.

So checking phys-bits in the firmware, for example to place pci bars as
high as possible in physical address space, is not going to work.

IIRC ovmf uses a 32G sized region with 32G alignment by default, which
will land below 64G (aka phys-bits=36 address space) unless the guest
has more than 30 (q35) or 31 (piix4) GB of memory.

seabios will not map pci bars above 4G unless it runs out of space below
4G.  If needed 64bit PCI bars will be placed right above ram, with
gigabyte alignment.

cheers,
  Gerd

  reply	other threads:[~2018-05-08 13:22 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <152541524728.557.4600864098110042577.malonedeb@gac.canonical.com>
2018-05-04  6:46 ` [Qemu-devel] [Bug 1769053] Re: Cannot start a guest with more than 1TB of RAM Daniel Axtens
2018-05-04  7:44 ` ChristianEhrhardt
2018-05-04  8:04   ` Daniel Axtens
2018-05-04  8:12 ` ChristianEhrhardt
2018-05-04 16:10 ` Dr. David Alan Gilbert
2018-05-04 16:14 ` Dan Streetman
2018-05-04 16:15 ` Dan Streetman
2018-05-04 16:19 ` Dan Streetman
2018-05-04 16:33 ` Dr. David Alan Gilbert
2018-05-07 10:33 ` ChristianEhrhardt
2018-05-08  8:37   ` Dr. David Alan Gilbert
2018-05-08  9:57     ` ChristianEhrhardt
2018-05-08 10:26       ` Dr. David Alan Gilbert
2018-05-08 10:48 ` Daniel Berrange
2018-05-08 11:23   ` Dr. David Alan Gilbert
2018-05-08 13:22     ` Gerd Hoffmann [this message]
2018-05-08 14:00       ` Dr. David Alan Gilbert
2018-05-15  1:16 ` David Coronel
2018-05-15  7:17 `  Christian Ehrhardt 
2018-05-15  7:19 `  Christian Ehrhardt 
2018-05-15  7:45 `  Christian Ehrhardt 
2018-06-11  9:30 `  Christian Ehrhardt 
2018-06-12  7:02 ` [Qemu-devel] [Bug 1769053] Re: Ability to control phys-bits through libvirt Launchpad Bug Tracker
2018-06-12  7:04 `  Christian Ehrhardt 
2018-06-12  7:18 ` Launchpad Bug Tracker
2018-06-12  7:18 `  Christian Ehrhardt 
2018-06-12  7:46 ` Launchpad Bug Tracker
2018-06-12  8:27 `  Christian Ehrhardt 
2018-06-12 11:14 ` Launchpad Bug Tracker
2019-08-28  2:55 ` [Bug 1769053] sirswa
2019-08-28 14:16 ` ehabkost
2020-10-29 15:30 ` raistlin
2023-04-19  5:43 ` [Bug 1769053] Re: Ability to control phys-bits through libvirt Christian Ehrhardt 

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=20180508132234.yegmw442swuofykh@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=1769053@bugs.launchpad.net \
    --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.