As far as I know, you can hot add CPUs to Windows 2008 Server R2 but you cannot hot remove them.
In powershell (PowerCLI) use Get-VM vmname | Set-VM -NumCPU 2
replace vmname with the name of the VM you want to change the number of CPUs on. The above example will set the VM to 2 CPUs,