mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
MFC r196185:
Rather than replicating the maths from the kernel, use the value the kernel calculated directly as we already read it with struct vnet. This will make kvm_vnet.c more resilent in case of possible kernel changes. Reviewed by: rwatson Approved by: re (kib)
This commit is contained in:
parent
fa1decc4ad
commit
80ba674cae
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ _kvm_vnet_selectpid(kvm_t *kd, pid_t pid)
|
|||
kd->vnet_start = nl[NLIST_START_VNET].n_value;
|
||||
kd->vnet_stop = nl[NLIST_STOP_VNET].n_value;
|
||||
kd->vnet_current = (uintptr_t)prison.pr_vnet;
|
||||
kd->vnet_base = (uintptr_t)vnet.vnet_data_mem - kd->vnet_start;
|
||||
kd->vnet_base = vnet.vnet_data_base;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue