Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/xenops_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ let unplugged_vif = {
plugged = false;
kthread_pid = 0;
media_present = false;
device = None;
}

let unplugged_vgpu = {
Expand Down
5 changes: 4 additions & 1 deletion xc/xenops_server_xen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2590,11 +2590,14 @@ module VIF = struct
from xenstore. The corrolary is that: only when the device
is finally deleted from xenstore, can we remove bridges or
switch configuration. *)
let domid = d.Device_common.frontend.Device_common.domid in
let device = "vif" ^ (string_of_int domid) ^ "." ^ (string_of_int vif.position) in
{
Vif.active = true;
plugged = true;
media_present = true;
kthread_pid = kthread_pid
kthread_pid = kthread_pid;
device = Some device
}
with
| (Does_not_exist(_,_))
Expand Down
5 changes: 4 additions & 1 deletion xl/xenops_server_xenlight.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1651,11 +1651,14 @@ module VIF = struct
from xenstore. The corrolary is that: only when the device
is finally deleted from xenstore, can we remove bridges or
switch configuration. *)
let domid = d.Device_common.frontend.Device_common.domid in
let device = "vif" ^ (string_of_int domid) ^ "." ^ (string_of_int vif.position) in
{
Vif.active = true;
plugged = true;
media_present = true;
kthread_pid = kthread_pid
kthread_pid = kthread_pid;
device = Some device
}
with
| (Does_not_exist(_,_))
Expand Down