China wants a stable Kyrgyzstan. The leader of Kyrgyzstan was seen as unstable and clashing with everyone else. That is why the FSB got rid of him.
China is a major trade partner with Russia, so this will not be a problem.
They also both want the US to stay there and fight in Afghanistan to keep the Al Qaeda problem in check.