Hello! > I like this approach, but it runs into problems: > As you read above the current documentation says that the flags field > must be zero and the current KVM_SET_GSI_ROUTING handler bails out if it > isn't. So userland would need to know whether it's safe to set that > field.
This problem does not exist because: a) Older platforms do not need this flag, so they expect to get zero. b) ARM64 + GICv3 platform cannot work without this flag. This is perfectly OK combination IMO. Userland just knows, whether it needs to supply device ID or not. For example, my modified qemu now has kvm_msi_flags global variable which defaults to 0. ITS code, then, if activated, changes it to KVM_MSI_VALID_DEVID, and qemu starts supplying device IDs to the related calls. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm