From: Shalini Chellathurai Saroja <shalini@linux.vnet.ibm.com>
To: Halil Pasic <pasic@linux.vnet.ibm.com>,
Cornelia Huck <cohuck@redhat.com>
Cc: qemu-devel@nongnu.org,
Christian Borntraeger <borntraeger@de.ibm.com>,
qemu-s390x@nongnu.org,
Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>,
Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH 2/3] s390x/css: advertise unrestricted cssids
Date: Tue, 5 Dec 2017 18:28:47 +0100 [thread overview]
Message-ID: <27f5a0c3-755a-bd1b-11b5-d7a73808d1de@linux.vnet.ibm.com> (raw)
In-Reply-To: <f237126d-0815-8433-6ef7-1c1ba2e5a956@linux.vnet.ibm.com>
On 12/04/2017 04:07 PM, Halil Pasic wrote:
>
> On 12/04/2017 12:15 PM, Cornelia Huck wrote:
>> On Fri, 1 Dec 2017 15:31:35 +0100
>> Halil Pasic <pasic@linux.vnet.ibm.com> wrote:
>>
>>> Let us advertise the changes introduced by "s390x/css: unrestrict cssids"
>>> to the management software (so it can tell are cssids unrestricted or
>>> restricted).
>>>
>>> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
>>> ---
>>>
>>> Boris says having the property on the virtual-css-bridge is good form
>>> Libvirt PoV. @Shalini: could you verify that things work out fine
>>> (provided we get at least a preliminary blessing from Connie).
>>>
>>> Consider squashing into "s390x/css: unrestrict cssids".
>>> ---
>>> hw/s390x/css-bridge.c | 11 +++++++++++
>>> 1 file changed, 11 insertions(+)
>>>
>>> diff --git a/hw/s390x/css-bridge.c b/hw/s390x/css-bridge.c
>>> index c4a9735d71..c7e8998680 100644
>>> --- a/hw/s390x/css-bridge.c
>>> +++ b/hw/s390x/css-bridge.c
>>> @@ -123,6 +123,11 @@ static Property virtual_css_bridge_properties[] = {
>>> DEFINE_PROP_END_OF_LIST(),
>>> };
>>>
>>> +static bool prop_get_true(Object *obj, Error **errp)
>>> +{
>>> + return true;
>>> +}
>>> +
>>> static void virtual_css_bridge_class_init(ObjectClass *klass, void *data)
>>> {
>>> HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass);
>>> @@ -131,6 +136,12 @@ static void virtual_css_bridge_class_init(ObjectClass *klass, void *data)
>>> hc->unplug = ccw_device_unplug;
>>> set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
>>> dc->props = virtual_css_bridge_properties;
>>> + object_class_property_add_bool(klass, "cssid-unrestricted",
>>> + prop_get_true, NULL, NULL);
>>> + object_class_property_set_description(klass, "cssid-unrestricted",
>>> + "A css device can use any cssid, regardless whether virtual"
>> extra space -----------------------------^
>>
> Nod.
>
>>> + " or not (read only, always true)",
> Do we need "." here ----------------------------^ ?
>
>>> + NULL);
>>> }
>>>
>>> static const TypeInfo virtual_css_bridge_info = {
>> Looks reasonable. If this works as expected, I'll squash it into the
>> previous patch.
>>
> I've just asked Shalini to verify the libvirt perspective.
Verified. The patch works as expected.
>
> Supposed we verify this works as expected, I read I don't have to spin
> a v2 and you are going to fix the issues found yourself. Right?
next prev parent reply other threads:[~2017-12-05 17:29 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 14:31 [Qemu-devel] [PATCH 0/3] unrestrict cssids related patches Halil Pasic
2017-12-01 14:31 ` [Qemu-devel] [PATCH 1/3] s390x/css: unrestrict cssids Halil Pasic
2017-12-04 11:10 ` Cornelia Huck
2017-12-04 11:18 ` Christian Borntraeger
2017-12-04 15:02 ` Halil Pasic
2017-12-04 16:05 ` Cornelia Huck
2017-12-05 5:46 ` Dong Jia Shi
2017-12-01 14:31 ` [Qemu-devel] [PATCH 2/3] s390x/css: advertise unrestricted cssids Halil Pasic
2017-12-04 11:14 ` Christian Borntraeger
2017-12-04 11:15 ` Cornelia Huck
2017-12-04 15:07 ` Halil Pasic
2017-12-04 16:07 ` Cornelia Huck
2017-12-04 16:19 ` Halil Pasic
2017-12-05 5:49 ` Dong Jia Shi
2017-12-05 17:28 ` Shalini Chellathurai Saroja [this message]
2017-12-06 9:00 ` Cornelia Huck
2017-12-06 10:50 ` Halil Pasic
2017-12-05 8:28 ` [Qemu-devel] [qemu-s390x] " Thomas Huth
2017-12-05 10:08 ` Halil Pasic
2017-12-05 12:42 ` Cornelia Huck
2017-12-05 15:25 ` Thomas Huth
2017-12-01 14:31 ` [Qemu-devel] [PATCH 3/3] s390x: deprecate s390-squash-mcss machine prop Halil Pasic
2017-12-04 11:28 ` Cornelia Huck
2017-12-04 15:32 ` Halil Pasic
2017-12-04 16:11 ` Cornelia Huck
2017-12-05 7:43 ` Dong Jia Shi
2017-12-05 7:48 ` Dong Jia Shi
2017-12-05 12:13 ` Halil Pasic
2017-12-12 14:05 ` Dong Jia Shi
2017-12-12 14:20 ` Cornelia Huck
2017-12-05 8:41 ` [Qemu-devel] [qemu-s390x] " Thomas Huth
2017-12-05 12:05 ` Halil Pasic
2017-12-05 12:59 ` Cornelia Huck
2017-12-05 14:54 ` Eric Blake
2017-12-05 15:21 ` Halil Pasic
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=27f5a0c3-755a-bd1b-11b5-d7a73808d1de@linux.vnet.ibm.com \
--to=shalini@linux.vnet.ibm.com \
--cc=bjsdjshi@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=fiuczy@linux.vnet.ibm.com \
--cc=pasic@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
/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).