From nobody Wed Oct 09 06:25:52 2024 X-Original-To: freebsd-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 4XNjZR0WSyz5Ytpr for ; Wed, 09 Oct 2024 06:26:07 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XNjZQ0q37z3wrm for ; Wed, 9 Oct 2024 06:26:06 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=FnBvO4uH; spf=pass (mx1.freebsd.org: domain of shamaz.mazum@gmail.com designates 2a00:1450:4864:20::22b as permitted sender) smtp.mailfrom=shamaz.mazum@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2fad100dd9eso63784911fa.3 for ; Tue, 08 Oct 2024 23:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728455164; x=1729059964; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=gKLcAORBEtp1gj4rIA+sUewr92awumFuDiAzA+Idbl4=; b=FnBvO4uHXSrfzrCtrL/D5s73lI6TsmgyE/BIfBVTcKZBVVlM/q2zWXzUVYmDlRyG6z Beu+/VxXGVuSBAlZejQs5dBXalSOlnXt0mRTV2svpvaUexX18e0mtbN5DN6qdB0jzisL 1V3NXub+bgQFDVwXt+C2nEC8pCDARiOo33OzdIz/GoNzD3CXo3ek7WeWsAyvmnuPFWYX ywz1/6EPJiWyYTLf1Cu8ay1xE2Wl5uUCBMtFlIy6prio1Qbt0zPatcOAAruro74VQo4o aZX/PjdvTiNWYfcNbe14pdrAkgm4040KkT23zUUZKgkniyrXgXMX93O3igiu9Z92X82e 4AQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728455164; x=1729059964; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gKLcAORBEtp1gj4rIA+sUewr92awumFuDiAzA+Idbl4=; b=UeXACb3NLv23FL2Q0s3sIPCSbACuwBhrvd06O0LV2TulWQ1J5jjFdvQfGIREUNduTm 3BS3IW/ohCHkKywE3mqIWic258yKNjB/Zi2MRSTDQv38jCmK6gerqFhMjJccEmR4TL5Y EjtWcoVdKMFU5lntvAUWOsyswSPSd4JOUaJL/2RUJw5ULKGib7fwB99OxvyKfbldruTf KZh3QeXa+uqyH0tN54EeBFcw2y2BCjCukf+nusrq7XY0iKA/4FFsEnsTCORX0iZ0ZIQm SSzTNy508tJHeJ63bQC2LqPcbJGNPEgTZWHKqe0FYuelUzEugA91vG61aBGtqNTZO207 gI2Q== X-Gm-Message-State: AOJu0YwOoDK4lAsvtPztvwqiLn1kWkKigZC6oaT62z2JHZBnPnqgNJpw WPHgkKe6I7av07NJLS6qAt6i2UbOzSuCBj1fIttEefWAlhC8QqJ4VsaoKerMcjNK8cGQfiu2dXE HVPD5W0DVKFf7oK+l5es/HyDTtCSRQfb0vlwHSg== X-Google-Smtp-Source: AGHT+IFETO2HoVqpLYQaRvhdh4etfXxnSlIcSB7L4h74TRaRwo8RgDiH4t7OIVnTUHBSX7FfX4vsu0zZ23SwyDwb8ew= X-Received: by 2002:a05:6512:b93:b0:52c:d905:9645 with SMTP id 2adb3069b0e04-539c48989a8mr649856e87.13.1728455163534; Tue, 08 Oct 2024 23:26:03 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 From: Vasily Postnicov Date: Wed, 9 Oct 2024 06:25:52 +0000 Message-ID: Subject: Running Mezzano in bhyve To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000008657506240554fa" X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22b:from] X-Rspamd-Queue-Id: 4XNjZQ0q37z3wrm X-Spamd-Bar: --- --00000000000008657506240554fa Content-Type: text/plain; charset="UTF-8" Hi! Mezzano is an operating system written in Common lisp. I would like to test it in bhyve. When I launch it, it spins infinitely in a loop measuring how many CPU cycles it makes in a unit of time (I understood it by adding various debug messages). The timer it uses is something called a PIT: https://wiki.osdev.org/Programmable_Interval_Timer The problem is, once the timer is configured it fires an interrupt only once, while it obviously must fire interrupts constantly at some frequency (100 Hz, as I understand from the code). Is the PIT supported by bhyve? Does FreeBSD use it anywhere in its kernel? BTW, Mezzano boots up fine on bare metal and in qemu, so the project is in a working state, despite being abandoned. --00000000000008657506240554fa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi! Mezzano is an operating system written in Common lisp.= I would like to test it in bhyve. When I launch it, it spins infinitely in= a loop measuring how many CPU cycles it makes in a unit of time (I underst= ood it by adding various debug messages).

The timer it u= ses is something called a PIT:=C2=A0https://wiki.osdev.org/Programmable_Interval_Timer<= /a>



--00000000000008657506240554fa--