Page MenuHomeFreeBSD

bnovkov (Bojan Novković)
User

Projects

User Details

User Since
Jan 29 2022, 5:50 PM (246 w, 2 d)

Recent Activity

Yesterday

bnovkov accepted D60748: bhyve: Treat BAR registration failures as non-fatal.

LGTM.

Mon, Oct 19, 7:27 PM
bnovkov accepted D60870: bhyve: check paddr_guest2host return in _vq_record.

In the future please upload the diff with full context and please don't remove the group reviewers automatically added by the system.

Mon, Oct 19, 7:19 PM
bnovkov added a reviewer for D60870: bhyve: check paddr_guest2host return in _vq_record: bhyve.
Mon, Oct 19, 7:17 PM

Fri, Oct 16

bnovkov added inline comments to D60597: Document Source Management Team policies.
Fri, Oct 16, 3:40 PM

Thu, Oct 15

bnovkov updated the test plan for D60751: vm_fault.c: Introduce 'vm_fault_wire'.
Thu, Oct 15, 6:22 PM
bnovkov updated the test plan for D60752: vmm/vmm_mem.c: Use a custom 'pgo_populate' operation for sysmem segments.
Thu, Oct 15, 6:21 PM
bnovkov requested review of D60752: vmm/vmm_mem.c: Use a custom 'pgo_populate' operation for sysmem segments.
Thu, Oct 15, 6:21 PM
bnovkov requested review of D60751: vm_fault.c: Introduce 'vm_fault_wire'.
Thu, Oct 15, 6:21 PM
bnovkov requested review of D60750: vm_reserv.c: Introduce 'vm_reserv_pindex_aligned'.
Thu, Oct 15, 6:21 PM

Mon, Oct 12

bnovkov committed rG9c142388e4de: pf: Send syncookies from the receiving thread (authored by bnovkov).
pf: Send syncookies from the receiving thread
Mon, Oct 12, 10:43 AM

Sat, Oct 10

bnovkov committed rGf627ff51b76c: riscv/pmap.c: Don't pass hartid map to 'smp_rendezvous_cpus' (authored by bnovkov).
riscv/pmap.c: Don't pass hartid map to 'smp_rendezvous_cpus'
Sat, Oct 10, 12:37 PM
bnovkov closed D60072: riscv/pmap.c: Don't pass hartid map to 'smp_rendezvous_cpus'.
Sat, Oct 10, 12:37 PM
bnovkov added a comment to D60072: riscv/pmap.c: Don't pass hartid map to 'smp_rendezvous_cpus'.

I suspect that using pm_active to store hart IDs instead of CPU IDs is too clever and will cause more problems down the road. We should instead store CPU IDs there and make the SBI routines handle translation to hart IDs.

I agree, by using hart IDs we've internalized an SBI implementation detail which is not ideal.

Sat, Oct 10, 11:31 AM
bnovkov accepted D60241: bhyve: e82545: pause the device for a snapshot.

LGTM, one minor comment aside.

Sat, Oct 10, 10:59 AM
bnovkov accepted D58419: bhyve: add command to list config options.
Sat, Oct 10, 10:07 AM

Tue, Oct 6

bnovkov accepted D60399: bhyve: Remove unneeded include of <machine/iodev.h>.
Tue, Oct 6, 1:06 PM
bnovkov added a comment to D59710: linker: Harden checks for ELFs.

CCing @jhb and @jrtc27 since they've reviewed a similar patch (D58542) recently.

Tue, Oct 6, 12:52 PM
bnovkov added reviewers for D59710: linker: Harden checks for ELFs: jhb, jrtc27.
Tue, Oct 6, 12:50 PM
bnovkov added a comment to D59710: linker: Harden checks for ELFs.

since the code that caused the panic has already been fixed on main, maybe we should rename this commit to "fix edgecases" or similar?

Tue, Oct 6, 12:47 PM
bnovkov added a comment to D59710: linker: Harden checks for ELFs.

Could you please rebase the patch to a recent main? I can't cleanly apply the patch for testing.

Tue, Oct 6, 10:28 AM

Fri, Oct 2

bnovkov accepted D60231: bhyve: atkbdc: do not lose keyboard bytes when the buffer is full.
Fri, Oct 2, 3:27 PM
bnovkov accepted D60209: riscv: support new "riscv,isa-extensions" string-array.

LGTM, one minor inline comment aside.

Fri, Oct 2, 3:11 PM
bnovkov added a comment to D60235: bhyve: restore the BARs at the addresses the guest gave them.

LGTM (one minor suggestion inline), I'll wait for @jhb 's comments before accepting.

