Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2018 16:02:45 +0300
From:      Yuri Pankov <yuripv@yuripv.net>
To:        freebsd-virtualization <freebsd-virtualization@freebsd.org>
Subject:   bhyve VM using BHYVE_UEFI.fd gets EPT violation
Message-ID:  <733a71ba-fc28-1aed-a0be-16e676e18159@yuripv.net>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--83hJCI9csgeDcJ6mq4TLLZvD2XYbaaxSu
Content-Type: multipart/mixed; boundary="R1JJ7YeE9W6ptJz2L9VvRavkIUU8ugmwz";
 protected-headers="v1"
From: Yuri Pankov <yuripv@yuripv.net>
To: freebsd-virtualization <freebsd-virtualization@freebsd.org>
Message-ID: <733a71ba-fc28-1aed-a0be-16e676e18159@yuripv.net>
Subject: bhyve VM using BHYVE_UEFI.fd gets EPT violation

--R1JJ7YeE9W6ptJz2L9VvRavkIUU8ugmwz
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Hi,

I'm taking my first steps in using bhyve, and the first showstopper
seems to be that using '-l
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd' gets me immediate
vm exit with exit_reason being 48 (EPT violation).

Relevant part of dmesg:

FreeBSD 12.0-ALPHA9 r339291 GENERIC amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on
LLVM 6.0.1)
WARNING: WITNESS option enabled, expect reduced performance.
VT(efifb): resolution 800x600
CPU: Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz (2200.04-MHz K8-class CPU)=

  Origin=3D"GenuineIntel"  Id=3D0x306e4  Family=3D0x6  Model=3D0x3e  Step=
ping=3D4

Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>

Features2=3D0x7fbee3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,S=
SSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSA=
VE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=3D0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=3D0x1<LAHF>
  Structured Extended Features=3D0x281<FSGSBASE,SMEP,ERMS>
  XSAVE Features=3D0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics
real memory  =3D 274877906944 (262144 MB)
avail memory =3D 267769249792 (255364 MB)

Simplified invocation line (I tried with a lot more options initially,
but this seems to get the same):

# bhyve -c 2 -m 2G -l
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd test
vm exit[0]
        reason          VMX
        rip             0x000000000000fff0
        inst_length     3
        status          0
        exit_reason     48 (EPT violation)
        qualification   0x0000000000000184
        inst_type               0
        inst_error              0
Abort trap

# bhyve -c 2 -m 2G -l
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd test
vm exit[0]
        reason          VMX
        rip             0x000000000000fff0
        inst_length     3
        status          0
        exit_reason     48 (EPT violation)
        qualification   0x0000000000000184
        inst_type               0
        inst_error              0
Abort trap

Any hints?


--R1JJ7YeE9W6ptJz2L9VvRavkIUU8ugmwz--

--83hJCI9csgeDcJ6mq4TLLZvD2XYbaaxSu
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE+Gq3PsPeLT4tL/9wk4vgf7Eq4WwFAlvAm3UACgkQk4vgf7Eq
4WytNwf/XbAKldbwCclDUCSb/iSzkMovhMsYCPTvWVW6EEV6n4/EPuYGt32ZKTXJ
7bb4j7c1YSNYpJ5fmNwXbSFC6ZXjY7POdJi8Yuk7T0wp1NTw41CtgmpnEVkEDghH
/Be+6bIgysuWdLQbIh5vBG4fENGnyBV1zm+2c0cKQFzSwWq9BK20mlFVawmiCKLx
JU8Fqn+meFmj2DLS/goVlvf6xoZ3AOdaQBQRpmTu5Al/lcU707Io5HO67gRIEzdB
qhkiaAnhBduuwah6KeSaBklGp83oPuNNwucWSDAUY2PdXR4mYHyR2MHVGVKDd1yu
dMVSLjUJ6+sZYsiaECqou8ZeM1wBGw==
=ow+d
-----END PGP SIGNATURE-----

--83hJCI9csgeDcJ6mq4TLLZvD2XYbaaxSu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?733a71ba-fc28-1aed-a0be-16e676e18159>