• D
    qemu: lookup node device against nodedev driver before getting XML · b8a3ed95
    Daniel P. Berrangé 提交于
    Some of the node device APIs are a little odd because they accept a
    virNodeDevicePtr object but are still implemented by the virt drivers.
    The first thing the virt drivers need to do is get the XML config
    associated with the node device, and that means talking to the node
    device driver.
    
    This worked previously because with monolithic libvirtd, both the
    virt driver and node device driver were in the same daemon and thus
    a single virConnectPtr can talk to both drivers.
    
    With the split daemon world though, the virNodeDevicePtr passed into
    the APIs is associated with the QEMU driver virConnectPtr, which has
    no ability to invoke APIs against the node device driver. We must thus
    get a duplicate virNodeDevicePtr object which is associated with a
    virConnectPtr for the node device driver.
    Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    b8a3ed95
qemu_driver.c 742.4 KB