Iraq won. Arguably. The Iranian armies were collapsing by 1988. Iraq got its original territories and a defensible line back. Iran had to abandon their offensive ambitions vs Iraq.
Iraqs original war aims, however, were foiled. They did not get Khuzestan.
The next step for Ukraine is the multi-year “peace process”. It takes a while to agree on the shape and size of the negotiating table.
In the end, I expect the line of control to be near where it is currently.