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:
Bjoern A. Zeeb 2009-08-13 15:02:02 +00:00
parent fa1decc4ad
commit 80ba674cae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=196188

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