>vtd_pt_enable_fast_path(IntelIOMMUState *s, uint16_t source_id)
>>      }
>>
>>      if (vtd_switch_address_space(vtd_as) == false) {
>> +        VTDPASIDCacheEntry *pc_entry = &vtd_as->pasid_cache_entry;
>
>Is there a reason why you don't declare this in the second if?
>If not at the top of the function, why this intermediary level?

Ah. Thanks, I just missed that, I'll send a v2.

>
>Reported-by: Clement Mathieu--Drif <[email protected]>
>Tested-by: Clement Mathieu--Drif <[email protected]>
>
>> +
>>          /* We switched off IOMMU region successfully. */
>>          success = true;
>> +
>> +        if (s->root_scalable) {
>> +            pc_entry->pasid_entry = *pe;
>> +            pc_entry->valid = true;
>> +        }
>>      }
>>

Reply via email to