Skip to content

VFIO/Integrated switching fix and ACL correction

Armas Spann requested to merge as/vfio_fix into main

This merge fixes the "reboot" message when switching from Integrated to VFIO, as well as the ACL reload after gfx change.

Issue Description:

  1. Since the call to switch takes longer as a normal DBus call(as it is done synchronous), the notifier kicks in before the laststate is updated (timing problem/race condition).
  2. ACL didn't worked correctly on gfx change

Solution(fix):

  1. To avoid this behavior, we're setting a "pollerDelay" of 5s when switching from integrated to vfio state. We also implemented a double check of the current state, reported by asusctl.
  2. Added reload of ACL on gfx change (was unimplemented)
Edited by Armas Spann

Merge request reports