Page MenuHomeFreeBSD

bnovkov (Bojan Novković)
User

Projects

User Details

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

Recent Activity

Yesterday

bnovkov accepted D58357: nvme: Explicitly cast caddr_t values.
Mon, Jul 20, 9:54 PM
bnovkov accepted D58305: net/if.c: Add fib-aware ifa_ifwithaddr().

@bnovkov Should I wait for you to test, or are we good to land this?

Mon, Jul 20, 9:13 AM
bnovkov updated the diff for D58281: bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active.

Address @glebius 's comments

Mon, Jul 20, 9:11 AM

Sun, Jul 19

bnovkov added inline comments to D57176: clk: Initial support for the SpacemiT K1 clock control units.
Sun, Jul 19, 4:24 PM
bnovkov updated the diff for D57176: clk: Initial support for the SpacemiT K1 clock control units.

Add missing const qualifiers

Sun, Jul 19, 4:23 PM
bnovkov updated the diff for D57176: clk: Initial support for the SpacemiT K1 clock control units.

Address @mmel 's and @mhorne 's comments.

Sun, Jul 19, 4:11 PM

Fri, Jul 17

bnovkov abandoned D58306: rtw89/core.c: Avoid re-queueing if 'ieee80211_start_tx_ba_session' fails with a non-recoverable error.
In D58306#1337245, @bz wrote:

Please see the wireless mailing list where I sent a patch for test and did not get feedback. Changing the driver is the wrong thing to do (not that it works well currently).

https://lists.freebsd.org/archives/freebsd-wireless/2026-July/004328.html

Fri, Jul 17, 8:51 PM
bnovkov updated the diff for D58306: rtw89/core.c: Avoid re-queueing if 'ieee80211_start_tx_ba_session' fails with a non-recoverable error.

Account for EINPROGRESS

Fri, Jul 17, 4:40 PM
bnovkov requested review of D58306: rtw89/core.c: Avoid re-queueing if 'ieee80211_start_tx_ba_session' fails with a non-recoverable error.
Fri, Jul 17, 4:38 PM
bnovkov added inline comments to D58305: net/if.c: Add fib-aware ifa_ifwithaddr().
Fri, Jul 17, 4:31 PM
bnovkov planned changes to D58281: bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active.

Thank you for the offer, but I was trying to avoid unnecessary churn if the same thing can be achieved with ifa_ifwithnet. If you have future uses for a fib-aware version of ifa_ifwithaddr() I can implement it as well.

There will be less churn if you use standard KPI in the right place instead of current version. Pouria also needs this function. Even if he didn't, still creating this KPI on the first need is the right thing to do.

Fri, Jul 17, 4:06 PM
bnovkov added inline comments to D58293: bhyve: check upper bounds for value from qsz.
Fri, Jul 17, 2:44 PM
bnovkov added a comment to D58281: bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active.

Instead of calling fib4_lookup() that has a different purpose, we need ifa_ifwithaddr() version that has fibnum argument.

Looking through net/if.c I noticed that ifa_ifwithnet seems to match what you're suggesting here, do you think we can use this function instead of adding a fibnum-aware version of `ifa_ifwithaddr()`?

I'll create a fib-aware version of ifa_ifwithaddr() and will let you know.

Fri, Jul 17, 2:42 PM
bnovkov added a comment to D58281: bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active.

Instead of calling fib4_lookup() that has a different purpose, we need ifa_ifwithaddr() version that has fibnum argument.

Looking through net/if.c I noticed that ifa_ifwithnet seems to match what you're suggesting here, do you think we can use this function instead of adding a fibnum-aware version of `ifa_ifwithaddr()`?

Fri, Jul 17, 10:29 AM

Thu, Jul 16

bnovkov requested review of D58281: bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active.
Thu, Jul 16, 10:35 AM

Tue, Jul 14

bnovkov added a comment to D57692: acpica: Fix SRAT memory allocation and CPU enablement handling.

Thanks for helping with it. Can I land it instead? This is part of GCE C4A turnup.

Tue, Jul 14, 7:19 PM
bnovkov updated the diff for D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.

Avoid clearing CPU mask for range invalidation

Tue, Jul 14, 6:48 PM
bnovkov committed rG0228338fc9c6: bhyve: Fix some leaks in usr.sbin/bhyve/block_if.c (authored by slw_zxy.spb.ru).
bhyve: Fix some leaks in usr.sbin/bhyve/block_if.c
Tue, Jul 14, 3:20 PM
bnovkov closed D57887: Fix some leaks in usr.sbin/bhyve/block_if.c.
Tue, Jul 14, 3:20 PM

Mon, Jul 13

