]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen: allow disabling PV disks and nics
authorRoger Pau Monné <royger@FreeBSD.org>
Fri, 21 Aug 2015 15:53:08 +0000 (15:53 +0000)
committerRoger Pau Monné <royger@FreeBSD.org>
Fri, 21 Aug 2015 15:53:08 +0000 (15:53 +0000)
commitf8f1bb83f78e8a2b7f4f10432882c39bbd7952fb
treeb9a2f09cf466dd32614dc7bf3758010301028efb
parentb005264e84b9d14838c0f7e85760b4e3a8a32f06
xen: allow disabling PV disks and nics

Introduce two new loader tunnables that can be used to disable PV disks and
PV nics at boot time. They default to 0 and should be set to 1 (or any
number different than 0) in order to disable the PV devices:

hw.xen.disable_pv_disks=1
hw.xen.disable_pv_nics=1

In /boot/loader.conf will disable both PV disks and nics.

Sponsored by: Citrix Systems R&D
Tested by: Karl Pielorz <kpielorz_lst@tdx.co.uk>
MFC after: 1 week
sys/dev/xen/blkfront/blkfront.c
sys/dev/xen/netfront/netfront.c
sys/x86/xen/hvm.c
sys/xen/xen-os.h