Re: [PATCH] libs/devicemodel: fix test for DM_OP availability

2021-01-04 Thread Roger Pau Monné
On Mon, Jan 04, 2021 at 03:12:02PM +0100, Roger Pau Monne wrote: > Current check for DM_OP availability in osdep_xendevicemodel_open will > always fail, because using DOMID_INVALID as the domain parameter will > make the hypervisor return -ESRCH, which will disable the usage of > the DOM_OP interfa

[PATCH] libs/devicemodel: fix test for DM_OP availability

2021-01-04 Thread Roger Pau Monne
Current check for DM_OP availability in osdep_xendevicemodel_open will always fail, because using DOMID_INVALID as the domain parameter will make the hypervisor return -ESRCH, which will disable the usage of the DOM_OP interface. Fix this by checking the errno code of the test ioctl against the pr