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
F175841823: D60679.diff
Tue, Oct 13, 7:46 PM
F175841712: D60679.diff
Tue, Oct 13, 7:45 PM
F175821724: D60679.id189658.diff
Tue, Oct 13, 4:00 PM
F175818036: D60679.diff
Tue, Oct 13, 3:14 PM
F175804082: D60679.id189658.diff
Tue, Oct 13, 12:04 PM
F175798613: D60679.id189658.diff
Tue, Oct 13, 11:00 AM
F175772872: D60679.diff
Tue, Oct 13, 5:53 AM
F175760730: D60679.id.diff
Tue, Oct 13, 3:22 AM
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