virsh.setmem: Case extend to cover more functional scenarios

Signed-off-by: Yanbing Du <ydu@redhat.com>