[libvirt] [PATCH v2 1/2] conf: nodedev: Don't refresh host caps in testdriver
Erik Skultety
eskultet at redhat.com
Fri Jul 13 10:47:10 UTC 2018
On Tue, Jul 10, 2018 at 05:46:01PM -0400, Cole Robinson wrote:
> Add a 'skipUpdateCaps' bool that we set for test_driver.c nodedevs
> which will skip accessing host resources via virNodeDeviceUpdateCaps
>
> Signed-off-by: Cole Robinson <crobinso at redhat.com>
>
...
> @@ -5565,6 +5566,7 @@ testNodeDeviceMockCreateVport(testDriverPtr driver,
> goto cleanup;
> def = NULL;
> objdef = virNodeDeviceObjGetDef(obj);
> + virNodeDeviceObjSetSkipUpdateCaps(obj, true);
I'd probably move this 2 lines up, but I don't really care.
More information about the libvir-list
mailing list