From nobody Wed Apr 26 20:50:01 2023 X-Original-To: freebsd-emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q69x411Kfz47Hct for ; Wed, 26 Apr 2023 20:50:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q69x33d8Nz4Q0m for ; Wed, 26 Apr 2023 20:50:15 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=PEZEh+ug; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::112a) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-54fb89e1666so59500147b3.3 for ; Wed, 26 Apr 2023 13:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1682542214; x=1685134214; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=P2zaddbV48G06oWm77s/OC7u9RBcdJMYPXRLkdvYqkI=; b=PEZEh+ug4HQY7/nErrmQ1uOmfczazHHwxtcaGTMF3CHORhD+LmxhnR9RTwFRGocZl4 U86Ff0oZLKkKNwugMVB+AyJEvCceBukdwOZ/TBbb6izgttefmxCRj6SE9uQqZwmzvc5H 6vQMoQ8upllzN/kfm7Y126v0o/WmxAvq9FQh8UKAPAcfJYPJ6TMKTO7fABJJ3LsliaOZ 9EUC+ZJj5UlLSs7l0bgzWSoAk+1aGCcnxbQVdgd72N5Y7ePlSuSpOodKNw8NaBYLW63P mudTeW97OR7Xqwnw8vWy2J63fUt+Nu9fzcZ0VHA8M8IxC362ymLXt2q70BvbMMM9LSzF Izsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682542214; x=1685134214; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P2zaddbV48G06oWm77s/OC7u9RBcdJMYPXRLkdvYqkI=; b=KBdcPAa+L+EUwzDyECGWRqcqYZ5JQWZ6x3Wdp6rijU8PiYKeLZKeBE8pAXNeeyPqUa ctSQo568EU4VZonjCAEQBtzM/sWjyfJaI4ysSFkhWjfkVMKr1U7ID59zqyyMSopSWfxR jqUFjEeQ0bkRNn+t+9sPWR+UrhJGfcUm3cglbs8J4MCBAa7HhGJEmjcimGA91y7HMtY/ 2mgA34gR71vTx79Jtt9oMURBVDCtyWWpDhUUcSuXXYvyYFPPwg5FKU7HOehw3KqaAoTX usuIQHYvbJi2zWvjjl3fhWXtm0C8W++aBrCKCd5uaIOqk9hbtMNPrdpoya+qU4rLxHsZ l5sQ== X-Gm-Message-State: AAQBX9cRdc0E7+NdJOYlB7HBSVUWXgE/+zpNlRDBbRakJAZRSH1uNn/I ufRG+cX3iGgBpZseku5XbR5d9w== X-Google-Smtp-Source: AKy350bNRF1vkdYnzSKNAGQiZ3frBGVgkp6oPPJXqtGlImO0iiBUj9CmYMrWanWNWpFl7GTrkat08w== X-Received: by 2002:a0d:ca92:0:b0:54e:d70a:fa5f with SMTP id m140-20020a0dca92000000b0054ed70afa5fmr13957130ywd.49.1682542214292; Wed, 26 Apr 2023 13:50:14 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id y195-20020a0dd6cc000000b0054f9a3b60a1sm4442428ywd.33.2023.04.26.13.50.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Apr 2023 13:50:13 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5529f3b8623so59485637b3.2; Wed, 26 Apr 2023 13:50:13 -0700 (PDT) X-Received: by 2002:a0d:f047:0:b0:54f:d245:a79d with SMTP id z68-20020a0df047000000b0054fd245a79dmr13738060ywe.34.1682542213350; Wed, 26 Apr 2023 13:50:13 -0700 (PDT) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> In-Reply-To: From: Tomek CEDRO Date: Wed, 26 Apr 2023 22:50:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 To: =?UTF-8?Q?Jan_Jur=C3=A1k?= Cc: Gregory Byshenk , FreeBSD Questions Mailing List , freebsd-emulation@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-1.80 / 15.00]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-emulation@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112a:from,209.85.128.175:received]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_COUNT_THREE(0.00)[4]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-emulation@freebsd.org]; TAGGED_RCPT(0.00)[]; DMARC_NA(0.00)[cedro.info]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Q69x33d8Nz4Q0m X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On Wed, Apr 26, 2023 at 10:15=E2=80=AFPM Jan Jur=C3=A1k wrote: > answer as usually late, but you can check procesor virtualisation flags w= ith command: > (..) > On Freebsd: > > egrep -woi 'vmx|ept|vpid|npt|tpr_shadow|flexpriority|vnmi|lm|aes' /var/ru= n/dmesg.boot | sort | uniq; egrep -woi 'vmx|lm|aes' /var/run/dmesg.boot | s= ort | uniq > > AES > EPT > LM > VMX > VPID > AES > LM > VMX > > 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 m= inimum 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 corr= ect acronyms. Thanks Jan.. I also found dmidecode very useful to find lots of information about the host hardware.. flags are not there.. just curious why this virtual machine in virtual machine worked on windoze o_O Handle 0x0004, DMI type 4, 42 bytes Processor Information Socket Designation: Socket 942 Type: Central Processor Family: FX Manufacturer: AMD ID: 20 0F 60 00 FF FB 8B 17 Signature: Family 21, Model 2, Stepping 0 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) HTT (Multi-threading) Version: AMD FX(tm)-8320 Eight-Core Processor Voltage: 1.4 V External Clock: 200 MHz Max Speed: 3600 MHz Current Speed: 3600 MHz Status: Populated, Enabled Upgrade: Socket AM3 L1 Cache Handle: 0x0005 L2 Cache Handle: 0x0006 L3 Cache Handle: 0x0007 Serial Number: To Be Filled By O.E.M. Asset Tag: To Be Filled By O.E.M. Part Number: To Be Filled By O.E.M. Core Count: 8 Core Enabled: 8 Thread Count: 8 Characteristics: 64-bit capable --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info