Russia has a major oil contract with China, and so does Iran. Russia has had a major hand in developing Iranian oil capacity.
I understand that Russia wants this war for a number of economic and political reasons.