From nobody Sun Jul 10 21:32:16 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 CB3311CFE403 for ; Sun, 10 Jul 2022 21:32:29 +0000 (UTC) (envelope-from bojan.novkovic@kset.org) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 4Lh0bd0DZhz44Xk for ; Sun, 10 Jul 2022 21:32:28 +0000 (UTC) (envelope-from bojan.novkovic@kset.org) Received: by mail-wr1-x42e.google.com with SMTP id v14so4779181wra.5 for ; Sun, 10 Jul 2022 14:32:28 -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=pit1YC43YuTaW/0Eho8jrUmoKCHoj9ETY5EIne6DKJA=; b=BchkNZKEmEcCyixvSJ76bBF6Rm9I4vi7ni4vXnevHdCBYtRIWFXWgOc3xsuBKC8kto JmmKvD3b7IrQN+6G3si788rWeCSP1u6es/5BHzxPjZIOl/gfe+VCJec20M6bPynyKxI5 qVAXYLHqjNJpsfRIM9DdzPPDIm0wYAXwAChhlnDljOvQNY1JGAT4wN1OG09HDCk3MgI1 NW8gBNSi/NTitoWgMI6fIH5AB2gyDyY7s1wOE8MZRIsd9kAtugQgaST/xu8eDNZ/2wXv vNWbbtXnkDPFbBUlMVNuW7srhNNENBSEH7OnqoiLAQCPJ9dhRRZuDBDQjXwcwE9qJ1nb iO4A== 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=pit1YC43YuTaW/0Eho8jrUmoKCHoj9ETY5EIne6DKJA=; b=pw5f7MSMgj0k1GlBkkLg+IDF2OmLSF1CHxy606AIDH54EMXED8lPDxL4Bbldw4/FIU 307g4DWbFpOMoUaGJN4l9Aygat3hWdzocBJp/zqErhX+s1ulVrdXWoIBWtW61nZKLdWX nyMPRyeW26SPyOqcKVe1ETlP7WBsq6LqMRjrg+yrsnkCZclitGAGn+iJVatd2w7TfxfQ 8Jl7jTCm+9VLvi/+ijQ7DnGSoR23qEseicRmdIE96ozY+Kr7suoQbM/d+ZQZWhm9dIT6 qv0mJie3eCzGorD2Bl+jR14TMEJyZbsFw4BwbElTML0m4OauS1pDLbNEZIPMhFrv+zjR Q4Dg== X-Gm-Message-State: AJIora9iw/Wxexc83wyDHnFqkmMn3g0E7y4BvTIlWGXUdU0j16jDZJQU cBnqsx2bbAQ6e6hJ8VTIUTzG7YuZ/SJwNpvctqtNECDvXsU= X-Google-Smtp-Source: AGRyM1tt2NC7efq79Uu/LFFB/WXfXJaZkVn+PDpOk8V9oVydV2vMwe3eNa3encfCNEk/J2yy4jTZmcTVjU9l/l3IbvU= X-Received: by 2002:adf:fb10:0:b0:207:af88:1eb9 with SMTP id c16-20020adffb10000000b00207af881eb9mr14133864wrr.238.1657488747399; Sun, 10 Jul 2022 14:32:27 -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, 10 Jul 2022 23:32:16 +0200 Message-ID: Subject: [GSoC Weekly Status #4] bhyve debug server enhancements To: soc-status@freebsd.org Content-Type: multipart/alternative; boundary="00000000000002230505e37a2c49" X-Rspamd-Queue-Id: 4Lh0bd0DZhz44Xk X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kset.org header.s=google header.b=BchkNZKE; dmarc=pass (policy=quarantine) header.from=kset.org; spf=pass (mx1.freebsd.org: domain of bojan.novkovic@kset.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=bojan.novkovic@kset.org X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[kset.org,quarantine]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[kset.org:s=google]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[soc-status]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42e:from]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[kset.org:+]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --00000000000002230505e37a2c49 Content-Type: text/plain; charset="UTF-8" Hello, My activities during this last week were mostly related to testing and fixing the hardware watchpoint feature for bhyve's debug server that was implemented during the previous week. The main goal was to make sure that the hardware watchpoints set by the gdb stub do not interfere with the guest's execution. The gdb stub dynamically tracks which debug register are in use by the guest and relocates its watchpoints accordingly. To test this behavior, I've been debugging a process inside the guest using watchpoints while at least one of the gdb stub's watchpoints was active. There were a lot of subtle details and vendor-specific differences in some parts of the virtualization extensions that got in the way, but I've managed to get this feature fully working on AMD hosts and almost fully working on Intel hosts. During the next week I plan to resolve a minor issue on Intel hosts, polish the code and prepare it for a differential, and thoroughly document both this and the single-stepping feature. Bojan --00000000000002230505e37a2c49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

My activities during = this last week were mostly related to testing and fixing the hardware
<= /div>
watchpoint feature for bhyve's debug server that was implemen= ted during the previous week.

The main goal w= as to make sure that the hardware watchpoints set by the gdb stub do not in= terfere
with the guest's execution. The gdb stub dynamically = tracks which debug register are in use by
the guest and relo= cates its watchpoints accordingly. To test this behavior, I've been deb= ugging a
process inside the guest using watchpoints while at= least one of the gdb stub's watchpoints was
active.
=

There were a lot of subtle details and vendor-spe= cific differences in some parts of the virtualization
extensions = that got in the way, but I've managed to get this feature fully working= on AMD hosts
and almost fully working on Intel hosts. During the= next week I plan to resolve a minor issue on
Intel hosts, polish= the code and prepare it for a differential, and thoroughly document both t= his
and the single-stepping feature.

Boj= an
--00000000000002230505e37a2c49--