public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices
       [not found] <1427884468-23930-1-git-send-email-mst@redhat.com>
@ 2015-04-01 10:35 ` Michael S. Tsirkin
  2015-04-01 10:40   ` [virtio-dev] " Christian Borntraeger
  0 siblings, 1 reply; 4+ messages in thread
From: Michael S. Tsirkin @ 2015-04-01 10:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: Cornelia Huck, Pawel Moll, virtio-dev, Christian Borntraeger,
	linux390, Martin Schwidefsky, Heiko Carstens, linux-s390

virtio_device_is_legacy_only is always false now,
drop the test from virtio ccw.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 drivers/s390/kvm/virtio_ccw.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c
index 71d7802..6f1fa17 100644
--- a/drivers/s390/kvm/virtio_ccw.c
+++ b/drivers/s390/kvm/virtio_ccw.c
@@ -1201,13 +1201,9 @@ static int virtio_ccw_online(struct ccw_device *cdev)
 	vcdev->vdev.id.vendor = cdev->id.cu_type;
 	vcdev->vdev.id.device = cdev->id.cu_model;
 
-	if (virtio_device_is_legacy_only(vcdev->vdev.id)) {
-		vcdev->revision = 0;
-	} else {
-		ret = virtio_ccw_set_transport_rev(vcdev);
-		if (ret)
-			goto out_free;
-	}
+	ret = virtio_ccw_set_transport_rev(vcdev);
+	if (ret)
+		goto out_free;
 
 	ret = register_virtio_device(&vcdev->vdev);
 	if (ret) {
-- 
MST

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [virtio-dev] [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices
  2015-04-01 10:35 ` [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices Michael S. Tsirkin
@ 2015-04-01 10:40   ` Christian Borntraeger
  2015-04-01 11:55     ` Cornelia Huck
  2015-04-14  1:09     ` Rusty Russell
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Borntraeger @ 2015-04-01 10:40 UTC (permalink / raw)
  To: Michael S. Tsirkin, linux-kernel
  Cc: Cornelia Huck, Pawel Moll, virtio-dev, linux390,
	Martin Schwidefsky, Heiko Carstens, linux-s390

Am 01.04.2015 um 12:35 schrieb Michael S. Tsirkin:
> virtio_device_is_legacy_only is always false now,
> drop the test from virtio ccw.

Can you add the commit subject of patch2 here as a
prereq for this patch? This will hopefully avoid 
backport issues on distros that want to take this
patch but not the other for whatever reasons.


this patch is then.
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>


> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  drivers/s390/kvm/virtio_ccw.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c
> index 71d7802..6f1fa17 100644
> --- a/drivers/s390/kvm/virtio_ccw.c
> +++ b/drivers/s390/kvm/virtio_ccw.c
> @@ -1201,13 +1201,9 @@ static int virtio_ccw_online(struct ccw_device *cdev)
>  	vcdev->vdev.id.vendor = cdev->id.cu_type;
>  	vcdev->vdev.id.device = cdev->id.cu_model;
> 
> -	if (virtio_device_is_legacy_only(vcdev->vdev.id)) {
> -		vcdev->revision = 0;
> -	} else {
> -		ret = virtio_ccw_set_transport_rev(vcdev);
> -		if (ret)
> -			goto out_free;
> -	}
> +	ret = virtio_ccw_set_transport_rev(vcdev);
> +	if (ret)
> +		goto out_free;
> 
>  	ret = register_virtio_device(&vcdev->vdev);
>  	if (ret) {
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [virtio-dev] [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices
  2015-04-01 10:40   ` [virtio-dev] " Christian Borntraeger
@ 2015-04-01 11:55     ` Cornelia Huck
  2015-04-14  1:09     ` Rusty Russell
  1 sibling, 0 replies; 4+ messages in thread
From: Cornelia Huck @ 2015-04-01 11:55 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Michael S. Tsirkin, linux-kernel, Pawel Moll, virtio-dev,
	linux390, Martin Schwidefsky, Heiko Carstens, linux-s390

On Wed, 01 Apr 2015 12:40:10 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> Am 01.04.2015 um 12:35 schrieb Michael S. Tsirkin:
> > virtio_device_is_legacy_only is always false now,
> > drop the test from virtio ccw.
> 
> Can you add the commit subject of patch2 here as a
> prereq for this patch? This will hopefully avoid 
> backport issues on distros that want to take this
> patch but not the other for whatever reasons.

Seconded.

> 
> 
> this patch is then.
> Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>

> 
> 
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > ---
> >  drivers/s390/kvm/virtio_ccw.c | 10 +++-------
> >  1 file changed, 3 insertions(+), 7 deletions(-)

Michael, I assume you would take this patch through your tree?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [virtio-dev] [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices
  2015-04-01 10:40   ` [virtio-dev] " Christian Borntraeger
  2015-04-01 11:55     ` Cornelia Huck
@ 2015-04-14  1:09     ` Rusty Russell
  1 sibling, 0 replies; 4+ messages in thread
From: Rusty Russell @ 2015-04-14  1:09 UTC (permalink / raw)
  To: Christian Borntraeger, Michael S. Tsirkin, linux-kernel
  Cc: Cornelia Huck, Pawel Moll, virtio-dev, linux390,
	Martin Schwidefsky, Heiko Carstens, linux-s390

Christian Borntraeger <borntraeger@de.ibm.com> writes:
> Am 01.04.2015 um 12:35 schrieb Michael S. Tsirkin:
>> virtio_device_is_legacy_only is always false now,
>> drop the test from virtio ccw.
>
> Can you add the commit subject of patch2 here as a
> prereq for this patch? This will hopefully avoid 
> backport issues on distros that want to take this
> patch but not the other for whatever reasons.

I changed commit wording to:

As of last patch, virtio_device_is_legacy_only is always false,
drop the test from virtio ccw.

That should be clear to anyone seeking -stable patches.

Thanks,
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-14  1:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1427884468-23930-1-git-send-email-mst@redhat.com>
2015-04-01 10:35 ` [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices Michael S. Tsirkin
2015-04-01 10:40   ` [virtio-dev] " Christian Borntraeger
2015-04-01 11:55     ` Cornelia Huck
2015-04-14  1:09     ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox