From: Paolo Bonzini <pbonzini@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
imammedo@redhat.com, qemu-devel@nongnu.org, dgilbert@redhat.com,
Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks
Date: Wed, 07 Jan 2015 08:33:07 +0100 [thread overview]
Message-ID: <54ACE133.4080208@redhat.com> (raw)
In-Reply-To: <20141224124138.GA27854@redhat.com>
On 24/12/2014 13:41, Michael S. Tsirkin wrote:
>> I don't think these are necessary, and I thought these were just RFC
>> when they were posted. I and mst didn't really understand each other,
>> and I take the fault for not reviewing the submission; however, Peter,
>> please hold these for a little more.
>>
>> Paolo
>
> Yes, please do, I'd like Paolo to review at least the memory core
> changes.
I don't have any issue with the implementation; I'm just not sure that
this is necessary.
My point is that until ACPI tables are actually trimmed, migration
really won't be broken. So there is no need to apply these patches
until/unless we are ready to trim the tables.
Worst case, some scenarios can now print the "migration may not work"
warning if ACPI tables go from <64k to >64k. But migration actually
will work until the tables shoot beyond >128k.
The warning sucks, and the workaround we have (round to twice the
"expected" maximum size for "reasonable" VMs) is limited and hence also
sucks. But it _does_ work as a stopgap until we figure out what
migration of ACPI tables really entails.
The question then is: when should we trim the tables? Because answering
that question also answers whether we should apply your patches. My
answer to that question is "not anytime soon", perhaps 2.4 but more
likely 2.5.
For 2.3, the target should be the two other pending ACPI series that
reorganize the tables. In different and complementary ways, both
attempt at making the tables more predictable and thus mitigate or
resolve the migration problems. My patches add some separation between
"mutable" and "constant" tables. Igor's patches make "constant" tables
really constant by taking IASL out of the equation. (Note that if
useful, the C generation can also be applied to the mutable tables; it's
also possible to have a mutable SSDT and a constant one, the only
requirement for mutable tables is that their size be bounded).
I cannot of course be sure of how the ACPI tables will evolve in the
future. But we can give a try to the improvements that I and Igor
introduced for a release cycle or two. For those releases we can still
keep the 128k ACPI tables, and detect breakage using bios-tables-test.
We can improve the test to check table sizes (not contents) for a bunch
of configurations. We only need to cover edges, not paths, so it's not
hard to do.
Paolo
next prev parent reply other threads:[~2015-01-07 14:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-24 11:51 [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 1/8] cpu: add cpu_physical_memory_clear_dirty_range_nocode Michael S. Tsirkin
2015-01-07 7:16 ` Paolo Bonzini
2014-12-24 11:51 ` [Qemu-devel] [PULL 2/8] memory: add memory_region_set_size Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 3/8] exec: cpu_physical_memory_set/clear_dirty_range Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 4/8] exec: split length -> used_length/max_length Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 5/8] exec: qemu_ram_alloc_resizeable, qemu_ram_resize Michael S. Tsirkin
2015-01-07 7:18 ` Paolo Bonzini
2015-01-07 9:55 ` Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 6/8] arch_init: support resizing on incoming migration Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 7/8] memory: API to allocate resizeable RAM MR Michael S. Tsirkin
2014-12-24 11:51 ` [Qemu-devel] [PULL 8/8] acpi-build: make ROMs RAM blocks resizeable Michael S. Tsirkin
2014-12-30 13:47 ` Marcel Apfelbaum
2014-12-24 12:25 ` [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks Paolo Bonzini
2014-12-24 12:40 ` Peter Maydell
2014-12-24 12:41 ` Michael S. Tsirkin
2015-01-07 7:33 ` Paolo Bonzini [this message]
2015-01-07 10:03 ` Michael S. Tsirkin
2015-01-07 10:52 ` Paolo Bonzini
2015-01-07 12:37 ` Michael S. Tsirkin
2015-01-07 12:59 ` Paolo Bonzini
2015-01-19 14:04 ` Igor Mammedov
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=54ACE133.4080208@redhat.com \
--to=pbonzini@redhat.com \
--cc=dgilbert@redhat.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@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).