Skip to contentSkip to conversation

virtio additions

PATCH RESEND In review Dor Laor 3 participants 3 messages Dec 21, 2007 – Dec 22, 2007 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Dor Laor

author
#0 lore raw

PATCH RESEND 13/13 virtio additions

From 9f5a551d7e2a00eb019b158f8f3130e8176ec27c Mon Sep 17 00:00:00 2001
From: Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/[email protected]>
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.

---
 drivers/virtio/virtio.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/virtio/virtio.c +2 -1
index 212f4e3..05d5f62 100644
@@ -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;
 }
Signature · 7 lines
1.5.3.3


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

A message that is not in the archive (sent off-list or not yet received): 476BDB65.1090006-atKUWr5tajBWk0Htik3J/[email protected]

#2 lore raw
Quoted 4 lines · 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-atKUWr5tajBWk0Htik3J/[email protected]>
Date: Mon, 17 Dec 2007 01:40:15 +0200
Subject: [PATCH] Update all status fields on driver unload

OK, 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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#3 lore raw
In reply to Dor Laor
Quoted 4 lines · On Saturday 22 December 2007 02:27:33 Dor Laor wrote:

From 9f5a551d7e2a00eb019b158f8f3130e8176ec27c Mon Sep 17 00:00:00 2001
From: Dor Laor <[email protected]>
Date: Mon, 17 Dec 2007 01:40:15 +0200
Subject: [PATCH] Update all status fields on driver unload

OK, 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.