Add kvm xm file
Fix a bug