Two Atmega328 chips on same board but power only one at a time

The AVR can get power through any input pin so you can't just disconnect Vcc. I think it would work if you grounded the Reset pin of one of the chips. Another problem is the clock crystal. I think if you leave the XTL2 pin of the second processor disconnected you can use the XTL1 pin of the original processor as an external clock on the second processor.