On 29.09.2021 10:13, Michal Orzel wrote: > On 23.09.2021 14:54, Oleksandr Andrushchenko wrote: >> @@ -149,6 +172,10 @@ bool vpci_process_pending(struct vcpu *v) >> if ( !bar->mem ) >> continue; >> >> + data.start_gfn = is_hardware_domain(v->vpci.pdev->domain) ? >> + _gfn(PFN_DOWN(bar->addr)) : >> + _gfn(PFN_DOWN(bar->guest_addr)); > I believe this would look better with the following alignment: > data.start_gfn = is_hardware_domain(v->vpci.pdev->domain) > ? _gfn(PFN_DOWN(bar->addr)) > : _gfn(PFN_DOWN(bar->guest_addr));
FWIW I agree, yet personally I think the conditional operator here even wants to move inside the _gfn(PFN_DOWN()). Jan