All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>,
	Halil Pasic <pasic@linux.vnet.ibm.com>
Cc: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>,
	Christian Borntraeger <borntraeger@de.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 17:25:22 +0100	[thread overview]
Message-ID: <20171122172522.281cfb4b.cohuck@redhat.com> (raw)
In-Reply-To: <594e1952-7097-0927-d913-d3b915df2305@linux.vnet.ibm.com>

On Wed, 22 Nov 2017 15:45:56 +0100
Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> wrote:

> On 11/22/2017 01:13 PM, Cornelia Huck wrote:
> >>>>>> +    object_class_property_add_bool(klass, "cssid-unrestricted",
> >>>>>> +                                   prop_get_true, NULL, NULL);  
> >>>>> This looks really, really strange. This is a property that is always
> >>>>> true if it exists.
> >>>>>        
> >>>> Won't argue about that. The libvirt guys are actually not interested
> >>>> int he value at all: only that there is such a property.  
> >>> So what about a machine property? Wouldn't that help as well?
> >>>      
> >> Technically it is doable. The property would be still a weird
> >> one, but from QEMU perspective in a less weird place. I was also
> >> arguing that from OO perspective this kind of a don't care about
> >> it's value property is weird, but AFAIK not having the info if
> >> we can do something with a device at the device is weird from
> >> Libvirt perspective. I'm really uncomforble with speaking for
> >> Libvirt/Boris. Hope he will make his point tomorrow.
> >>  
> >>> Or a css object?
> >>>      
> >> My first internal-only version used this approach, but
> >> I was asked to do it like this.  
> > If we formulate this rather as "we now expose the default css", we (a)
> > have something that really makes the most sense at a channel subsystem
> > or machine level, and (b) can be detected by libvirt as an indicator of
> > "no restriction for virtual vs. non-virtual".  
> 
> I think that there are good reasons for using a device property as well 
> as for using a machine property. Technically both options are possible 
> (even for libvirt :) without too much rope...). At first my personal 
> choice was to express the changed behavior/capability on the device 
> level since that is what a user defines on the command line and also 
> where he gets restricted to use a css matching his device type.
>  From the libvirt perspective we would have supported vfio-ccw devices 
> only if the vfio-ccw would be allowed to be defined with unrestricted 
> cssids.

Thanks, I can now understand where that property came from.

> As I wrote before I also understand the reasoning to express the channel 
> subsystem wide changed behavior as a machine option. In that case 
> libvirt would need to check that both capabilities (vfio-ccw and machine 
> option cssid-unrestricted) are set and not just 
> vfio-cww.cssid-unrestricted. All doable. A qemu command line user would 
> obviously need to know the correlation of the machine option and the ccw 
> devices but that certainly is also nothing new.
> When talking to Christian and Halil I started to favor the idea of a new 
> css object especially when thinking about the future in which the user 
> might want to specify the default css. It for sure would also be able to 
> be set with the use of a machine option but a css object would at that 
> point be much a nicer and more capable approach. What do you think?

I think exposing the css object and making the default_css property
available is the cleanest solution (especially if we want more css
properties in the future). The only drawback I see is that it needs
more coding (and probably care to keep it backwards compatible.)

Halil, do you think you can come up with something?

  reply	other threads:[~2017-11-22 16:25 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
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 [this message]
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=20171122172522.281cfb4b.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 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.