Cavity-assisted quantum computing in a silicon nanostructure