File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -568,6 +568,7 @@ let unplugged_vif = {
568
568
plugged = false ;
569
569
kthread_pid = 0 ;
570
570
media_present = false ;
571
+ device = None ;
571
572
}
572
573
573
574
let unplugged_vgpu = {
Original file line number Diff line number Diff line change @@ -2590,11 +2590,14 @@ module VIF = struct
2590
2590
from xenstore. The corrolary is that: only when the device
2591
2591
is finally deleted from xenstore, can we remove bridges or
2592
2592
switch configuration. *)
2593
+ let domid = d.Device_common. frontend.Device_common. domid in
2594
+ let device = " vif" ^ (string_of_int domid) ^ " ." ^ (string_of_int vif.position) in
2593
2595
{
2594
2596
Vif. active = true ;
2595
2597
plugged = true ;
2596
2598
media_present = true ;
2597
- kthread_pid = kthread_pid
2599
+ kthread_pid = kthread_pid;
2600
+ device = Some device
2598
2601
}
2599
2602
with
2600
2603
| (Does_not_exist (_,_))
Original file line number Diff line number Diff line change @@ -1651,11 +1651,14 @@ module VIF = struct
1651
1651
from xenstore. The corrolary is that: only when the device
1652
1652
is finally deleted from xenstore, can we remove bridges or
1653
1653
switch configuration. *)
1654
+ let domid = d.Device_common. frontend.Device_common. domid in
1655
+ let device = " vif" ^ (string_of_int domid) ^ " ." ^ (string_of_int vif.position) in
1654
1656
{
1655
1657
Vif. active = true ;
1656
1658
plugged = true ;
1657
1659
media_present = true ;
1658
- kthread_pid = kthread_pid
1660
+ kthread_pid = kthread_pid;
1661
+ device = Some device
1659
1662
}
1660
1663
with
1661
1664
| (Does_not_exist (_,_))
You can’t perform that action at this time.
0 commit comments