[libvirt] [PATCH v2 1/6] conf: Parse common scheduler attributes in separate function

Ján Tomko jtomko at redhat.com
Mon Apr 15 13:55:26 UTC 2019


On Mon, Apr 15, 2019 at 03:14:22PM +0200, Martin Kletzander wrote:
>This will become useful later when parsing emulatorsched parameters which don't
>need the rest of the current function.
>
>Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
>---
> src/conf/domain_conf.c | 70 +++++++++++++++++++++++++-----------------
> 1 file changed, 41 insertions(+), 29 deletions(-)
>
>diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
>index b969a9f6e566..15838c2a23f5 100644
>--- a/src/conf/domain_conf.c
>+++ b/src/conf/domain_conf.c
>@@ -18441,45 +18441,24 @@ virDomainLoaderDefParseXML(xmlNodePtr node,
> }
>
>
>-static virBitmapPtr
>-virDomainSchedulerParse(xmlNodePtr node,
>-                        const char *name,

Consider making the 'name' XML attribute mandatory only if this 'name'
argument is non-NULL.

>-                        virProcessSchedPolicy *policy,
>-                        int *priority)

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190415/87e32efa/attachment-0001.sig>


More information about the libvir-list mailing list