decode query kvm into command-line parameters