From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Halil Pasic <pasic@linux.vnet.ibm.com>,
Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>,
Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>,
Shalini Chellathurai Saroja <shalini@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, qemu-s390x@nongnu.org
Subject: Re: [Qemu-devel] [RFC PATCH 1/1] s390x/css: unresrict cssids
Date: Wed, 22 Nov 2017 13:18:12 +0100 [thread overview]
Message-ID: <20171122131812.68bf9cab.cohuck@redhat.com> (raw)
In-Reply-To: <a59023ce-931b-2c03-b877-11dfa2e4adf1@de.ibm.com>
On Tue, 21 Nov 2017 19:10:15 +0100
Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> On 11/21/2017 05:06 PM, Cornelia Huck wrote:
> > On Tue, 21 Nov 2017 15:45:17 +0100
> > Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> >
> >> On 11/21/2017 02:44 PM, Cornelia Huck wrote:
> >>> On Tue, 21 Nov 2017 12:18:25 +0100
> >>> Halil Pasic <pasic@linux.vnet.ibm.com> wrote:
> >>>
> >>> Subject: s/unresrict/unrestrict/
> >>>
> >>>> The default css 0xFE is currently restricted to virtual subchannel
> >>>> devices. The hope when the decision was made was, that non-virtual
> >>>> subchannel devices will come around when guest can exploit multiple
> >>>> channel subsystems. Since the guests generally don't do, the pain
> >>>> of the partitioned (cssid) namespace outweighs the gain.
> >>>>
> >>>> Let us remove the corresponding restrictions (virtual devices
> >>>> can be put only in 0xFE and non-virtual devices in any css except
> >>>> the 0xFE), and inform management software property on all ccw
> >>>> devices.
> >>>
> >>> I do not really like dropping the restrictions while still keeping the
> >>> default cssid as 0xfe. Putting virtual devices into css 0 seems
> >>> completely fine, but putting non-virtual devices into css 0xfe still
> >>> feels a bit wrong. What about:
> >>>
> >>> - Add a property to specify the default cssid. Compat machines use a
> >>> default cssid of 0xfe.
> >>> - Default to a cssid of 0.
> >>> - (optional) Warn when putting a non-virtual device into css 0xfe,
> >>> unless it is the default css.
> >>
> >> To make it more clear, I think the most compatible solution would be to allow
> >> vfio-ccw also in FE. (But continue to force virtual devices in FE as well).
> >> This was more or less the first proposal that we had. Then we asked ourselves
> >> why not also allow virtual devices in 0?
> >>
> >> I think your proposal of specifying a default css (and then allowing
> >> all devices in that) is actually pretty close to Halils proposal. The only
> >> difference is that Halils variant keeps fe as default css.
> >> So I think we could even combine both approaches. Use Halils patch as a base
> >> and in addition provide a way to change the default css away from fe. Have to
> >> think about that.
> >
> > If keeping the default of 0xfe makes the life of management software
> > easier, sure. As it is, we seem to be far more entrenched with
> > paravirtual devices than I had expected when I first wrote this, so
> > 0xfe might be the sensible choice even if mcss-e is available in the
> > future. In this case, I think we should lift all cssid restrictions.
>
> So basically agree with the restriction lifting, but you want to have a
> different method of telling libvirt about it?
Yes.
> [...]
> >>> This allows building a commandline in a compat machine that will not
> >>> work with old qemus, no?
> >>
> >> I think this is pretty common to have new devices and things that will not
> >> work on old QEMUs but are allowed on compat machines, e.g. virtio-gpu was
> >> added in 2.4 but
> >>
> >> [cborntra@oc7330422307 qemu]$ build/i386-softmmu/qemu-system-i386 -device virtio-gpu-pci -M pc-i440fx-2.2
> >> VNC server running on ::1:5900
> >>
> >> works fine
> >
> > It seems a bit more unexpected, though.
>
> What I understood from the CPU model discussion is, that the machine version basically sets the migration
> stream format and any "invisible" setting that the user cannot influence. But it is not there to the fence
> the user from specifying new devices or new CPU types (that the old QEMU does not know) or different
> command lines. You get a compatible machine if you specify an identical command line that will work for
> both.
So we really need a good changelog entry for that one. Mind you, I'm
not really opposed; but if a trap is there, it would be good to have at
least some signage.
> >
> > (And I'm still not quite sure how all of this interacts with the squash
> > option.)
>
> I think we should deprecate the squash option and not use it to simplify things.
I certainly want the squash option to go out when we do this. I just
was a bit unsure about any interactions, but it seems it is not really
problematic.
next prev parent reply other threads:[~2017-11-22 12:18 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-21 11:18 [Qemu-devel] [RFC PATCH 1/1] s390x/css: unresrict cssids Halil Pasic
2017-11-21 13:44 ` Cornelia Huck
2017-11-21 14:27 ` Christian Borntraeger
2017-11-21 14:45 ` Christian Borntraeger
2017-11-21 16:06 ` Cornelia Huck
2017-11-21 18:10 ` Christian Borntraeger
2017-11-22 12:18 ` Cornelia Huck [this message]
2017-11-21 15:47 ` Halil Pasic
2017-11-21 16:20 ` Cornelia Huck
2017-11-21 17:05 ` Halil Pasic
2017-11-22 12:13 ` Cornelia Huck
2017-11-22 14:45 ` Boris Fiuczynski
2017-11-22 16:25 ` Cornelia Huck
2017-11-23 13:33 ` Halil Pasic
2017-11-24 12:46 ` Cornelia Huck
2017-11-24 13:01 ` Christian Borntraeger
2017-11-24 13:27 ` Cornelia Huck
2017-11-24 14:58 ` Christian Borntraeger
2017-11-24 15:30 ` Halil Pasic
2017-11-24 16:15 ` Cornelia Huck
2017-11-24 16:39 ` Halil Pasic
2017-11-27 2:20 ` Dong Jia Shi
2017-11-27 12:58 ` Cornelia Huck
2017-11-28 2:10 ` Dong Jia Shi
2017-11-27 12:56 ` Cornelia Huck
2017-11-27 13:11 ` Halil Pasic
2017-11-27 13:19 ` Cornelia Huck
2017-11-27 14:03 ` Christian Borntraeger
2017-11-27 14:38 ` Halil Pasic
2017-11-27 14:13 ` Halil Pasic
2017-11-27 15:09 ` Boris Fiuczynski
2017-11-27 16:56 ` Cornelia Huck
2017-11-27 17:34 ` Halil Pasic
2017-11-28 2:08 ` Dong Jia Shi
2017-11-28 8:53 ` Boris Fiuczynski
2017-11-28 10:22 ` Cornelia Huck
2017-11-28 11:49 ` Boris Fiuczynski
2017-11-28 12:14 ` Cornelia Huck
2017-11-28 12:24 ` Christian Borntraeger
2017-11-28 13:17 ` Halil Pasic
2017-11-28 13:25 ` Christian Borntraeger
2017-11-28 14:01 ` Cornelia Huck
2017-11-28 14:17 ` Christian Borntraeger
2017-11-28 14:45 ` Cornelia Huck
2017-11-29 18:51 ` Christian Borntraeger
2017-11-30 9:50 ` Cornelia Huck
2017-11-30 12:09 ` Christian Borntraeger
2017-11-28 14:11 ` Halil Pasic
2017-11-23 16:09 ` Halil Pasic
2017-11-23 16:59 ` Cornelia Huck
2017-11-22 11:25 ` Shalini Chellathurai Saroja
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=20171122131812.68bf9cab.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=bjsdjshi@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=fiuczy@linux.vnet.ibm.com \
--cc=pasic@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=shalini@linux.vnet.ibm.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).