diff options
author | Roger Pau Monné <royger@FreeBSD.org> | 2015-08-21 15:53:08 +0000 |
---|---|---|
committer | Roger Pau Monné <royger@FreeBSD.org> | 2015-08-21 15:53:08 +0000 |
commit | f8f1bb83f78e8a2b7f4f10432882c39bbd7952fb (patch) | |
tree | b9a2f09cf466dd32614dc7bf3758010301028efb /sys/xen/xen-os.h | |
parent | b005264e84b9d14838c0f7e85760b4e3a8a32f06 (diff) | |
download | src-f8f1bb83f78e8a2b7f4f10432882c39bbd7952fb.tar.gz src-f8f1bb83f78e8a2b7f4f10432882c39bbd7952fb.zip |
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
Notes
Notes:
svn path=/head/; revision=286999
Diffstat (limited to 'sys/xen/xen-os.h')
-rw-r--r-- | sys/xen/xen-os.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/xen/xen-os.h b/sys/xen/xen-os.h index 7ceef4f1c5ae..ab594d437058 100644 --- a/sys/xen/xen-os.h +++ b/sys/xen/xen-os.h @@ -56,6 +56,9 @@ extern start_info_t *HYPERVISOR_start_info; /* XXX: we need to get rid of this and use HYPERVISOR_start_info directly */ extern char *console_page; +extern int xen_disable_pv_disks; +extern int xen_disable_pv_nics; + enum xen_domain_type { XEN_NATIVE, /* running on bare hardware */ XEN_PV_DOMAIN, /* running in a PV domain */ |