From: Igor Mammedov <imammedo@redhat.com>
To: Andrew Jones <drjones@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Laszlo Ersek <lersek@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Wei Huang <wei@redhat.com>,
"Leif Lindholm (Linaro address)" <leif.lindholm@linaro.org>
Subject: Re: [Qemu-devel] QEMU virt board: extending various limits
Date: Wed, 17 Jan 2018 19:53:21 +0100 [thread overview]
Message-ID: <20180117195321.55f5e7e8@redhat.com> (raw)
In-Reply-To: <20180117165348.xo3pat6voqaacmfz@kamzik.brq.redhat.com>
On Wed, 17 Jan 2018 17:53:48 +0100
Andrew Jones <drjones@redhat.com> wrote:
> On Wed, Jan 17, 2018 at 04:18:30PM +0000, Peter Maydell wrote:
> > On 17 January 2018 at 16:15, Igor Mammedov <imammedo@redhat.com> wrote:
> > > my idea was to drop fixed RAM base for virt board (at least for
> > > new machine types) so that QEMU could specify it dynamically and
> > > firmware would get base from x0 instead of compiled in constant.
> >
> > "base of ram is fixed" is about the one thing we've told
> > people they can rely on without fishing it out of the
> > device tree, so I think I'll just rule changing that out
> > of consideration now :-)
> >
>
> So that leaves three choices:
>
> 1) New machine type that has a different or non-fixed RAM base
>
> (Makes the QEMU/AAVMF zoo even worse.)
may be it's a way to go, we can drop all the stuff we don't
really need for virt use case and new firmware would
pick up RAM base from x0 and it would be able to work on
both new and old (fixed base put in x0) machine type.
Guests that want to run on new machine would have to
be booted by new AAVMF or handle dynamic RAM base from
x0 themselves.
how about virt-enterprise (64bit only EFI OS support booted by AAVMF)?
> 2) Implement spit memory where one chunk is guaranteed to be at
> the 1G boundary, e.g. 'size <= 1G' at 1G
>
> (The QEMU work will no doubt snowball, especially when considering
> memory hotplug. Although hotplug will likely warrant using DIMMs
> anyway, which means one 'size <= 1G' at 1G DIMM could be a non-removable,
> there by default DIMM, and other DIMM(s) would go elsewhere in order to
> implement the split memory.)
look at PC memory map and a bunch of tweaks that alter it,
it's hard to figure out if a change to it would break something.
So if we can (i.e. not restricted by spec) than we should go
for a flexible route that doesn't have design issues from the start.
> 3) Leave memory like it is and just put everything else we want to expand
> in high memory, probably above the second PCIe window. I.e. CPU
> redistributor regions 124 and up and an additional PCIe ECAM space
> would go up there.
>
> (Easiest, most backward compatible thing to do. Is there risk with putting
> those things above 4G? Someday we may want to shift those things and the
> second PCIe window even higher, if we ever want to support more than 515
> GB of memory, but I guess that shouldn't be a problem.)
we can do that, but platform is too new so eventually we might
have to change layout and have to deal with compat issues than,
but it will be too late to change direction (with existing customers)
so we would have to live with self-inflicted pain which could
be avoided if we made thing flexible.
>
> Thanks,
> drew
prev parent reply other threads:[~2018-01-17 18:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 15:07 [Qemu-devel] QEMU virt board: extending various limits Peter Maydell
2018-01-16 20:18 ` Laszlo Ersek
2018-01-16 20:28 ` Ard Biesheuvel
2018-01-17 16:15 ` Igor Mammedov
2018-01-17 16:18 ` Peter Maydell
2018-01-17 16:53 ` Andrew Jones
2018-01-17 18:53 ` Igor Mammedov [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=20180117195321.55f5e7e8@redhat.com \
--to=imammedo@redhat.com \
--cc=ard.biesheuvel@linaro.org \
--cc=drjones@redhat.com \
--cc=leif.lindholm@linaro.org \
--cc=lersek@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=wei@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 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).