]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
make sure we don't do process event for others VMs' devices.
authorVincent Hanquez <vincent.hanquez@eu.citrix.com>
Wed, 8 Apr 2009 11:58:09 +0000 (12:58 +0100)
committerVincent Hanquez <vincent.hanquez@eu.citrix.com>
Wed, 8 Apr 2009 11:58:09 +0000 (12:58 +0100)
xenvm/xenvm.ml

index d484f338e8eb7ba2bdc90e4ea10631c950f6843a..4430c5f3d591e996335a82e2589f439c81cd0a2a 100644 (file)
@@ -327,6 +327,7 @@ let events state =
                                Device.Generic.rm_device_state ~xs device;
                        )
                        in
+               if state.vm_domid = id then (
                debug "xal device callback device (domid = %d, state domid = %d) event: %s" id state.vm_domid (Xal.string_of_dev_event dev_event);
                match dev_event with
                | Xal.HotplugChanged (true, "vif", devid, oldextra, newextra) ->
@@ -368,6 +369,7 @@ let events state =
                        ) disk;
                | _ ->
                        ()
+               )
                in
 
        while true