All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: "Lukáš Doktor" <ldoktor@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Janosch Frank" <frankja@linux.ibm.com>,
	"David Hildenbrand" <david@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	"Dr . David Alan Gilbert" <dgilbert@redhat.com>,
	"Halil Pasic" <pasic@linux.ibm.com>,
	qemu-s390x <qemu-s390x@nongnu.org>,
	"Igor Mammedov" <imammedo@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>
Subject: Re: [PATCH v2] vl/s390: fixup ram sizes for compat machines
Date: Wed, 1 Apr 2020 13:12:43 +0200	[thread overview]
Message-ID: <20200401131243.14125f37.cohuck@redhat.com> (raw)
In-Reply-To: <9f64cfb4-df6d-f43e-034c-f4e18a372e06@de.ibm.com>

On Wed, 1 Apr 2020 13:01:43 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> On 01.04.20 12:13, Cornelia Huck wrote:
> > On Wed,  1 Apr 2020 04:50:14 -0400
> > Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> >   
> >> Older QEMU versions did fixup the ram size to match what can be reported
> >> via sclp. We need to mimic this behaviour for machine types 4.2 and
> >> older to not fail on inbound migration for memory sizes that do not fit.
> >> Old machines with proper aligned memory sizes are not affected.
> >>
> >> Alignment table:
> >>  VM size (<=) | Alignment
> >> --------------------------
> >>       1020M   |     1M
> >>       2040M   |     2M
> >>       4080M   |     4M
> >>       8160M   |     8M
> >>      16320M   |    16M
> >>      32640M   |    32M
> >>      65280M   |    64M
> >>     130560M   |   128M
> >>     261120M   |   256M
> >>     522240M   |   512M
> >>    1044480M   |     1G
> >>    2088960M   |     2G
> >>    4177920M   |     4G
> >>    8355840M   |     8G
> >>
> >> Suggested action is to replace unaligned -m value with a suitable  
> > 
> > "to replace any unaligned -m value" ?
> >   
> >> aligned one or to use a machine version >= 5.0 as future versions might
> >> remove the compatibility handling.  
> > 
> > I'm confused by the second part of the sentence. Warning about possible
> > future removal of the compat stuff is fine, but I don't understand the
> > suggestion to use a machine type >= 5.0. If I create a new machine that
> > does not need be migrated to an old QEMU, using the latest machine type
> > always seems like the best idea, right? And for a migration target it's
> > not like we can choose the version freely anyway.  
> 
> 
> My point was that - when you redefine your guest, which is disruptive anyway
> you could also change the machine version to 5.0 and keep the strange memory
> size.

Ah, ok. That depends however on whether you still need compatibility,
so it might not be advisable. What about:

"...or to switch to a machine version >= 5.0 if migration to older
machine types is not needed; future versions might remove the
compatibility handling."

?



      reply	other threads:[~2020-04-01 11:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01  8:50 [PATCH v2] vl/s390: fixup ram sizes for compat machines Christian Borntraeger
2020-04-01  8:58 ` David Hildenbrand
2020-04-01 11:55   ` Christian Borntraeger
2020-04-01 12:04     ` David Hildenbrand
2020-04-01 12:07       ` Cornelia Huck
2020-04-01 10:13 ` Cornelia Huck
2020-04-01 11:01   ` Christian Borntraeger
2020-04-01 11:12     ` Cornelia Huck [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=20200401131243.14125f37.cohuck@redhat.com \
    --to=cohuck@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=david@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=imammedo@redhat.com \
    --cc=ldoktor@redhat.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=rth@twiddle.net \
    --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.