Fri, Oct 2, 12:53 PM
bnovkov accepted D60232: vmm: release the lock when vrtc_snapshot() fails.
Fri, Oct 2, 12:36 PM
bnovkov added inline comments to D60231: bhyve: atkbdc: do not lose keyboard bytes when the buffer is full.
Fri, Oct 2, 12:35 PM
bnovkov accepted D60224: bhyve: do not show the fwcfg device in the guest's user interface.
Fri, Oct 2, 12:29 PM
bnovkov added inline comments to D60219: bhyve: e82545: allow access to the last receive address register.
Fri, Oct 2, 12:27 PM

Tue, Sep 29

bnovkov added a comment to D59710: linker: Harden checks for ELFs.

Generally LGTM, two nits aside. I'll test this a bit more in the coming days and land it if nothing obvious pops up.

Tue, Sep 29, 7:24 PM

Sun, Sep 27

bnovkov added a comment to D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.

There is an unfortunate bug in this change: the pm_active bitmask is indexed by hart IDs, not CPU IDs, and these are not the same in general.
So, when we pass pm_active as the target cpuset to smp_rendezvous_cpus(), we end up signaling an unrelated set of CPUs.

Sun, Sep 27, 7:08 PM
bnovkov requested review of D60072: riscv/pmap.c: Don't pass hartid map to 'smp_rendezvous_cpus'.
Sun, Sep 27, 7:07 PM

Wed, Sep 23

bnovkov accepted D59927: sdiff.1: Document exit status and --help.

LGTM (just the sdiff.c bits).

Wed, Sep 23, 2:34 PM

Tue, Sep 22

bnovkov committed rGb94772d9bcea: clk: Fix a few typos in the spacemit CCU driver (authored by bnovkov).
clk: Fix a few typos in the spacemit CCU driver
Tue, Sep 22, 8:18 PM
bnovkov requested review of D59918: sdhci_fdt_spacemit: Avoid setting the 'io' clock.
Tue, Sep 22, 8:10 PM
bnovkov requested review of D59917: clk: Add clknode_recalc_freq to the spacemit CCU driver.
Tue, Sep 22, 8:07 PM
bnovkov accepted D59478: CPU temperature sensor for jh7110.
Tue, Sep 22, 1:20 PM · riscv
bnovkov added inline comments to D59322: bhyve: Reinitialise swtpm's TPM at startup.
Tue, Sep 22, 1:13 PM

Mon, Sep 21

bnovkov committed rG46d383af0dbd: pciconf: Add -C option to filter by class name (authored by code_fedang.net).
pciconf: Add -C option to filter by class name
Mon, Sep 21, 6:40 PM
bnovkov closed D59602: pciconf: Add -C option to filter by class name.
Mon, Sep 21, 6:39 PM

Sun, Sep 20

bnovkov added a comment to D59840: vmm: Suspend the VM on a hardware triple fault.

LGTM, I'll give the patch a spin tomorrow before landing it. Have you tested this change somehow already?

Yep, I tested with a small 16-bit payload that loads a null IDT and executes ud2, so the guest takes a hardware triple fault (VMX exit reason 2).

I can attach the payload image and both serial logs if that's useful.

Sun, Sep 20, 5:59 PM

Sep 19 2026

bnovkov accepted D59840: vmm: Suspend the VM on a hardware triple fault.

LGTM, I'll give the patch a spin tomorrow before landing it. Have you tested this change somehow already?

Sep 19 2026, 5:16 PM
bnovkov added inline comments to D59710: linker: Harden checks for ELFs.
Sep 19 2026, 11:04 AM
bnovkov accepted D59783: bhyve: usb: marginally improve debugging output.

One minor comment, LGTM otherwise.

Sep 19 2026, 10:31 AM
bnovkov accepted D59782: bhyve: usb: plug some leaks in bus init failure path.
Sep 19 2026, 10:29 AM
bnovkov accepted D59784: bhyve: usb: handle USB 1.1 devices properly.
Sep 19 2026, 10:28 AM
bnovkov accepted D59781: bhyve: usb: devices should actually probe against the slot.
Sep 19 2026, 10:28 AM
bnovkov accepted D59780: bhyve: usb: fix XHCI_STREAMS_MAX and stream handling.
Sep 19 2026, 10:28 AM
bnovkov accepted D59779: bhyve: usb: add a finer-grained mutex for the event thread.
Sep 19 2026, 10:18 AM

Sep 18 2026

