pistons, heads, both?

Most likely, yes. Your machinist should take into consideration how much the block was decked and how much was shaved off the heads to get your desired compression ratio and then shave the intake side of the heads or the intake itself.