• D
    qemu: stop passing virConnectPtr into qemuMonitorStartCPUs · aed679da
    Daniel P. Berrangé 提交于
    There is a long standing hack to pass a virConnectPtr into the
    qemuMonitorStartCPUs method, so that when the text monitor prompts
    for a disk password, we can lookup virSecretPtr objects. This causes
    us to have to pass a virConnectPtr around through countless methods
    up the call chain....except some places don't have any virConnectPtr
    available so have always just passed NULL. We can finally fix this
    disastrous design by using virGetConnectSecret() to open a connection
    to the secret driver at time of use.
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    aed679da
qemu_monitor_json.c 230.1 KB