From nobody Tue Oct 10 00:21:27 2023 X-Original-To: virtualization@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 4S4GmP2n6wz4wmmw for ; Tue, 10 Oct 2023 00:21:41 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (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 4S4GmN4Xt3z3gLZ for ; Tue, 10 Oct 2023 00:21:40 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iitbombay-org.20230601.gappssmtp.com header.s=20230601 header.b=VpW2UKlh; spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::62b as permitted sender) smtp.mailfrom=bakul@iitbombay.org; dmarc=none Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1c724577e1fso40441055ad.0 for ; Mon, 09 Oct 2023 17:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1696897299; x=1697502099; darn=freebsd.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=2iadDKsnee1O8HJd1yl1JUyCXiH9IPZQKusC59Ej4LM=; b=VpW2UKlh9iwkvMISh7B/ED44fsTfvtNV3nsaDauGnSjgpcDK0h/Y103f8cgKRRJ58m UK0fuzAs4k2Ivu4ikZoJT/Qm4ExjAHlZLrIoykqLNbu5PP3Ofco0OT04FTXntvoiSin2 TsEZa59OzcHZO36NMMZHqRnfBMGyBPFwdQ7voHvPkMe1BLiMaCajjpq4J4lDfKU4kQ0C 8OBUYgyOwC6yXYynwRYuZ70LS4MVnwccEus/oU59cVGbPFouJP9qJ22OYsCqaSYEPywj nSIUP1rqR9ZVbTbOiLOE/i76CizcQuNYR2qWwkbZBFdDxxq7PH/Oohxs+1MHrJJ6q7IR hBXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696897299; x=1697502099; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2iadDKsnee1O8HJd1yl1JUyCXiH9IPZQKusC59Ej4LM=; b=fvtwL1sGlHZjmaojVORNEuEhfDFfWXMWNTleC/s/hS7IRaSS5lykZtk1ynlkR5W57f e7A8uGqULqNw6Flvv7eimErbVTq4tKFh9SjWx8H0qspEbJYzQB7HLyE18ZUIA2wxH9oc enloLZYNfyWOPKcaPCQTP8YzNSFuaymVBOiuHf4xexQna0QoPECQfpJn9WIa3bnHoiX/ TuNepasXD3+u0J8Pvcfkh2ApGr8YNR5wW7XaqzM42GgBD/5OUqdtD39lvoe/C1cqCRjJ nodJCZIIQZGQq5uUHqw/XDEpMhh6DU4uJsasyI5JBp4XqnUEmiNh2OMozm23QIhgybnp MTLA== X-Gm-Message-State: AOJu0Yy9VZKqiTKFsfbPVk6N0Dmm6l8z1UGPzWwsBjahmvKt7NFJ0bUH D+X2wGZe/uCvyW24HvCzxZzsrQ== X-Google-Smtp-Source: AGHT+IFYWb+FMBVxONBWUQ6e595SgT2Bd5TaBoJ8uE/kQlEzPsxi8bLNTrOpRKHWPoP8G9KYO/EtUQ== X-Received: by 2002:a17:902:e5c1:b0:1c8:9901:85d0 with SMTP id u1-20020a170902e5c100b001c8990185d0mr9045183plf.46.1696897298884; Mon, 09 Oct 2023 17:21:38 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id p20-20020a170902ead400b001c3e732b8dbsm10325137pld.168.2023.10.09.17.21.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2023 17:21:38 -0700 (PDT) From: Bakul Shah Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Subject: bhyve -G Message-Id: Date: Mon, 9 Oct 2023 17:21:27 -0700 Cc: virtualization@freebsd.org To: FreeBSD CURRENT X-Mailer: Apple Mail (2.3774.100.2.1.4) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[iitbombay-org.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[bakul]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[iitbombay.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::62b:from]; BLOCKLISTDE_FAIL(0.00)[107.215.223.229:server fail,2607:f8b0:4864:20::62b:server fail]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[iitbombay-org.20230601.gappssmtp.com:+]; TO_DN_SOME(0.00)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4S4GmN4Xt3z3gLZ Any hints on how to use bhyve's -G option to debug a VM kernel? I can connect to it from gdb with "target remote :" & bhyve stops the VM initially but beyond that I am not sure. Ideally this should work just like an in-circuit-emulator, not requiring anything special in the VM or kernel itself. Thanks!