From nobody Sun Jun 26 14:31:09 2022 X-Original-To: soc-status@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 1F70387CBC8 for ; Sun, 26 Jun 2022 14:31:23 +0000 (UTC) (envelope-from bojan.novkovic@kset.org) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 4LWCw94LWfz3Klb for ; Sun, 26 Jun 2022 14:31:21 +0000 (UTC) (envelope-from bojan.novkovic@kset.org) Received: by mail-wr1-x432.google.com with SMTP id n1so9529938wrg.12 for ; Sun, 26 Jun 2022 07:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kset.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=k4o0rx2Se6/oprxkZz1RpcpfY6VK5bCpyr+nNXwlGLs=; b=X3S9f+UMBb7uuSku35tuaxm+AdCc+F170ZP/4Q4TE97Z5nXS54ZRdBSrf2jbaNoRAK S30q/nisPgEBodlkqOTst19+nsQkcI2EnMo8zvW8nVY81eooSuFzQ0dG+GMaDv6O3/21 KbTgDQ24F1qn22YKOzZDQnWAs5UU+G6zr2B07B0bR735Cgn0cxtfrLOpOtqcNB5/SoVU rN3OuiO4HEjNzdHwB95noLF9Ps7Dyca/qsl2om/o8oB3T4Fao0w8ZNbdOyLn4T+BaMhp O4pk/IpUAHPNc4QTU3foajDfA4kldXllSu47CfxIwE/sX86iBQfbniv0rJf7T35CRzf7 EMYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=k4o0rx2Se6/oprxkZz1RpcpfY6VK5bCpyr+nNXwlGLs=; b=1NZpcTD4THpw8h+aT8V98xGT3WHk2QfJnEiZ9b2Bbbtj6QFhf0opKbtFOj1sH0rIZR wK34ILtYVMjJK1Q31fX1GjPiIXx/M6WeUbZT3u6uJ+FTkV+5dbWz2TFeSh7D6rhIsgLz JKnFf9DDYze6s6SDZjr4OOvEdmZBkwaSX9ZxpjnreeFwO7/IjuO6jTupW5xrGwEBqBBU YGqOllXLAbMrPH6RQsQGmIaHlLujt/CtTearri187eHJhBQrjkbFjAdFcR/5Wi3FSLEJ 2RkC9JNEDkHjf4el1JMp8yUC0EE3cfx2dUQbZmcPZ+RnJ1gUj7K0B6HXCki2ThfmNEGF 8jLw== X-Gm-Message-State: AJIora8WOKZ1ExxxmfHBgg7c7dE/ilF8EVZKq5+zKe11yLQ4EeLQWbAY 2WjG3yiTrWdp31LS9NklT2HmlbcXkJxDxDlZ45eIFx/rf8F94g== X-Google-Smtp-Source: AGRyM1v0H078ULUPaWft70MPaY80kVXnbOFXpGowqXg9Ck1nXTfdlGXeoN7q0YBK7hqfhd54ygF1GRePwPGegdWDqI0= X-Received: by 2002:adf:f84b:0:b0:21b:8e43:b8ba with SMTP id d11-20020adff84b000000b0021b8e43b8bamr7919606wrq.155.1656253880344; Sun, 26 Jun 2022 07:31:20 -0700 (PDT) List-Id: Summer of Code Status Reports and Discussion List-Archive: https://lists.freebsd.org/archives/soc-status List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-soc-status@freebsd.org X-BeenThere: soc-status@freebsd.org MIME-Version: 1.0 From: =?UTF-8?Q?Bojan_Novkovi=C4=87?= Date: Sun, 26 Jun 2022 16:31:09 +0200 Message-ID: Subject: [GSoC Weekly Status #2] bhyve debug server enhancements To: soc-status@freebsd.org Content-Type: multipart/alternative; boundary="000000000000323c3905e25aa876" X-Rspamd-Queue-Id: 4LWCw94LWfz3Klb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kset.org header.s=google header.b=X3S9f+UM; dmarc=pass (policy=quarantine) header.from=kset.org; spf=pass (mx1.freebsd.org: domain of bojan.novkovic@kset.org designates 2a00:1450:4864:20::432 as permitted sender) smtp.mailfrom=bojan.novkovic@kset.org X-Spamd-Result: default: False [-3.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; R_DKIM_ALLOW(-0.20)[kset.org:s=google]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_TRACE(0.00)[kset.org:+]; DMARC_POLICY_ALLOW(-0.50)[kset.org,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::432:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[soc-status]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000323c3905e25aa876 Content-Type: text/plain; charset="UTF-8" Hello, I've spent most of this week testing and polishing the VM single-step functionality for AMD hosts. Since this functionality relies on the RFLAGS.TF bit, I've settled for a less complex approach that intercepts and restarts any instructions that may modify the RFLAGS register (popf/pushf) while making sure that the guest executes correctly. Most of the testing consisted of stepping through various interrupts which use popf/pushf. I also managed to get a head start on implementing hardware watchpoint support for bhyve's gdb stub [1]. Bojan [1] https://github.com/bnovkov/freebsd-src/tree/bhyve_watch --000000000000323c3905e25aa876 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I've spent most o= f this week testing and polishing the VM single-step functionality for AMD = hosts.
Since this functionality relies on the RFLAGS.TF bit, I've settled for a less complex approach t= hat intercepts and restarts any instructions that may modify the RFLAGS reg= ister (popf/pushf) while making sure that the guest executes correctly. Mos= t of the testing consisted of stepping through various interrupts which use= popf/pushf.

I also managed to get a head start on= implementing hardware watchpoint support for bhyve's gdb stub [1].

Bojan

--000000000000323c3905e25aa876--