Putin wants a war. Period. I'm unsure if China want that.. unless it's on their own terms.
I get the impression China thought it would be over one way or another in a matter of weeks - although that is a little at odds with supposed leaks from Russian officials that China would move on Taiwan around the end of 2022 while the West was distracted by the war.