bnovkov added inline comments to D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.
Mon, Jul 13, 7:37 PM
bnovkov added inline comments to D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.
Mon, Jul 13, 6:22 PM
bnovkov updated the diff for D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.

Address @markj 's comments

Mon, Jul 13, 6:20 PM
bnovkov added a comment to D57623: riscv: Add support for the Svinval extension.

Is this implemented on the Spacemit K1 ?

Mon, Jul 13, 5:40 PM
bnovkov updated the diff for D57067: vmm: Fully adopt the getrlimit(2) machinery for limiting the number of VMM instances.

Rename 'vms' to 'vmm'

Mon, Jul 13, 5:11 PM
bnovkov accepted D57692: acpica: Fix SRAT memory allocation and CPU enablement handling.

LGTM, I'll split this up into two separate commits and land it tomorrow if there are no additional objections by then.

Mon, Jul 13, 4:38 PM
bnovkov accepted D58213: bhyve: unsigned <= 0.
Mon, Jul 13, 4:31 PM
bnovkov added inline comments to D57887: Fix some leaks in usr.sbin/bhyve/block_if.c.
Mon, Jul 13, 4:30 PM

Sun, Jul 12

bnovkov accepted D57887: Fix some leaks in usr.sbin/bhyve/block_if.c.

The patch is updated to match all your last comments. What needs to be done from my side to get it pushed to main?

Sun, Jul 12, 6:22 PM
bnovkov added inline comments to D57067: vmm: Fully adopt the getrlimit(2) machinery for limiting the number of VMM instances.
Sun, Jul 12, 11:14 AM

Sat, Jul 11

bnovkov added a comment to D46379: kern: Introduce a low-cost, conditional execution mechanism.

Two broader points:

  • Please check for missing license headers and convert the existing ones to the shorter form listed in style(9)
  • sys/sys/kernel.h has a bunch of unnecessary changes
Sat, Jul 11, 11:06 AM

Fri, Jul 10

bnovkov added inline comments to D57067: vmm: Fully adopt the getrlimit(2) machinery for limiting the number of VMM instances.
Fri, Jul 10, 4:16 PM
bnovkov committed rG7a5ef20a977c: riscv/pmap.c: Handle spurious kernel page faults in critical sections (authored by bnovkov).
riscv/pmap.c: Handle spurious kernel page faults in critical sections
Fri, Jul 10, 4:04 PM
bnovkov committed rG7489f0bf84e4: riscv/mp_machdep.c: Flush the TLB after releasing APs (authored by bnovkov).
riscv/mp_machdep.c: Flush the TLB after releasing APs
Fri, Jul 10, 4:04 PM
bnovkov committed rG84148cc1a926: riscv: Add vendor and arch IDs for the SpacemiT K1 CPU (authored by bnovkov).
riscv: Add vendor and arch IDs for the SpacemiT K1 CPU
Fri, Jul 10, 4:04 PM
bnovkov committed rG10487e30c0a7: riscv/pmap.c: Add a ddb command for inspecting PTEs (authored by bnovkov).
riscv/pmap.c: Add a ddb command for inspecting PTEs
Fri, Jul 10, 4:04 PM
bnovkov closed D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.
Fri, Jul 10, 4:04 PM
bnovkov closed D57003: riscv/mp_machdep.c: Flush the TLB after releasing APs.
Fri, Jul 10, 4:04 PM
bnovkov closed D56924: riscv/pmap.c: Add a ddb command for inspecting PTE hierachy.
Fri, Jul 10, 4:03 PM
bnovkov closed D56923: riscv: Add SpacemiT K1 vendor and CPU IDs.
Fri, Jul 10, 4:03 PM

Thu, Jul 9

bnovkov added inline comments to D58028: hwpmc: add RAPL energy-counter class (AMD + Intel).
Thu, Jul 9, 7:26 PM

Wed, Jul 8

bnovkov accepted D58086: x86/local_apic.c: Fiddle with thermal LVT slot only if supported.

LGTM, provided that @kib has no complaints.

Wed, Jul 8, 8:38 PM
bnovkov accepted D58110: x86/local_apic.c: Factor out version read and max LVT slot computation.
Wed, Jul 8, 8:30 PM

Tue, Jul 7

bnovkov added inline comments to D52166: bhyve: implement single USB device passthrough support.
Tue, Jul 7, 8:05 PM
bnovkov added inline comments to D58086: x86/local_apic.c: Fiddle with thermal LVT slot only if supported.
Tue, Jul 7, 7:28 PM
bnovkov added inline comments to D57176: clk: Initial support for the SpacemiT K1 clock control units.
Tue, Jul 7, 7:19 PM
bnovkov added a comment to D57692: acpica: Fix SRAT memory allocation and CPU enablement handling.

