virsh.dumpxml: Add cases for --update-cpu option

Signed-off-by: Yanbing Du <ydu@redhat.com>
These codes own similar structure, so you may simplify them.