Page MenuHomeFreeBSD

bhyve: Fix virtio-input event array resizing
Needs ReviewPublic

Authored by markj on Mon, Oct 12, 6:39 PM.
Tags
None
Referenced Files
F176401475: D60679.id189658.diff
Sun, Oct 18, 2:54 PM
F176381600: D60679.id.diff
Sun, Oct 18, 10:04 AM
Unknown Object (File)
Sat, Oct 17, 9:01 AM
Unknown Object (File)
Sat, Oct 17, 6:33 AM
Unknown Object (File)
Sat, Oct 17, 3:26 AM
Unknown Object (File)
Sat, Oct 17, 2:59 AM
Unknown Object (File)
Fri, Oct 16, 6:38 PM
Unknown Object (File)
Wed, Oct 14, 9:26 PM
Subscribers

Details

Reviewers
corvink
Group Reviewers
bhyve
Summary

Use the new array size when calling realloc(). Note that this queue
stores events read from a host evdev device, i.e., it is not
guest-controlled.

While here, use the cdefs.h __unused macro and use them correctly, i.e.,
don't mark "arg" as unused when it isn't.

Fixes: 054accac71e0 ("Add a virtio-input device emulation.")
Reported by: Brian Delgado from Intel using Anthropic Opus 4.8

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78097
Build 74980: arc lint + arc unit