Bhyve's vmm is a self-contained modern component and thus a good candidate for use of C99 types.
Details
Details
- Reviewers
jhb manu markj pmooney_pfmooney.com kib - Group Reviewers
bhyve - Commits
- rS350492: vmx: use C99 bool, not boolean_t
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/amd64/vmm/intel/vmx_msr.c | ||
---|---|---|
56 ↗ | (On Diff #60043) | I would use the opportunity and write return ((msr_var & (1UL << (bitpos + 32)) != 0); |
66 ↗ | (On Diff #60043) | Same. |
101 ↗ | (On Diff #60043) | Same. |
sys/amd64/vmm/vmm_lapic.c | ||
143 ↗ | (On Diff #60043) | return (msr >= 0x800 && msr <= 0xBFF); |
164 ↗ | (On Diff #60043) | Same. |
sys/amd64/vmm/vmm_util.c | ||
49 ↗ | (On Diff #60043) | return (strcmp(...) == 0); |
58 ↗ | (On Diff #60043) | Same. |