I have no further suggestions or complaints after this one, I think we can land this after it's addressed, provided there are no complaints from anyone else.

Tue, Jul 7, 7:02 PM
bnovkov added inline comments to D57178: sdhci: Initial support for the SpacemiT K1 sdhci controller.
Tue, Jul 7, 6:59 PM

Mon, Jul 6

bnovkov added inline comments to D57887: Fix some leaks in usr.sbin/bhyve/block_if.c.
Mon, Jul 6, 9:22 PM

Sun, Jul 5

bnovkov updated the diff for D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.

Address @markj 's and @mhorne 's comments:

  • add an svinval-aware pmap_invalidate_page variant
  • remove awkward atop conversion
Sun, Jul 5, 12:45 PM
bnovkov added inline comments to D57623: riscv: Add support for the Svinval extension.
Sun, Jul 5, 12:26 PM

Sat, Jul 4

bnovkov accepted D57494: bhyve: allow overriding snapshot socket directory.
Sat, Jul 4, 2:19 PM

Sat, Jun 27

bnovkov added inline comments to D57887: Fix some leaks in usr.sbin/bhyve/block_if.c.
Sat, Jun 27, 1:02 PM
bnovkov added a comment to D57494: bhyve: allow overriding snapshot socket directory.

Two more nits, looks good otherwise.

Sat, Jun 27, 12:52 PM

Jun 20 2026

bnovkov added inline comments to D57692: acpica: Fix SRAT memory allocation and CPU enablement handling.
Jun 20 2026, 5:18 PM
bnovkov committed rGf879eb3febb6: libc/dbm: Differentiate between uninitialized and end-of-db cursors (authored by bnovkov).
libc/dbm: Differentiate between uninitialized and end-of-db cursors
Jun 20 2026, 2:29 PM
bnovkov closed D57670: libc/dbm: Differentiate between uninitialized and end-of-db cursors.
Jun 20 2026, 2:29 PM
bnovkov added a comment to D57494: bhyve: allow overriding snapshot socket directory.

One more thing, could you please document this feature in bhyve's manpage?

Jun 20 2026, 3:25 AM

Jun 19 2026

bnovkov accepted D57619: bhyve: Add CPU pinning diagnostic message.
Jun 19 2026, 7:49 PM
bnovkov added inline comments to D57494: bhyve: allow overriding snapshot socket directory.
Jun 19 2026, 6:06 PM
bnovkov updated the diff for D57670: libc/dbm: Differentiate between uninitialized and end-of-db cursors.

Address @markj's comments

Jun 19 2026, 5:29 PM
bnovkov added inline comments to D57670: libc/dbm: Differentiate between uninitialized and end-of-db cursors.
Jun 19 2026, 5:23 PM
bnovkov added inline comments to D57619: bhyve: Add CPU pinning diagnostic message.
Jun 19 2026, 5:09 PM
bnovkov added a comment to D51635: dbm_nextkey: Always return an error if we've reached the end of the database.
In D51635#1315903, @ae wrote:

I think this commit breaks the case, when cursor is not yet set:

R_NEXT  Retrieve the key/data pair immediately after the cursor.
        If the cursor is not yet set, this is the same as the
        R_FIRST flag.

at least we found that now it is required to pass R_FIRST in the read loop:

