public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [Virtio-for-kvm] [PATCH 13/13] [Mostly resend] virtio additions
@ 2007-12-21 15:27 Dor Laor
       [not found] ` <476BDB65.1090006-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Dor Laor @ 2007-12-21 15:27 UTC (permalink / raw)
  To: kvm-devel, virtualization, Rusty Russell, Anthony Liguori

 From 9f5a551d7e2a00eb019b158f8f3130e8176ec27c Mon Sep 17 00:00:00 2001
From: Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
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-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
---
 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


-------------------------------------------------------------------------
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/

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

end of thread, other threads:[~2007-12-22  0:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 15:27 [Virtio-for-kvm] [PATCH 13/13] [Mostly resend] virtio additions Dor Laor
     [not found] ` <476BDB65.1090006-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-22  0:31   ` Rusty Russell

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