Page MenuHomeFreeBSD

Cosmetic changes to try to inline the memset with SSE/AVX instructions.
ClosedPublic

Authored by araujo on Nov 1 2018, 8:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 25, 12:53 AM
Unknown Object (File)
Feb 9 2025, 2:22 AM
Unknown Object (File)
Feb 1 2025, 4:28 AM
Unknown Object (File)
Jan 24 2025, 11:01 AM
Unknown Object (File)
Jan 17 2025, 7:28 PM
Unknown Object (File)
Jan 13 2025, 6:33 PM
Unknown Object (File)
Jan 13 2025, 4:11 PM
Unknown Object (File)
Jan 10 2025, 8:04 PM
Subscribers

Details

Summary

This topic was discussed on review D17759.

Test Plan

Linux Guest with disk nvme ram.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20592
Build 20013: arc lint + arc unit

Event Timeline

brooks added inline comments.
usr.sbin/bhyve/pci_nvme.c
258–259

@jhb's suggestion was that this should become:

memset(dst, pad, dist_size);

Address the memset according with the suggestion made by @jhb.

araujo marked an inline comment as done.
araujo added inline comments.
usr.sbin/bhyve/pci_nvme.c
258–259

Yes, thank you! I read that wrong, sorry about the noise.

Commit message should mention the switch to size_t.

usr.sbin/bhyve/pci_nvme.c
256

Style(9) would have you do put a blank line after decelerations and do the assignment on a separate line.

This revision is now accepted and ready to land.Nov 5 2018, 5:32 PM
This revision was automatically updated to reflect the committed changes.