Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2015 11:32:09 -0600
From:      John Nielsen <lists@jnielsen.net>
To:        "C. L. Martinez" <carlopmart@gmail.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: AMD processors supported under bhyve
Message-ID:  <C3215157-DBDD-416D-8F7F-B730D911A7ED@jnielsen.net>
In-Reply-To: <CAEjQA5L7mT2Pu1wKz%2BozmwCcU3AyrGdJbs2vBQkg1hWBD4GLwg@mail.gmail.com>
References:  <CAEjQA5LJvSqfQhoY73eoCgwkGaEhm6G%2B9JCQ-1htrA9-yDO6Mw@mail.gmail.com> <CACLnyC%2BvZ%2BerO4WaPTTWGvdysDSR2DabSAehboZY5LMadrSq%2BQ@mail.gmail.com> <CAEjQA5%2BhycVhpGdGi9C-PwL7a_fCtVx=k_g3sLGd8nS5wP_TbQ@mail.gmail.com> <CAEjQA5KovvUvd2k1Gw4%2BfB_Z-D4qCgSxXZ=c_U6Z3PeBWgBfSQ@mail.gmail.com> <CAEjQA5L7mT2Pu1wKz%2BozmwCcU3AyrGdJbs2vBQkg1hWBD4GLwg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 30, 2015, at 11:22 AM, C. L. Martinez <carlopmart@gmail.com> =
wrote:

> On Wed, Sep 30, 2015 at 4:54 PM, C. L. Martinez <carlopmart@gmail.com> =
wrote:
>> On Tue, Sep 29, 2015 at 11:03 AM, C. L. Martinez =
<carlopmart@gmail.com> wrote:
>>> On Tue, Sep 29, 2015 at 10:43 AM, Jason Tubnor <jason@tubnor.net> =
wrote:
>>>> On 29 September 2015 at 20:07, C. L. Martinez =
<carlopmart@gmail.com> wrote:
>>>>>=20
>>>>> Hi all,
>>>>>=20
>>>>> Maybe a stupid question, but are AMD processors supported under
>>>>> FreeBSD 10.2-STABLE for bhyve or are they only supported under
>>>>> 11-CURRENT?
>>>>=20
>>>>=20
>>>> 10.2-RELEASE is the first release to contain AMD support =
(10.1-STABLE did
>>>> have support however).  11-CURRENT obviously supports it and is =
where you'll
>>>> find all the latest patches/fixes when reports are made.  I use =
TrueOS
>>>> monthly 11-CURRENT snapshots specifically for this reason (and to =
have
>>>> binary updates).
>>>=20
>>>=20
>>> Thanks Jason... My idea is to use or FreeBSD or HardenedBSD for this
>>> host, and if I have problems maybe I will try TrueOS ...
>>=20
>> Uhmm I am installing 10.2-STABLE and I am seeing the following error:
>>=20
>> module_register_init: MOD_LOAD (vmm, 0xffffffff81d914b0, 0) error 6
>>=20
>> Does this means AMD is not supported yet or what??
>=20
> Uhmm .. It seems it doesn't works. When I try to launch a FreeBSD
> guest install with vmrun.sh script:
>=20
> root@tstbhyve:/usr/share/examples/bhyve # sh
> /usr/share/examples/bhyve/vmrun.sh -c 1 -m 512M -t tap0 -d
> /dev/zvol/zroot/export/vmachines/fbsddnssrv -i -I
> /export/isoimages/FreeBSD-10.2-RELEASE-amd64-disc1.iso fbsddnssrv
> Launching virtual machine "fbsddnssrv" ...
> vm_create: Device not configured
> root@tstbhyve:/usr/share/examples/bhyve #
>=20
> dmesg out about this processor:
>=20
> [1] CPU: Quad-Core AMD Opteron(tm) Processor 1354 (2200.04-MHz =
K8-class CPU)
> [1]   Origin=3D"AuthenticAMD"  Id=3D0x100f23  Family=3D0x10  Model=3D0x2=
  Stepping=3D3
> [1]   =
Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
> [1]   Features2=3D0x802009<SSE3,MON,CX16,POPCNT>
> [1]   AMD =
Features=3D0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNo=
w!>
> [1]   AMD =
Features2=3D0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS=
>
> [1]   SVM: NP,NAsids=3D64
> [1]   TSC: P-state invariant
>=20
> As you can see, virtualization support is enabled: "AMD
> =
Features2=3D0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS=
>=E2=80=9D

While your processor has SVM, it does not have the NRIP feature which is =
also required by bhyve. See e.g. =
http://svnweb.freebsd.org/base?view=3Drevision&revision=3D272926 . That =
is why the VMM module wouldn=E2=80=99t load successfully.

See the =E2=80=9CSVM=E2=80=9D line in your dmesg output above, versus =
this one from a Phenom II X4 (which is running 10-STABLE with bhyve VMs =
successfully):
  SVM: NP,NRIP,NAsids=3D64

JN




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C3215157-DBDD-416D-8F7F-B730D911A7ED>