From: Cornelia Huck <cohuck@redhat.com>
To: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org, fiuczy@linux.vnet.ibm.com,
bwalk@linux.vnet.ibm.com, shalini@linux.vnet.ibm.com,
pasic@linux.vnet.ibm.com, borntraeger@de.ibm.com,
qemu-s390x@nongnu.org
Subject: Re: [Qemu-devel] Questions about usability mess that caused by differentiating address based on devices types
Date: Tue, 21 Nov 2017 11:15:22 +0100 [thread overview]
Message-ID: <20171121111522.04dd2faf.cohuck@redhat.com> (raw)
In-Reply-To: <20171121065125.GG5859@bjsdjshi@linux.vnet.ibm.com>
On Tue, 21 Nov 2017 14:51:26 +0800
Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> wrote:
> * Cornelia Huck <cohuck@redhat.com> [2017-11-14 11:50:14 +0100]:
>
> Hallo Conny,
>
> After spending some time, just some updates for this one.
>
> > On Tue, 14 Nov 2017 16:25:47 +0800
> > Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> wrote:
> > > So that we can remove the restrictions for the cssid validation for each
> > > type of device. Even we could drop the s390-squash-mcss, and just allow
> > > the user to define any device in any css.
> >
> > Opening up the different csses for all devices might help, but we need
> > to be careful:
> > - We still want to keep the chpids separated. Probably not a problem
> > right now.
> > - We need to be able to point to a default css, especially as there are
> > no MCSS-E capable OSs around yet.
> > - You need to double check if there are further restrictions on the
> > allowed css ids. (I know that 0xff is reserved for special usage as
> > well; but I can't find out more.)
> > - Backwards compatibility and migration: We certainly don't want old
> > setups to break, and compat machines need to force the old scheme.
> >
> > All best tested out via a prototype :)
> >
> After a round of internal discussion, Halil now has a prototype. I think
> sooner he will post his patch with our internal agreement, and we can
> continuing talking based on that then.
Please post upstream as soon as it make sense. Makes discussion
easier :)
>
> > >
> > > 3. If we have to keep the squash property, then when squashing, it's
> > > somewhat like "I don't care for the cssid", so is it possible for us to
> > > not check the cssid in the device devno?
> > > Libvirt would be benifited with this when automatically generating the
> > > addresses.
> >
> > I think we still need to keep the squashing around for compatibility,
> > but we may be able to give it the chop for something like 3.0.
> >
> > (And we probably need to keep the existing restrictions in compat mode.)
> >
> Can we just drop the squash property, right after we opened up all the
> csses?
> We do not support LGM for vfio-ccw, and there is no libvirt user until
> now. So what else case could it be to stop us from dropping it?
IIRC, we still require a non-0xfe cssid for non-virtual devices with
the squash parameter; they are just mapped into the default css later.
Just dropping the parameter would break existing command lines, and
accepting but ignoring it makes a previously working commandline
suddenly non-working (not all devices visible to guest).
We either need to follow the proper deprecation procedure (which means
that the parameter will stay around for two releases), or kill it in a
3.0 release (if that comes earlier). But we should be able to get rid
of it at least in the long run.
> > > To sum up, we got the feeling that, this mess is not only for Libvirt
> > > but also for QEMU cmd line users. And we are wondering if there is some
> > > way to improve it.
> >
> > Using css 0xfe seems to be an idea that turned out not to be as useful
> > as we hoped it would be. Maybe the right way forward is indeed to open
> > up the csses for all devices (although there might be a case for
> > putting non-virtual devices not into 0xfe by default and instead making
> > 0 the default css).
> >
> > Another thing: Should libvirt give its users enough rope to hang
> > themselves by allowing to create domains with devices all over the
> > channel subsystem images?
> >
> I think the commit message of Halil's patch will show you the idea.
> Let's wait for some moment.
Yup, let's see what he comes up with.
prev parent reply other threads:[~2017-11-21 10:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 8:25 [Qemu-devel] Questions about usability mess that caused by differentiating address based on devices types Dong Jia Shi
2017-11-14 10:50 ` Cornelia Huck
2017-11-14 11:17 ` Christian Borntraeger
2017-11-21 6:51 ` Dong Jia Shi
2017-11-21 10:15 ` 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=20171121111522.04dd2faf.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=bjsdjshi@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=bwalk@linux.vnet.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 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.