• J
    qemu: don't access vmdef within qemu_agent.c · 599ae372
    Jonathon Jongsma 提交于
    In order to avoid holding an agent job and a normal job at the same
    time, we want to avoid accessing the domain's definition while holding
    the agent job. To achieve this, qemuAgentGetFSInfo() only returns the
    raw information from the agent query to the caller. The caller can then
    release the agent job and then proceed to look up the disk alias from
    the vm definition. This necessitates moving a few helper functions to
    qemu_driver.c and exposing the agent data structure (qemuAgentFSInfo) in
    the header.
    
    In addition, because the agent function no longer returns the looked-up
    disk alias, we can't test the alias within qemuagenttest.  Instead we
    simply test that we parse and return the raw agent data correctly.
    Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
    Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
    599ae372
qemu_agent.c 71.3 KB