[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH v2 1/2] conf: nodedev: Don't refresh host caps in testdriver



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 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]