version 1.122, 2016/12/20 16:32:10
|
version 1.123, 2016/12/20 16:53:40
|
Line 27 code for Xen and need not be aware that
|
Line 27 code for Xen and need not be aware that
|
Attempts to access hardware registers are trapped and emulated. This |
Attempts to access hardware registers are trapped and emulated. This |
style is less efficient but can run unmodified guests. |
style is less efficient but can run unmodified guests. |
|
|
Generally any amd64 machine will work with Xen and PV guests. In |
Generally any machine that runs NetBSD/amd64 will work with Xen and PV |
theory i386 computers without amd64 support can be used for Xen <= |
guests. In theory i386 computers (without x86_64/amd64 support) can |
4.2, but we have no recent reports of this working (this is a hint). |
be used for Xen <= 4.2, but we have no recent reports of this working |
For HVM guests, hardware support is needed, but it is common on recent |
(this is a hint). For HVM guests, hardware support is needed, but it |
machines. For Intel CPUs, one needs the VT-x extension, shown in |
is common on recent machines. For Intel CPUs, one needs the VT-x |
"cpuctl identify 0" as VMX. For AMD CPus, one needs the AMD-V |
extension, shown in "cpuctl identify 0" as VMX. For AMD CPUs, one |
extensions, shown in "cpuctl identify 0" as SVM. There are further |
needs the AMD-V extensions, shown in "cpuctl identify 0" as SVM. |
features for IOMMU virtualization, Intel's VT-d and AMD's AMD-Vi. |
There are further features for IOMMU virtualization, Intel's VT-d and |
TODO: Explain whether Xen on NetBSD makes use of these features. |
AMD's AMD-Vi. TODO: Explain whether Xen on NetBSD makes use of these |
TODO: Review by someone who really understands this. |
features. TODO: Review by someone who really understands this. |
|
|
Note a FreeBSD dom0 requires VT-x and VT-d (or equivalent); this is |
Note that a FreeBSD dom0 requires VT-x and VT-d (or equivalent); this |
because the FreeBSD dom0 does not run in PV mode. |
is because the FreeBSD dom0 does not run in PV mode. |
|
|
At boot, the dom0 kernel is loaded as a module with Xen as the kernel. |
At boot, the dom0 kernel is loaded as a module with Xen as the kernel. |
The dom0 can start one or more domUs. (Booting is explained in detail |
The dom0 can start one or more domUs. (Booting is explained in detail |
Line 51 attempts to address both the case of run
|
Line 51 attempts to address both the case of run
|
and running domUs under it (NetBSD and other), and also running NetBSD |
and running domUs under it (NetBSD and other), and also running NetBSD |
as a domU in a VPS. |
as a domU in a VPS. |
|
|
Some versions of Xen support "PCI passthrough", which means that |
Xen 3.1 in pkgsrc supports "PCI passthrough", which means that |
specific PCI devices can be made available to a specific domU instead |
specific PCI devices can be made available to a specific domU instead |
of the dom0. This can be useful to let a domU run X11, or access some |
of the dom0. This can be useful to let a domU run X11, or access some |
network interface or other peripheral. |
network interface or other peripheral. |
Line 69 things must be done, guiding the reader
|
Line 69 things must be done, guiding the reader
|
path when there are no known good reasons to stray. |
path when there are no known good reasons to stray. |
|
|
This HOWTO presumes a basic familiarity with the Xen system |
This HOWTO presumes a basic familiarity with the Xen system |
architecture. This HOWTO presumes familiarity with installing NetBSD |
architecture, with installing NetBSD on i386/amd64 hardware, and with |
on i386/amd64 hardware and installing software from pkgsrc. |
installing software from pkgsrc. See also the [Xen |
See also the [Xen website](http://www.xenproject.org/). |
website](http://www.xenproject.org/). |
|
|
Versions of Xen and NetBSD |
Versions of Xen and NetBSD |
========================== |
========================== |