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)
Wed, Apr 10, 1:07 AM
Unknown Object (File)
Tue, Apr 9, 3:05 PM
Unknown Object (File)
Sun, Apr 7, 4:44 PM
Unknown Object (File)
Mar 11 2024, 1:12 AM
Unknown Object (File)
Feb 4 2024, 11:04 PM
Unknown Object (File)
Feb 2 2024, 8:59 AM
Unknown Object (File)
Feb 1 2024, 9:26 PM
Unknown Object (File)
Jan 17 2024, 9:04 AM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks added inline comments.
usr.sbin/bhyve/pci_nvme.c
257 ↗(On Diff #49865)

@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
257 ↗(On Diff #49865)

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 ↗(On Diff #49920)

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.