Page MenuHomeFreeBSD

RISC-V: un-ifdef vm.kvm_size and vm.kvm_free sysctls
ClosedPublic

Authored by mhorne on Feb 5 2020, 11:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 24 2024, 4:25 AM
Unknown Object (File)
Sep 26 2024, 4:32 AM
Unknown Object (File)
Sep 18 2024, 7:02 AM
Unknown Object (File)
Sep 17 2024, 1:56 PM
Unknown Object (File)
Sep 12 2024, 1:55 PM
Unknown Object (File)
Sep 7 2024, 9:14 PM
Unknown Object (File)
Sep 5 2024, 4:34 PM
Unknown Object (File)
Sep 4 2024, 10:10 PM
Subscribers

Details

Summary

While here, remove some trailing whitespace.

Test Plan

sysctl output:

root@qemu:~ # sysctl vm.kvm_size
vm.kvm_size: 34359738368
root@qemu:~ # sysctl vm.kvm_free
vm.kvm_free: 33460060160

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29259
Build 27176: arc lint + arc unit

Event Timeline

markj added inline comments.
sys/riscv/riscv/pmap.c
1445–1446

While here, perhaps add a space around '|' and add CTLFLAG_MPSAFE. Otherwise Giant will be acquired around each call to the handler. There is some work in progress to invert the default behaviour wrt Giant, but adding the flag now will reduce the number of handlers that need to be audited.

This revision is now accepted and ready to land.Feb 6 2020, 3:09 AM

Add CTLFLAG_MPSAFE. Move sysctl description to a separate line.

This revision now requires review to proceed.Feb 10 2020, 12:32 AM
This revision is now accepted and ready to land.Feb 11 2020, 4:30 AM
This revision was automatically updated to reflect the committed changes.