Dor Laor
2007-Dec-21 07:27 UTC
[kvm-devel] [Virtio-for-kvm] [PATCH 13/13] [Mostly resend] virtio additions
From 9f5a551d7e2a00eb019b158f8f3130e8176ec27c Mon Sep 17 00:00:00 2001
From: Dor Laor <dor.laor@qumranet.com>
Date: Mon, 17 Dec 2007 01:40:15 +0200
Subject: [PATCH] Update all status fields on driver unload
Both VIRTIO_CONFIG_S_DRIVER and VIRTIO_CONFIG_S_DRIVER_OK should
be cleaned upon driver unload.
Signed-off-by: Dor Laor <dor.laor@qumranet.com>
---
drivers/virtio/virtio.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 212f4e3..05d5f62 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -103,7 +103,8 @@ static int virtio_dev_remove(struct device *_d)
struct virtio_driver, driver);
dev->config->set_status(dev, dev->config->get_status(dev)
- & ~VIRTIO_CONFIG_S_DRIVER);
+ & ~(VIRTIO_CONFIG_S_DRIVER |
+ VIRTIO_CONFIG_S_DRIVER_OK));
drv->remove(dev);
return 0;
}
--
1.5.3.3
Rusty Russell
2007-Dec-21 16:31 UTC
[kvm-devel] [Virtio-for-kvm] [PATCH 13/13] [Mostly resend] virtio additions
On Saturday 22 December 2007 02:27:33 Dor Laor wrote:> From 9f5a551d7e2a00eb019b158f8f3130e8176ec27c Mon Sep 17 00:00:00 2001 > From: Dor Laor <dor.laor@qumranet.com> > Date: Mon, 17 Dec 2007 01:40:15 +0200 > Subject: [PATCH] Update all status fields on driver unloadOK, looks like I missed the last 4 patches. I've applied them to my tree, will push that out after some basic testing... Thanks, Rusty.
Seemingly Similar Threads
- [kvm-devel] [Virtio-for-kvm] [PATCH 13/13] [Mostly resend] virtio additions
- [kvm-devel] [Virtio-for-kvm] [PATCH 12/13] [Mostly resend] virtio additions
- [kvm-devel] [Virtio-for-kvm] [PATCH 12/13] [Mostly resend] virtio additions
- [kvm-devel] [Virtio-for-kvm] [PATCH 10/13] [Mostly resend] virtio additions
- [kvm-devel] [Virtio-for-kvm] [PATCH 10/13] [Mostly resend] virtio additions