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, Oct 8, 1:21 PM
Unknown Object (File)
Tue, Oct 8, 1:10 PM
Unknown Object (File)
Thu, Oct 3, 10:38 AM
Unknown Object (File)
Wed, Sep 18, 8:11 PM
Unknown Object (File)
Sep 8 2024, 11:35 PM
Unknown Object (File)
Sep 8 2024, 1:58 PM
Unknown Object (File)
Sep 8 2024, 7:33 AM
Unknown Object (File)
Aug 18 2024, 9:40 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 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.