Date: Wed, 26 Apr 2023 22:14:51 +0200 From: =?UTF-8?Q?Jan_Jur=C3=A1k?= <yan.jurak@gmail.com> To: Tomek CEDRO <tomek@cedro.info> Cc: Gregory Byshenk <freebsd@byshenk.net>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>, freebsd-emulation@freebsd.org Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 Message-ID: <CABiV=xtLaCDGqQTKEhK8hNiAr3TAfnv9KtYDh4zWh9dmqM7Qaw@mail.gmail.com> In-Reply-To: <CAFYkXjmitPpWWRTSAxUVLf7gQNM2iDiNSYFoHkQ_tNK-s5foJg@mail.gmail.com> References: <CAFYkXjng502kFLCuzEepo1dWSF7w-oo2nJagoKh5ShSiR8n3jQ@mail.gmail.com> <CAFYkXjkFEh6r%2B%2BiE7GmQuaxUN6LJvYM13ttnp1tHW-22bugGHw@mail.gmail.com> <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> <CAFYkXjnS5Ln=QDQADHv8%2B07NsaKwgamhSkb8qFDERg8RQz0-ZQ@mail.gmail.com> <zmood3bqlrxenkekdyffsufoxw4iazqvwp6upz5jqy4n2pacm3@4qhgwvam4j2x> <CAFYkXjkys2g2mfd4PP4LWWXBq5ccSmk%2BSGwOYyAUqreS8=wmCw@mail.gmail.com> <ZEk7lyQtOVvIgUs9@v1.leiden.byshenk.net> <CAFYkXjmitPpWWRTSAxUVLf7gQNM2iDiNSYFoHkQ_tNK-s5foJg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009b674605fa42e6b1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable hi, answer as usually late, but you can check procesor virtualisation flags with command: For Linux:egrep -wo 'vmx|ept|vpid|npt|tpr_shadow|flexpriority|vnmi|lm|aes' /proc/cpuinfo | sort | uniq; egrep -wo 'vmx|lm|aes' /proc/cpuinfo | sort | uniq | sed -e 's/aes/Hardware encryption=3DYes (&)/g' -e 's/lm/64 bit cpu=3DYes (&)/g' -e 's/vmx/Intel hardware virtualization=3DYes (&)/g'aeseptflexprioritylmtpr_shadowvmxvnmivpidHardware encryption=3DYes (aes)64 bit cpu=3DYes (lm)Intel hardware virtualization=3DYes (vmx)On Freebsd:egrep -woi 'vmx|ept|vpid|npt|tpr_shadow|flexpriority|vnmi|lm|aes' /var/run/dmesg.boot | sort | uniq; egrep -woi 'vmx|lm|aes' /var/run/dmesg.boot | sort | uniqAESEPTLMVMXVPIDAESLMVMX this is for intel, amd has it's own implementation for bot. Basically *VMX* is minimum, the extended page support - *EPT *is second most important not minimum but most modern hypervisors like bhyve also need this one. i believe for amd you are looking for *AMD-v* *SVM *but rather verify if correct acronyms. i believe Many Regards Jan Jur=C3=A1k On Wed, Apr 26, 2023 at 7:52=E2=80=AFPM Tomek CEDRO <tomek@cedro.info> wrot= e: > On Wed, Apr 26, 2023 at 4:56=E2=80=AFPM Gregory Byshenk wrote: > > On Mon, Apr 24, 2023 at 11:53:02AM +0200, Tomek CEDRO wrote: > > > Thanks Pete, this is my main question if bhyve / vbox / kernel > > > supports it at all :-) > > > > From my experience it does. > > Some time back I upgraded the CPUs on an HP Z800 because the > > original ones did not support VT-D. Then I had to enable that > > in the BIOS. > > But afterwards I was able to run a rancher cluster under bhyve > > to play with. it was only a toy, but it worked. > > Thank you Greg. I see no Virtualization settings in my BIOS. Probably > the hardware is too old for that and need an upgrade after 10 years > :-) Thank you for the confirmation! :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > > --0000000000009b674605fa42e6b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:trebuche= t ms,sans-serif">hi,</div><div class=3D"gmail_default" style=3D"font-family= :trebuchet ms,sans-serif"><br></div><div class=3D"gmail_default" style=3D"f= ont-family:trebuchet ms,sans-serif">answer as usually late, but you can che= ck procesor virtualisation flags with command:</div><div class=3D"gmail_def= ault" style=3D"font-family:trebuchet ms,sans-serif"> <pre class=3D"gmail-code_syntax" style=3D"color:rgb(48,53,112);background:r= gb(245,245,245)"><span class=3D"gmail-line_wrapper">For Linux<span style=3D= "color:rgb(222,184,135);font-weight:bold">:</span></span> <span class=3D"gmail-line_wrapper"></span> <span class=3D"gmail-line_wrapper">egrep -wo <span style=3D"color:rgb(64,13= 2,255)">'vmx|ept|vpid|npt|tpr_shadow|flexpriority|vnmi|lm|aes'</spa= n> <span style=3D"color:rgb(0,120,176);font-weight:bold">/proc/cpuinfo</spa= n> <span style=3D"color:rgb(218,112,214);font-weight:bold;font-style:itali= c">|</span> <span style=3D"color:rgb(0,168,188)">sort</span> <span style=3D= "color:rgb(218,112,214);font-weight:bold;font-style:italic">|</span> <span = style=3D"color:rgb(0,168,188)">uniq</span><span style=3D"color:rgb(250,128,= 114);font-weight:bold">;</span> egrep -wo <span style=3D"color:rgb(64,132,2= 55)">'vmx|lm|aes'</span> <span style=3D"color:rgb(0,120,176);font-w= eight:bold">/proc/cpuinfo</span> <span style=3D"color:rgb(218,112,214);font= -weight:bold;font-style:italic">|</span> <span style=3D"color:rgb(0,168,188= )">sort</span> <span style=3D"color:rgb(218,112,214);font-weight:bold;font-= style:italic">|</span> <span style=3D"color:rgb(0,168,188)">uniq</span> <sp= an style=3D"color:rgb(218,112,214);font-weight:bold;font-style:italic">|</s= pan> <span style=3D"color:rgb(0,168,188)">sed</span> <span style=3D"color:r= gb(222,184,135)">-e</span> <span style=3D"color:rgb(64,132,255)">'</spa= n><span style=3D"color:rgb(0,191,255)">s</span><span style=3D"color:rgb(250= ,128,114)">/</span><span style=3D"color:rgb(64,132,255)">aes</span><span st= yle=3D"color:rgb(250,128,114)">/</span><span style=3D"color:rgb(64,132,255)= ">Hardware encryption=3DYes (&)</span><span style=3D"color:rgb(250,128,= 114)">/</span><span style=3D"color:rgb(0,191,255)">g</span><span style=3D"c= olor:rgb(64,132,255)">'</span> <span style=3D"color:rgb(222,184,135)">-= e</span> <span style=3D"color:rgb(64,132,255)">'</span><span style=3D"c= olor:rgb(0,191,255)">s</span><span style=3D"color:rgb(250,128,114)">/</span= ><span style=3D"color:rgb(64,132,255)">lm</span><span style=3D"color:rgb(25= 0,128,114)">/</span><span style=3D"color:rgb(64,132,255)">64 bit cpu=3DYes = (&)</span><span style=3D"color:rgb(250,128,114)">/</span><span style=3D= "color:rgb(0,191,255)">g</span><span style=3D"color:rgb(64,132,255)">'<= /span> <span style=3D"color:rgb(222,184,135)">-e</span> <span style=3D"colo= r:rgb(64,132,255)">'</span><span style=3D"color:rgb(0,191,255)">s</span= ><span style=3D"color:rgb(250,128,114)">/</span><span style=3D"color:rgb(64= ,132,255)">vmx</span><span style=3D"color:rgb(250,128,114)">/</span><span s= tyle=3D"color:rgb(64,132,255)">Intel hardware virtualization=3DYes (&)<= /span><span style=3D"color:rgb(250,128,114)">/</span><span style=3D"color:r= gb(0,191,255)">g</span><span style=3D"color:rgb(64,132,255)">'</span></= span> <span class=3D"gmail-line_wrapper"></span> <span class=3D"gmail-line_wrapper">aes</span> <span class=3D"gmail-line_wrapper">ept</span> <span class=3D"gmail-line_wrapper">flexpriority</span> <span class=3D"gmail-line_wrapper">lm</span> <span class=3D"gmail-line_wrapper">tpr_shadow</span> <span class=3D"gmail-line_wrapper">vmx</span> <span class=3D"gmail-line_wrapper">vnmi</span> <span class=3D"gmail-line_wrapper">vpid</span> <span class=3D"gmail-line_wrapper">Hardware <span style=3D"color:rgb(24,144= ,96)">encryption</span><span style=3D"color:rgb(222,184,135);font-weight:bo= ld">=3D</span>Yes <span style=3D"color:rgb(250,128,114);font-weight:bold">(= </span>aes<span style=3D"color:rgb(250,128,114);font-weight:bold">)</span><= /span> <span class=3D"gmail-line_wrapper"><span style=3D"color:rgb(102,205,170);fo= nt-weight:bold">64</span> bit <span style=3D"color:rgb(24,144,96)">cpu</spa= n><span style=3D"color:rgb(222,184,135);font-weight:bold">=3D</span>Yes <sp= an style=3D"color:rgb(250,128,114);font-weight:bold">(</span>lm<span style= =3D"color:rgb(250,128,114);font-weight:bold">)</span></span> <span class=3D"gmail-line_wrapper">Intel hardware <span style=3D"color:rgb(= 24,144,96)">virtualization</span><span style=3D"color:rgb(222,184,135);font= -weight:bold">=3D</span>Yes <span style=3D"color:rgb(250,128,114);font-weig= ht:bold">(</span>vmx<span style=3D"color:rgb(250,128,114);font-weight:bold"= >)</span></span> <span class=3D"gmail-line_wrapper"></span> <span class=3D"gmail-line_wrapper"></span> <span class=3D"gmail-line_wrapper">On Freebsd<span style=3D"color:rgb(222,1= 84,135);font-weight:bold">:</span></span> <span class=3D"gmail-line_wrapper"></span> <span class=3D"gmail-line_wrapper">egrep -woi <span style=3D"color:rgb(64,1= 32,255)">'vmx|ept|vpid|npt|tpr_shadow|flexpriority|vnmi|lm|aes'</sp= an> <span style=3D"color:rgb(0,120,176);font-weight:bold">/var/run/dmesg.bo= ot</span> <span style=3D"color:rgb(218,112,214);font-weight:bold;font-style= :italic">|</span> <span style=3D"color:rgb(0,168,188)">sort</span> <span st= yle=3D"color:rgb(218,112,214);font-weight:bold;font-style:italic">|</span> = <span style=3D"color:rgb(0,168,188)">uniq</span><span style=3D"color:rgb(25= 0,128,114);font-weight:bold">;</span> egrep -woi <span style=3D"color:rgb(6= 4,132,255)">'vmx|lm|aes'</span> <span style=3D"color:rgb(0,120,176)= ;font-weight:bold">/var/run/dmesg.boot</span> <span style=3D"color:rgb(218,= 112,214);font-weight:bold;font-style:italic">|</span> <span style=3D"color:= rgb(0,168,188)">sort</span> <span style=3D"color:rgb(218,112,214);font-weig= ht:bold;font-style:italic">|</span> <span style=3D"color:rgb(0,168,188)">un= iq</span></span> <span class=3D"gmail-line_wrapper"></span> <span class=3D"gmail-line_wrapper">AES</span> <span class=3D"gmail-line_wrapper">EPT</span> <span class=3D"gmail-line_wrapper">LM</span> <span class=3D"gmail-line_wrapper">VMX</span> <span class=3D"gmail-line_wrapper">VPID</span> <span class=3D"gmail-line_wrapper">AES</span> <span class=3D"gmail-line_wrapper">LM</span> <span class=3D"gmail-line_wrapper">VMX</span></pre></div><br><div class=3D"= gmail_default" style=3D"font-family:trebuchet ms,sans-serif">this is for in= tel, amd has it's own implementation for bot. Basically <b>VMX</b> is m= inimum, the extended page support - <b>EPT </b>is second most important not= minimum but most modern hypervisors like bhyve also need this one.</div><d= iv class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif"><b= r></div><div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans= -serif">i believe for amd you are looking for <b>AMD-v</b> <b>SVM </b>but r= ather verify if correct acronyms.<br></div><div class=3D"gmail_default" sty= le=3D"font-family:trebuchet ms,sans-serif"><br></div><div class=3D"gmail_de= fault" style=3D"font-family:trebuchet ms,sans-serif">i believe <br></div><d= iv class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif"></= div><div><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail= _signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Many Regards<b= r></div><div dir=3D"ltr">Jan Jur=C3=A1k<br></div></div></div></div></div></= div></div><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Wed, Apr 26, 2023 at 7:52=E2=80=AFPM Tomek CEDRO <<a = href=3D"mailto:tomek@cedro.info">tomek@cedro.info</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Apr 26, 2023 at 4:= 56=E2=80=AFPM Gregory Byshenk=C2=A0 wrote:<br> > On Mon, Apr 24, 2023 at 11:53:02AM +0200, Tomek CEDRO wrote:<br> > > Thanks Pete, this is my main question if bhyve / vbox / kernel<br= > > > supports it at all :-)<br> ><br> > From my experience it does.<br> > Some time back I upgraded the CPUs on an HP Z800 because the<br> > original ones did not support VT-D. Then I had to enable that<br> > in the BIOS.<br> > But afterwards I was able to run a rancher cluster under bhyve<br> > to play with. it was only a toy, but it worked.<br> <br> Thank you Greg. I see no Virtualization settings in my BIOS. Probably<br> the hardware is too old for that and need an upgrade after 10 years<br> :-) Thank you for the confirmation! :-)<br> <br> -- <br> CeDeROM, SQ7MHZ, <a href=3D"http://www.tomek.cedro.info" rel=3D"noreferrer"= target=3D"_blank">http://www.tomek.cedro.info</a><br> <br> </blockquote></div> --0000000000009b674605fa42e6b1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABiV=xtLaCDGqQTKEhK8hNiAr3TAfnv9KtYDh4zWh9dmqM7Qaw>