]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: look up mdevs by UUID and parent
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 16 Jul 2021 19:33:50 +0000 (14:33 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Fri, 6 Aug 2021 20:02:41 +0000 (15:02 -0500)
commitfcae7a44c3b3559d1d8e05543deee41db7a8fdb1
tree7250313e66bda7753a4a00cf6700ed9330474ea8
parent3bd8181bc5548a0ce81107cbfb480dfdcba5679d
nodedev: look up mdevs by UUID and parent

Since UUID is not guaranteed to be unique by mdevctl, we may have more
than one nodedev with the same UUID. Therefore, we need to disambiguate
when looking up mdevs by specifying the UUID and parent address, which
mdevctl guarantees to be a unique combination.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/virnodedeviceobj.c
src/conf/virnodedeviceobj.h
src/node_device/node_device_driver.c