bnovkov committed rGb774fbdb0077: libc/db: Correct a typo in the the hash tampering test (authored by bnovkov).
libc/db: Correct a typo in the the hash tampering test
Sep 18 2026, 2:16 PM
bnovkov committed rG7f5f07b139a5: db/hash: Harden hash(3) database code (authored by bnovkov).
db/hash: Harden hash(3) database code
Sep 18 2026, 10:31 AM
bnovkov committed rGef821f9ba66a: bhyve: Add an option to prevent automatic restart in monitor mode (authored by bnovkov).
bhyve: Add an option to prevent automatic restart in monitor mode
Sep 18 2026, 10:31 AM
bnovkov closed D58822: db/hash: Harden hash(3) database code.
Sep 18 2026, 10:31 AM
bnovkov closed D59123: bhyve: Add an option to prevent automatic restart in monitor mode.
Sep 18 2026, 10:31 AM
bnovkov added inline comments to D59602: pciconf: Add -C option to filter by class name.
Sep 18 2026, 9:24 AM

Sep 17 2026

bnovkov added inline comments to D59123: bhyve: Add an option to prevent automatic restart in monitor mode.
Sep 17 2026, 7:56 PM
bnovkov updated the diff for D59123: bhyve: Add an option to prevent automatic restart in monitor mode.

Address @markj's comments

Sep 17 2026, 7:07 PM

Sep 16 2026

bnovkov added inline comments to D59710: linker: Harden checks for ELFs.
Sep 16 2026, 3:29 PM

Sep 15 2026

bnovkov added a comment to D58419: bhyve: add command to list config options.

Thank you for working on this, this is a useful feature.
Aside from the inline comments, I have one remark regarding config_schema_merge_options.

Sep 15 2026, 3:32 PM
bnovkov updated the diff for D58822: db/hash: Harden hash(3) database code.

Hoist 'splitnum' check

Sep 15 2026, 2:02 PM

Sep 14 2026

bnovkov added inline comments to D59602: pciconf: Add -C option to filter by class name.
Sep 14 2026, 4:44 PM
bnovkov accepted D59589: website: Restore "The Power to Serve" on homepage.
Sep 14 2026, 10:34 AM

Sep 11 2026

bnovkov accepted D59108: bhyvectl: support querying VM pid.
Sep 11 2026, 3:44 PM

Sep 10 2026

bnovkov accepted D59570: raw ip: clear sin_port on bind(2).
Sep 10 2026, 2:50 PM
bnovkov added a comment to D59108: bhyvectl: support querying VM pid.

Looks good now, thanks! I only have one minor inline comment.

Sep 10 2026, 8:39 AM

Sep 9 2026

bnovkov accepted D59048: riscv, pmap: extend the set of TLB management functions.
Sep 9 2026, 1:47 PM
bnovkov added inline comments to D59478: CPU temperature sensor for jh7110.
Sep 9 2026, 1:43 PM · riscv
bnovkov added inline comments to D59108: bhyvectl: support querying VM pid.
Sep 9 2026, 1:35 PM
bnovkov accepted D59049: riscv: mark kernel page table entries as global.

Thanks, LGTM now. I won't be able to test the patch series on a non- SiFive FU74 board until EuroBSDCon finishes, I'll let you know if anything comes up during testing.

Sep 9 2026, 11:39 AM
bnovkov added inline comments to D59048: riscv, pmap: extend the set of TLB management functions.
Sep 9 2026, 11:33 AM
bnovkov added a member for riscv: bnovkov.
Sep 9 2026, 8:16 AM

Aug 31 2026

bnovkov added inline comments to D59049: riscv: mark kernel page table entries as global.
Aug 31 2026, 8:04 PM
bnovkov accepted D59050: sifive: handle sfence.vma errata.
Aug 31 2026, 7:38 PM
bnovkov added inline comments to D59048: riscv, pmap: extend the set of TLB management functions.
Aug 31 2026, 7:30 PM
bnovkov added inline comments to D59108: bhyvectl: support querying VM pid.
Aug 31 2026, 7:12 PM

Aug 28 2026

bnovkov committed rGbf05236727cf: pf: Send syncookies from the receiving thread (authored by bnovkov).
pf: Send syncookies from the receiving thread
Aug 28 2026, 1:58 PM
bnovkov closed D59068: pf: Send syncookies from the receiving thread.
Aug 28 2026, 1:58 PM
bnovkov updated the diff for D58822: db/hash: Harden hash(3) database code.

Propagate error from bounds checking instead of aborting

Aug 28 2026, 10:13 AM

Aug 27 2026

bnovkov added a comment to D59068: pf: Send syncookies from the receiving thread.
In D59068#1356482, @kp wrote:

I'm also struggling to make sense of the baseline flame graph. It seems to be spending a lot of time removing interfaces (5% of samples in pf_kkif_free()!) and I don't see any calls to pf_test(), which we should see if we were handling traffic.
Maybe the address decoding went wrong, because those stacks just look wrong.

