From owner-freebsd-fs@freebsd.org Sat Sep 2 12:40:25 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E27FDE11505 for ; Sat, 2 Sep 2017 12:40:25 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A75231870; Sat, 2 Sep 2017 12:40:25 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id c13so4882098itb.0; Sat, 02 Sep 2017 05:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FtePJdYfCuJJbr7WdYt6lQjkfFxQ/NLeB7+00YOvuoc=; b=pvYXMEYeAUI45X4kPvH8QudXLUOi9LoDOfo8/evNmz67vyXXhoexMvRND6xk0+OKr/ 5hb31ktCp9qBsZK21PZrKnOgk/vbPJK4UCRGRNTt/3FFwuHAPSjwYgtlLpYOUJCGOgwh +p/sokodJK3HuRBOE1q3We8FOfuEMWDI6JnPTFZErz32Cw9/mNFamCVXjLrOCi0XShsD pXjv95GDgWC0idznWY+I9T1upqdq3alPaF82l6rnouCRoBrfoJ7D8Gbf+Bjzsy5+35x/ uA3c0hWBGted0+UuqSwVQr+vhR4QEELMETRNixUFnKI+YW41Mt8TR9D42/S8/qR9PDFp YsvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FtePJdYfCuJJbr7WdYt6lQjkfFxQ/NLeB7+00YOvuoc=; b=UpdAsSOswHxrNvhXBhy2umvFL9S3XedvvICyTUb4LMBI/CQkkck+AUtMSQKFK5X17E RVpOK+Kgp0982TCA6OKL2CZ1v1wITtl3Tnp7toAGEIcjYpE30tEBUbMOic4gSYXg+brK PvzP09qlKAAxnpknn//FlMsDpxLw/AYSy+KBVk9g8jRRDHw/UHN95tVTa6mhCHA+hN7u n0kDIfwaavoTB+TsvCJyvMSPmiyAG3R0FUzntQZQ+EN1cJG7Wfr5y9XHDetpfn5JSl/p WnmpdtUhJKi+87GkYx4PJpyoyDYWepJX3hnbYuD2iS3iBjuwAdy+fKKQ2EXYuYElvIx7 fkEg== X-Gm-Message-State: AHPjjUi4kwlvLn7pYcyXjFBGuvKgP12bX0qKcB928+8HF7O+eA+YHSHf PtneRGgT18C8MjhESoKZBhbAnUJpPQ== X-Google-Smtp-Source: ADKCNb4dIJ3seu5QXgFp2vo2g8RyfmOwzEw9E+UFo9rLVGiNqblV5Qx/DRPdBtk8ytBtOZmWRoWfv0ABB3DazA2K4tI= X-Received: by 10.36.29.193 with SMTP id 184mr1272801itj.97.1504356024543; Sat, 02 Sep 2017 05:40:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.22.66 with HTTP; Sat, 2 Sep 2017 05:40:23 -0700 (PDT) In-Reply-To: References: <201708250251.v7P2pwcl029687@chez.mckusick.com> <20170827195428.49400124AE9F@mail.bitblocks.com> <20170828132647.GA60563@in-addr.com> From: Aijaz Baig Date: Sat, 2 Sep 2017 18:10:23 +0530 Message-ID: Subject: Re: Tips on remote debugging for filesystem code To: Gary Palmer Cc: Bakul Shah , Kirk McKusick , Julian Elischer , freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2017 12:40:26 -0000 I was finally able to deploy a FreeBSD-Current VM on Bhyve but even with that setup I face a similar issue For instance I put a breakpoint on 'ffs_read' and let the debugged VM continue but the control is neither returned to (k)gdb nor does the VM actually run. It appears hung. Is there something within the ffs/ufs code that I need to be aware of that it doesn't facilitate this sort of debugging? Or is it because Bhyve is being run on FreeBSD which is itself run on another hypervisor? Will that affect this? On Mon, Aug 28, 2017 at 7:03 PM, Aijaz Baig wrote: > HI Gary > > Just checked that. Indeed that was the case. In addition I was running > FreeBSD on top of vmware hypervisor and had not allowed hardware > acceleration features pass through to the FreeBSD VM. It is now working! > Need to explore more on getting it to connect to GDB > > Perhaps you'll see a thread soon for it (Has anything worked perfectly for > the first time ever?? ;) )! > > On Mon, Aug 28, 2017 at 6:56 PM, Gary Palmer wrote: > >> On Mon, Aug 28, 2017 at 01:12:09PM +0530, Aijaz Baig wrote: >> > Thanks a lot bakul. Will certain look into this >> > >> > Nevertheless I got hold of a PowerEdge 320 system which DOES have a >> POPCNT >> > instruction which shows support for V-x support via EPT but I still get >> the >> > same error there >> > >> > sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 2048M -t tap0 -d >> guest.img -i >> > -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso fbsd10 >> > Launching virtual machine "fbsd10" ... >> > vm_create: Device not configured >> > >> > dmesg: >> > vmx_init: processor does not support VMX operation >> > >> > cat /var/run/dmesg.boot | grep -i popcnt >> > >> > Features2=0xffba2203> SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV> >> > >> > Features2=0xffba2203> SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV> >> > >> > Any ideas? >> >> Hi, >> >> Check the BIOS for virtualisation or other related options. Some BIOSes >> have >> the ability to turn those features off, even if the processor normally >> supports them >> >> Regards, >> >> Gary >> > > > > -- > > Best Regards, > Aijaz Baig > -- Best Regards, Aijaz Baig