search for: 5ce2aa4

Displaying 14 results from an estimated 14 matches for "5ce2aa4".

2015 Mar 11
2
[PATCH] virtio: Remove virtio device during shutdown
...Remove the device in "shutdown" callback to allow device drivers clean up things. Signed-off-by: Fam Zheng <famz at redhat.com> --- drivers/virtio/virtio.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..12f1f1e 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -269,6 +269,19 @@ static int virtio_dev_remove(struct device *_d) return 0; } +static void virtio_dev_shutdown(struct device *_d) +{ + struct virtio_device *dev = dev_to_virtio(_d); + struct virtio_driver *drv = drv...
2015 Mar 11
2
[PATCH] virtio: Remove virtio device during shutdown
...Remove the device in "shutdown" callback to allow device drivers clean up things. Signed-off-by: Fam Zheng <famz at redhat.com> --- drivers/virtio/virtio.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..12f1f1e 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -269,6 +269,19 @@ static int virtio_dev_remove(struct device *_d) return 0; } +static void virtio_dev_shutdown(struct device *_d) +{ + struct virtio_device *dev = dev_to_virtio(_d); + struct virtio_driver *drv = drv...
2015 Mar 11
3
[PATCH] virtio: Remove virtio device during shutdown
...t; of the reasons for reboot is device mal-functioning. > How about we just reset devices instead? Something like > the below (untested). > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com> > > diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c > index 5ce2aa4..0769941 100644 > --- a/drivers/virtio/virtio.c > +++ b/drivers/virtio/virtio.c > @@ -269,6 +269,17 @@ static int virtio_dev_remove(struct device *_d) > return 0; > } > > +static void virtio_dev_shutdown(struct device *_d) > +{ > + struct virtio_device *dev = dev_to_...
2015 Mar 11
3
[PATCH] virtio: Remove virtio device during shutdown
...t; of the reasons for reboot is device mal-functioning. > How about we just reset devices instead? Something like > the below (untested). > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com> > > diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c > index 5ce2aa4..0769941 100644 > --- a/drivers/virtio/virtio.c > +++ b/drivers/virtio/virtio.c > @@ -269,6 +269,17 @@ static int virtio_dev_remove(struct device *_d) > return 0; > } > > +static void virtio_dev_shutdown(struct device *_d) > +{ > + struct virtio_device *dev = dev_to_...
2015 Apr 01
1
[PATCH v3 2/6] virtio: balloon might not be a legacy device
...ice support to balloon driver, so we don't need to black-list it in core anymore. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_l...
2015 Apr 01
1
[PATCH v3 2/6] virtio: balloon might not be a legacy device
...ice support to balloon driver, so we don't need to black-list it in core anymore. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_l...
2015 Mar 11
0
[PATCH] virtio: Remove virtio device during shutdown
...ill cause more hangs on shutdown: one of the reasons for reboot is device mal-functioning. How about we just reset devices instead? Something like the below (untested). Signed-off-by: Michael S. Tsirkin <mst at redhat.com> diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..0769941 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -269,6 +269,17 @@ static int virtio_dev_remove(struct device *_d) return 0; } +static void virtio_dev_shutdown(struct device *_d) +{ + struct virtio_device *dev = dev_to_virtio(_d); + /* + * Reset the device to mak...
2015 Mar 31
0
[PATCH v2 2/6] virtio: balloon might not be a legacy device
...ice support to balloon driver, so we don't need to black-list it in core anymore. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_l...
2015 Mar 11
0
[PATCH] virtio: Remove virtio device during shutdown
...ill cause more hangs on shutdown: one of the reasons for reboot is device mal-functioning. How about we just reset devices instead? Something like the below (untested). Signed-off-by: Michael S. Tsirkin <mst at redhat.com> diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..0769941 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -269,6 +269,17 @@ static int virtio_dev_remove(struct device *_d) return 0; } +static void virtio_dev_shutdown(struct device *_d) +{ + struct virtio_device *dev = dev_to_virtio(_d); + /* + * Reset the device to mak...
2015 Mar 31
0
[PATCH v2 2/6] virtio: balloon might not be a legacy device
...ice support to balloon driver, so we don't need to black-list it in core anymore. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_l...
2015 Mar 12
0
[PATCH] virtio: Remove virtio device during shutdown
...ice mal-functioning. > > How about we just reset devices instead? Something like > > the below (untested). > > > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com> > > > > diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c > > index 5ce2aa4..0769941 100644 > > --- a/drivers/virtio/virtio.c > > +++ b/drivers/virtio/virtio.c > > @@ -269,6 +269,17 @@ static int virtio_dev_remove(struct device *_d) > > return 0; > > } > > > > +static void virtio_dev_shutdown(struct device *_d) > > +{ &g...
2015 Mar 12
0
[PATCH] virtio: Remove virtio device during shutdown
...ice mal-functioning. > > How about we just reset devices instead? Something like > > the below (untested). > > > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com> > > > > diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c > > index 5ce2aa4..0769941 100644 > > --- a/drivers/virtio/virtio.c > > +++ b/drivers/virtio/virtio.c > > @@ -269,6 +269,17 @@ static int virtio_dev_remove(struct device *_d) > > return 0; > > } > > > > +static void virtio_dev_shutdown(struct device *_d) > > +{ &g...
2015 Mar 30
10
[PATCH 0/6] virtio_balloon: virtio 1 support
Virtio 1.0 doesn't include a modern balloon device. At some point we'll likely define an incompatible interface with a different ID. But for now, it's not a big change to support a transitional balloon device: this has the advantage of supporting existing drivers, transparently. The only issue is with the stats buffer, which has misaligned fields. Seems easy to fix by prepending a 6
2015 Mar 30
10
[PATCH 0/6] virtio_balloon: virtio 1 support
Virtio 1.0 doesn't include a modern balloon device. At some point we'll likely define an incompatible interface with a different ID. But for now, it's not a big change to support a transitional balloon device: this has the advantage of supporting existing drivers, transparently. The only issue is with the stats buffer, which has misaligned fields. Seems easy to fix by prepending a 6