1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

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:
Bjoern A. Zeeb 2009-08-13 14:59:04 +00:00
parent abd370a36b
commit 87a61ebd4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196185

View File

@ -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);
}