Hm, that's odd. I'll try to find out what went wrong.

Aug 27 2026, 2:38 PM
bnovkov attached a referenced file: F168316492: patched.svg.
Aug 27 2026, 2:36 PM
bnovkov attached a referenced file: F168316493: baseline.svg.
Aug 27 2026, 2:36 PM
bnovkov updated the test plan for D59068: pf: Send syncookies from the receiving thread.
Aug 27 2026, 2:36 PM

Aug 25 2026

bnovkov added a comment to D59068: pf: Send syncookies from the receiving thread.
In D59068#1356482, @kp wrote:

I'm also struggling to make sense of the baseline flame graph. It seems to be spending a lot of time removing interfaces (5% of samples in pf_kkif_free()!) and I don't see any calls to pf_test(), which we should see if we were handling traffic.
Maybe the address decoding went wrong, because those stacks just look wrong.

Aug 25 2026, 12:44 PM
bnovkov added inline comments to D59068: pf: Send syncookies from the receiving thread.
Aug 25 2026, 12:37 PM
bnovkov updated the diff for D59068: pf: Send syncookies from the receiving thread.

Address @kp 's comments

Aug 25 2026, 12:36 PM

Aug 23 2026

bnovkov accepted D58893: bhyve: Refactor initial PCI BAR setup.
Aug 23 2026, 1:07 PM
bnovkov requested review of D59123: bhyve: Add an option to prevent automatic restart in monitor mode.
Aug 23 2026, 1:04 PM
bnovkov added a comment to D59108: bhyvectl: support querying VM pid.

This is a good feature, but I don't think that this is the correct approach design-wise. Adding an ioctl handler to just to fetch a VM's PID is overkill IMO, new ioctl commands should only be added when there's no other way to obtain the needed information (e.g., fetching memsegs and other metadata that is stored in the vmm module).

Aug 23 2026, 12:16 PM
bnovkov committed rGf49f33ef8c53: bhyvectl: Generalize bhyve IPC code (authored by bnovkov).
bhyvectl: Generalize bhyve IPC code
Aug 23 2026, 12:04 PM
bnovkov committed rG04811d46d3f2: bhyve: Generalize the IPC thread (authored by bnovkov).
bhyve: Generalize the IPC thread
Aug 23 2026, 12:04 PM
bnovkov closed D54652: bhyvectl: Generalize bhyve IPC code.
Aug 23 2026, 12:04 PM
bnovkov closed D54650: bhyve: Generalize the IPC thread.
Aug 23 2026, 12:03 PM

Aug 21 2026

bnovkov accepted D59082: bhyve: Do not panic on invalid input in HDA emulation.
Aug 21 2026, 4:20 PM
bnovkov added inline comments to D59082: bhyve: Do not panic on invalid input in HDA emulation.
Aug 21 2026, 3:42 PM
bnovkov accepted D59083: sdhci: Remove redundant device_get_softc.
Aug 21 2026, 3:14 PM
bnovkov added inline comments to D58893: bhyve: Refactor initial PCI BAR setup.
Aug 21 2026, 1:51 PM
bnovkov added a comment to D54641: bhyve/pci_emul: Use vmem to track BAR allocations.
In D54641#1353031, @jhb wrote:
In D54641#1344263, @jhb wrote:

When a new PCI device shows up in hotplug both for native PCI-e hotplug and other systems like the ACPI approach you are using, the new device just shows up with all decoding disabled and the BARs set to their reset values (address of 0). It is the guest OS's job to allocate address space for the BARs and manage the address space.

Thank you, this clears up a lot and I think I'll be able to simplify the whole patch series greatly since we can completely ditch vmem.
Before I start purging the vmem-related parts from this patch stack, do you think that there's a future use for this application of vmem that would justify keeping it?

Probably not TBH as this is just a one-time allocation vs an address space that needs updating.

Aug 21 2026, 1:47 PM
bnovkov accepted D58894: bhyve: Tidy lobits handling in pci_passthru.
Aug 21 2026, 1:39 PM
bnovkov added a comment to D59068: pf: Send syncookies from the receiving thread.

Can you check or host the results somewhere else? Maybe freefall?

Aug 21 2026, 12:42 PM
bnovkov attached a referenced file: F167389277: patch.svg.
Aug 21 2026, 12:39 PM
bnovkov attached a referenced file: F167389276: baseline.svg.
Aug 21 2026, 12:39 PM
bnovkov updated the test plan for D59068: pf: Send syncookies from the receiving thread.
Aug 21 2026, 12:24 PM