HomeFreeBSD

bhyve: Address some warnings in bhyverun.c

Description

bhyve: Address some warnings in bhyverun.c

  • Add const and __unused qualifiers where appropriate.
  • Localize some global variables.
  • Consistently spell vmexit state as "vme" in vmexit handlers, to avoid shadowing the global vm_exit state array.
  • Similarly, avoid shadowing "optarg".

MFC after: 2 weeks

Details

Provenance
markjAuthored on Sep 8 2022, 11:08 PM
Parents
rG6cb261620da3: bhyve: Use designated initializers for virtio_consts tables
Branches
Unknown
Tags
Unknown