Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2012 20:12:50 +0400
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: BHyVe: vm_setup_memory(highmem): Cannot allocate memory
Message-ID:  <20120913161247.GA1671@kloomba>
In-Reply-To: <504E779A.4020006@freebsd.org>
References:  <20120815155222.GA46502@kloomba> <20120819191127.GA1733@kloomba> <5031C58C.40108@freebsd.org> <20120820133613.GA1701@kloomba> <50324270.9040504@freebsd.org> <20120902164750.GA3721@kloomba> <20120902165648.GB3721@kloomba> <CAPS9%2BStBftj=q7cki8i%2BRpQmTvU9hKpS4w8aqDCqHSAnx-eSow@mail.gmail.com> <20120909182811.GB8000@kloomba> <504E779A.4020006@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Peter Grehan wrote:

> Hi Roman,
>=20
> > I start a VM like that:
> >
> > sudo /usr/sbin/bhyveload -m 256 -M 0 -h /var/run/bhyve/test1/vm1 test1
> > sudo /usr/bin/cpuset -l 0-3 /usr/sbin/bhyve -m 256 -M 0 -s 1,virtio-net=
,tap0 test1
> >
> > The last commands give me:
> >
> > Failed to emulate instruction at 0xffffffff80594f3a
> >
> > What could be wrong with that?
>=20
>   Was this during boot or later ? Do you have a console log up to where=
=20
> it occurred ?

Hm, I see strange things happening.

When I was seing this 'Failed to emulate instruction at
0xffffffff80594f3a', it happened right after boot loader menu (the one
with the ascii-art). At that time I had 'hw.physmem=3D"0x180000000"' in my
host's loader.conf. Also the problem wasn't 100% reproducible, it
started to show up after creating/destroying several VMs.

I replaced the physmem value with hw.physmem=3D"0x100000000". Now I have
100% reproducibility and it fails here:

GDB: debug ports: bvm
GDB: current port: bvm
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
(20:06) novel@kloomba:~/bhyve/vm1 %>

I can still see this VM in /dev/vmm though.

Roman Bogorodskiy

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iQEcBAEBAgAGBQJQUgX/AAoJEMltX/4IwiJqAJMIAJkwEtmafqfxhsMH1esvJAOU
Qgln1RvMc3zvuXNIfV0VFmdGqMQFsSSqMbqhuL0t9tCDAdRCQ2Ciy5cIkh/RcbFY
FF69HTWrd67pFLYhfFbblnDTMKoOcAEsmxwuHgWUBoK2GvysP+9sjV139jrVwMfm
UlzxP7xcUVdvsxkQN2bCK7ghD/31ZVSCn+FsXokeCm8Y6dKiTmLLUz42VQbz3ZB1
/0YW0y7bf3lypKZZIUGhtojtVBrUKY4Mw7MGAxFRaTRfqVO8jptby0pdNNSX3fmX
1Qv+PpRiyJgXkapA83DQqaDfP2mXlt8fYc0fZFdnKdD3KZEnKwcRe+/RC5+j3WQ=
=yv4F
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120913161247.GA1671>