In the meantime, sauté the onion cubes and garlic in olive oil and add the ham cubes. Deglaze with cream and milk. Add tomato quarters, pesto and parsley and let simmer.
Melt the cheese in the sauce and season with salt, pepper and possibly white wine.
Mix the finished sauce with the drained pasta. Put the saucepan on the stove again for 3 minutes and reduce the sauce a little while stirring constantly.