From owner-freebsd-current@freebsd.org Mon Dec 10 00:20:48 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C332F130B015 for ; Mon, 10 Dec 2018 00:20:48 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 24F9585134 for ; Mon, 10 Dec 2018 00:20:48 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: by mail-pf1-f182.google.com with SMTP id c72so4496363pfc.6 for ; Sun, 09 Dec 2018 16:20:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9X2JpYHKM4jbl9yI6Z0Q8u7L3g/vKhRd4ghKZN2JZbQ=; b=XNG+6J3QXACdRtZi0tzCWk7i9CQLYwbrTI0RhYvOiA58PDZ0htcy5LLxmpFe+ixdYg T5qB4tAQAqe71qBjwmMaLJRr4CjJiDtqYzzQDY1wUi4WyVwSnzFAgijt27U6pI90lwlY quW9Nzlm1d6tyUYdCCQPVIwjNynIJufptvR8vqYkjqBUYcSlWPM5gRdB3qBwTPtWfuio Ve+kxnzDI3k+ERc+JDLE28HjJagwd3ccREAPwYFB0zB28m31z/t9E+3lggTKWJwyveah 4gSR6OYFPhXF1yRVl3W1qWlwSDPhGrp07ULN1/LZ8N5esCUna2qgNKOnlawr/KPHfikn Tfyg== X-Gm-Message-State: AA+aEWZG1rjKfxxpQV7FsWSyX+PQWuk6Tn7+juv5SBF+m5gecGpA915q WUKa3zm7ms3EwadpUJvs39ptWzcE X-Google-Smtp-Source: AFSGD/XdDYwNgQ+sogIWTWa/6gdUp6+gBiHxx7dLL168HnWUCAZ2zwrIxUN3aU1EZvMwkJq+oq2GAA== X-Received: by 2002:a63:3e05:: with SMTP id l5mr8353675pga.96.1544397573375; Sun, 09 Dec 2018 15:19:33 -0800 (PST) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com. [209.85.215.170]) by smtp.gmail.com with ESMTPSA id o84sm14723671pfi.172.2018.12.09.15.19.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Dec 2018 15:19:32 -0800 (PST) Received: by mail-pg1-f170.google.com with SMTP id w6so4078684pgl.6 for ; Sun, 09 Dec 2018 15:19:32 -0800 (PST) X-Received: by 2002:a63:111c:: with SMTP id g28mr8882504pgl.85.1544397572376; Sun, 09 Dec 2018 15:19:32 -0800 (PST) MIME-Version: 1.0 References: <015e28d3-3c6f-b5f3-b41a-5f6d367dddbb@yuripv.net> In-Reply-To: <015e28d3-3c6f-b5f3-b41a-5f6d367dddbb@yuripv.net> From: Chuck Tuffli Date: Sun, 9 Dec 2018 15:18:58 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: nda(4) does not work (reliably) in VMware Workstation To: yuripv@yuripv.net Cc: freebsd-current@freebsd.org Content-Type: multipart/mixed; boundary="000000000000b1b872057c9f145f" X-Rspamd-Queue-Id: 24F9585134 X-Spamd-Result: default: False [-3.72 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[182.210.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_BASE64_TEXT(0.10)[]; NEURAL_HAM_SHORT(-0.93)[-0.933,0]; FORGED_SENDER(0.30)[chuck@freebsd.org,ctuffli@gmail.com]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[chuck@freebsd.org,ctuffli@gmail.com]; MIME_UNKNOWN(0.10)[text/x-patch]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[182.210.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.98)[ipnet: 209.85.128.0/17(-3.52), asn: 15169(-1.30), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2018 00:20:49 -0000 --000000000000b1b872057c9f145f Content-Type: text/plain; charset="UTF-8" On Sat, Dec 8, 2018 at 12:28 PM Yuri Pankov wrote: > Hi, > > Running -HEAD in VMware Workstation 15.0.2 VM. Trying to use nda(4) > instead of nvd(4) shows the following list of errors, and eventually > panics: > > https://people.freebsd.org/~yuripv/nda1.png > https://people.freebsd.org/~yuripv/nda2.png > > nvd(4) works without issues in this VM. nda(4) works as well in VMware > ESXi VMs. Is this a problem with WS NVMe emulation? > Since I don't have access to ESXi, the attached is a speculative fix. If it works, I'll clean this up a bit and get it committed. If not, please post the output from: nvmecontrol identtify nvme0 --chuck --000000000000b1b872057c9f145f Content-Type: text/x-patch; charset="US-ASCII"; name="nda_vmware.patch" Content-Disposition: attachment; filename="nda_vmware.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jphiel8y0 ZGlmZiAtciAxZmJiMjAyNWIyNjMgc3lzL2NhbS9udm1lL252bWVfZGEuYwotLS0gYS9zeXMvY2Ft L252bWUvbnZtZV9kYS5jCVN1biBEZWMgMDkgMjE6NTM6NDUgMjAxOCArMDAwMAorKysgYi9zeXMv Y2FtL252bWUvbnZtZV9kYS5jCVN1biBEZWMgMDkgMTU6MTg6MDggMjAxOCAtMDgwMApAQCAtNzk4 LDcgKzc5OCw3IEBACiAJZGlzay0+ZF9tZWRpYXNpemUgPSAob2ZmX3QpKGRpc2stPmRfc2VjdG9y c2l6ZSAqIG5zZC0+bnN6ZSk7CiAJZGlzay0+ZF9kZWxtYXhzaXplID0gZGlzay0+ZF9tZWRpYXNp emU7CiAJZGlzay0+ZF9mbGFncyA9IERJU0tGTEFHX0RJUkVDVF9DT01QTEVUSU9OOwotLy8JaWYg KGNkLT5vbmNzLmRzbSkgLy8gWFhYIGJyb2tlbj8KKwlpZiAoKGNkLT5vbmNzID4+IE5WTUVfQ1RS TFJfREFUQV9PTkNTX0RTTV9TSElGVCkgJiBOVk1FX0NUUkxSX0RBVEFfT05DU19EU01fTUFTSykK IAkJZGlzay0+ZF9mbGFncyB8PSBESVNLRkxBR19DQU5ERUxFVEU7CiAJdndjX3ByZXNlbnQgPSAo Y2QtPnZ3YyA+PiBOVk1FX0NUUkxSX0RBVEFfVldDX1BSRVNFTlRfU0hJRlQpICYKIAkJTlZNRV9D VFJMUl9EQVRBX1ZXQ19QUkVTRU5UX01BU0s7Cg== --000000000000b1b872057c9f145f--