Chop onion and garlic.
Heat olive oil in a pan and sauté garlic and onion.
Add bacon and cook together.
Pour in heavy cream and bring to a simmer.
Add Parmesan cheese and stir until the sauce thickens.
Add the cooked pasta to the sauce and mix well.
Season with salt and pepper.
Serve in a bowl and sprinkle parsley on top.