Am Donnerstag, 22. Mai 2008 schrieb Rusty Russell:

> virtio: S/390 set name of virtio devices directly.
> 
> Chris has a patch 'Fix silly output for virtio devices in /proc/interrupts'
> which requires callers to the virtio driver infrastructure to set the 
bus_ids
> themselves.  This does that for s/390.
> 
> Signed-off-by: Rusty Russell <[EMAIL PROTECTED]>
> Cc: Christian Borntraeger <[EMAIL PROTECTED]>
> Cc: Martin Schwidefsky <[EMAIL PROTECTED]>
> Cc: Carsten Otte <[EMAIL PROTECTED]>
> Cc: Heiko Carstens <[EMAIL PROTECTED]>
> Cc: Chris Lalancette <[EMAIL PROTECTED]>
> ---
>  drivers/s390/kvm/kvm_virtio.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff -r c903ef6b391f drivers/s390/kvm/kvm_virtio.c
> --- a/drivers/s390/kvm/kvm_virtio.c   Thu May 22 22:31:31 2008 +1000
> +++ b/drivers/s390/kvm/kvm_virtio.c   Thu May 22 22:32:55 2008 +1000
> @@ -265,6 +265,8 @@ static void add_kvm_device(struct kvm_de
>  
>       kdev->vdev.dev.parent = &kvm_root;
>       kdev->vdev.index = dev_index++;
> +     snprintf(kdev->vdev.dev.bus_id, BUS_ID_SIZE, "virtio%d",
> +              kdev->vdev.index);
>       kdev->vdev.id.device = d->type;
>       kdev->vdev.config = &kvm_vq_configspace_ops;
>       kdev->desc = d;
> 
> 

Tested-by: Christian Borntraeger <[EMAIL PROTECTED]>
Acked-by: Christian Borntraeger <[EMAIL PROTECTED]>

This will probably create a fuzzy hunk with another patch from Cornelia Huck 
(CCed) which will be send to Gregs tree soon. This patch converts kvm_root to 
dynamic allocation, but the fuzz will be easy to fix.

Christian
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to