Hi Peter, >> @@ -7062,6 +7065,15 @@ qemuBuildAccelCommandLine(virCommand *cmd, >> def->kvm_features->features[VIR_DOMAIN_KVM_DIRTY_RING] == VIR_TRISTATE_SWITCH_ON) { >> virBufferAsprintf(&buf, ",dirty-ring-size=%d", def->kvm_features->dirty_ring_size); >> } >> + >> + if (def->features[VIR_DOMAIN_FEATURE_KVM] == VIR_TRISTATE_SWITCH_ON && >> + def->kvm_features->features[VIR_DOMAIN_KVM_RAPL] == VIR_TRISTATE_SWITCH_ON) { >> + virBufferAddLit(&buf, ",rapl=true"); >> + >> + if (def->kvm_features->rapl_helper_socket != NULL) { >> + virBufferAsprintf(&buf, ",rapl-helper-socket=%s", def->kvm_features->rapl_helper_socket); >> + } > > As noted above; qemu makes the socket mandatory so the check doesn't > make much sense. > I'm not sure to follow the above remark. The socket is mandatory in QEMU yes, so it should also be mandatory in libvirt so that we don't make the QEMU process fails at start ? Or do we just let the user check what QEMU is returning so that the user correct later the XML ? Thanks Anthony > Also we'll most likely need to use virQEMUBuildBufferEscapeComma here to > properly format paths with a comma since they are user-provided. >