+       flags = R_FIRST;
-       while ((ret = dbh->seq(dbh, &keycol, &valuecol, R_NEXT)) == 0) {
+       while ((ret = dbh->seq(dbh, &keycol, &valuecol, flags)) == 0) {
+               if (flags == R_FIRST)
+                       flags = R_NEXT;

otherwise the application didn't see any entries in db file.

Jun 19 2026, 3:41 PM
bnovkov requested review of D57670: libc/dbm: Differentiate between uninitialized and end-of-db cursors.
Jun 19 2026, 3:41 PM
bnovkov accepted D57396: ctermid(3): Fix return values section.
Jun 19 2026, 2:12 PM
bnovkov committed rG1665954e508f: uart: Add support for the Intel XScale controller (authored by bnovkov).
uart: Add support for the Intel XScale controller
Jun 19 2026, 2:06 PM
bnovkov closed D57629: uart: Add support for the Intel XScale controller.
Jun 19 2026, 2:06 PM

Jun 18 2026

bnovkov updated the summary of D57629: uart: Add support for the Intel XScale controller.
Jun 18 2026, 2:47 AM
bnovkov requested review of D57629: uart: Add support for the Intel XScale controller.
Jun 18 2026, 2:43 AM

Jun 17 2026

bnovkov requested review of D57624: riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range.
Jun 17 2026, 9:23 PM
bnovkov requested review of D57623: riscv: Add support for the Svinval extension.
Jun 17 2026, 9:21 PM
bnovkov added inline comments to D54648: Introduce libbhyve.
Jun 17 2026, 5:46 PM
bnovkov updated the diff for D54648: Introduce libbhyve.

Address @ivy 's comments and fix a a build failure in pci_virtio_scsi_ctl.c.

Jun 17 2026, 5:45 PM
bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Simplify control flow

Jun 17 2026, 5:12 PM

Jun 13 2026

bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Address @markj 's comments.

Jun 13 2026, 1:39 PM

Jun 12 2026

bnovkov committed rG23c99b64918e: bhyve: Document vCPU range pinning (authored by bnovkov).
bhyve: Document vCPU range pinning
Jun 12 2026, 9:31 AM
bnovkov closed D57480: bhyve: Document vCPU range pinning.
Jun 12 2026, 9:31 AM

Jun 11 2026

bnovkov added a comment to D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

@markj after chasing down a few issues you pointed out, I've decided to opt for the pmap_klookup approach instead since I think it's a more straightforward solution.

Jun 11 2026, 8:21 PM
bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Address @markj's comments.

Jun 11 2026, 8:18 PM

Jun 6 2026

bnovkov added a reviewer for D57480: bhyve: Document vCPU range pinning: manpages.
Jun 6 2026, 8:40 PM

Jun 5 2026

bnovkov requested review of D57480: bhyve: Document vCPU range pinning.
Jun 5 2026, 9:25 PM
bnovkov committed rG8f6c577c9f70: bhyve(8): allow cpu pinning using N-M:X-Y ranges (authored by antranigv_freebsd.am).
bhyve(8): allow cpu pinning using N-M:X-Y ranges
Jun 5 2026, 4:12 PM
bnovkov closed D54937: bhyve(8): allow cpu pinning using N-M:X-Y ranges.
Jun 5 2026, 4:12 PM

Jun 1 2026

bnovkov added a comment to D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

@markj I know it's been a while, but could you take another look at the updated BAR management scheme? My last testing runs with ppt devices were successful, but I've yet to re-test the patch after this rebase.

Jun 1 2026, 6:27 PM
bnovkov updated the diff for D54641: bhyve/pci_emul: Use vmem to track BAR allocations.

Rebase

Jun 1 2026, 6:22 PM
bnovkov updated the diff for D54648: Introduce libbhyve.

Rebase

Jun 1 2026, 6:21 PM

May 31 2026

bnovkov added inline comments to D57364: bhyve: Implement virtio 1.0.
May 31 2026, 10:38 AM
bnovkov added a comment to D57177: sys/dts: Add SD card overlays for the BananaPi-F3 SoC.

Seems good to bring these in.

Are you running with mainline u-boot? I have not kept track of its status for this hardware.

May 31 2026, 10:13 AM
bnovkov updated the diff for D57177: sys/dts: Add SD card overlays for the BananaPi-F3 SoC.

Address @mhorne 's comments.

May 31 2026, 10:03 AM

May 27 2026

bnovkov accepted D57265: limits: Improve consistency.
May 27 2026, 3:37 PM

May 26 2026

bnovkov requested changes to D57259: libsys, libutil: Document RLIMIT_VMM.

This partially overlaps with D57067. Let me know how you want to handle the overlap.

May 26 2026, 9:16 PM
bnovkov updated the diff for D56925: riscv/pmap.c: Avoid spurious kernel page faults when inserting new PTEs.

Address @markj 's comment.

May 26 2026, 7:41 PM

May 22 2026

bnovkov updated the test plan for D57176: clk: Initial support for the SpacemiT K1 clock control units.
May 22 2026, 6:42 PM
bnovkov updated the test plan for D57178: sdhci: Initial support for the SpacemiT K1 sdhci controller.
May 22 2026, 6:39 PM
bnovkov requested review of D57178: sdhci: Initial support for the SpacemiT K1 sdhci controller.
May 22 2026, 6:37 PM
bnovkov requested review of D57177: sys/dts: Add SD card overlays for the BananaPi-F3 SoC.
May 22 2026, 6:37 PM
bnovkov requested review of D57176: clk: Initial support for the SpacemiT K1 clock control units.
May 22 2026, 6:37 PM
bnovkov requested review of D57175: riscv: Add spacemit SoC files to the build.
May 22 2026, 6:37 PM

May 18 2026

bnovkov requested review of D57067: vmm: Fully adopt the getrlimit(2) machinery for limiting the number of VMM instances.
May 18 2026, 3:33 PM

May 17 2026

bnovkov accepted D57013: p9fs.4: MLINK to virtio_p9fs.4.
May 17 2026, 9:36 PM