qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Greg Kurz <groug@kaod.org>
Cc: "Laurent Vivier" <lvivier@redhat.com>,
	"Lukáš Doktor" <ldoktor@redhat.com>,
	"Juan Quintela" <quintela@redhat.com>,
	qemu-devel@nongnu.org,
	"Dr . David Alan Gilbert" <dgilbert@redhat.com>,
	qemu-ppc@nongnu.org, clg@kaod.org
Subject: Re: [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel
Date: Tue, 19 Nov 2019 12:00:12 +1100	[thread overview]
Message-ID: <20191119010012.GI5582@umbus.fritz.box> (raw)
In-Reply-To: <20191108174759.2d4040f1@bahia.lan>

[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]

On Fri, Nov 08, 2019 at 05:47:59PM +0100, Greg Kurz wrote:
> On Fri,  8 Nov 2019 16:40:35 +0100
> Laurent Vivier <lvivier@redhat.com> wrote:
> 
> > Commit 29cb4187497d sets by default the VSMT to smp_threads,
> > but older kernels (< 4.13) don't support that.
> > 
> > We can reasonably restore previous behavior with this kernel
> > to allow to run QEMU as before.
> > 
> > If VSMT is not supported, VSMT will be set to MAX(8, smp_threads)
> > as it is done for previous machine types (< pseries-4.2)
> > 
> 
> It is usually _bad_ to base the machine behavior on host capabilities.
> What happens if we migrate between an older kernel and a recent one ?

Right.  We're really trying to remove instaces of such behaviour.  I'd
prefer to completely revert Greg's original patch than to re-introduce
host configuration dependency into the guest configuration..

> I understand this is to fix tests/migration-test on older kernels.
> Couldn't this be achieved with migration-test doing some introspection
> and maybe pass vsmt=8 on the QEMU command line ?

..adjusting the test case like this might be a better idea, though.

What's the test setup where we're using the old kernel?  I really only
applied the original patch on the guess that we didn't really care
about kernels that old.  The fact you've hit this in practice makes me
doubt that assumption.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2019-11-19  1:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 15:40 [PATCH] spapr: Fix VSMT mode when it is not supported by the kernel Laurent Vivier
2019-11-08 16:47 ` Greg Kurz
2019-11-08 17:03   ` Laurent Vivier
2019-11-08 17:23     ` Greg Kurz
2019-11-19  1:00   ` David Gibson [this message]
2019-11-19 14:06     ` Laurent Vivier
2019-11-19 15:45       ` Greg Kurz
2019-11-19 16:13         ` Lukáš Doktor
2019-11-20  4:39           ` David Gibson
2019-11-20  4:36         ` David Gibson
2019-11-20  7:49           ` Greg Kurz
2019-11-20  9:00           ` Laurent Vivier
2019-11-20 11:28             ` Laurent Vivier
2019-11-20 11:41               ` David Gibson
2019-11-20 11:58                 ` Laurent Vivier
2019-11-20 14:28                 ` Laurent Vivier
2019-11-21  2:02                   ` David Gibson
2019-11-20 12:47               ` Greg Kurz
2019-11-20 13:35                 ` Laurent Vivier

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=20191119010012.GI5582@umbus.fritz.box \
    --to=david@gibson.dropbear.id.au \
    --cc=clg@kaod.org \
    --cc=dgilbert@redhat.com \
    --cc=groug@kaod.org \
    --cc=ldoktor@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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).