From nobody Sat Dec 14 19:39:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693603955; cv=none; d=zohomail.com; s=zohoarc; b=kRmtxP0kjAa8ZTWdAbczICQudCo82qjw9n9yjAn98yFVaqfC4gr7Xn4PRnMGO3mdNHDi3e0EnGK8x31jCg2aJ5SXlRwCw7Jyk49m6t+dxhFrsObh2TOtZ2G2Lo58AxZ+08USx8e/IscKr4eUfuOuKVhqKgnNhDPmTgVlPT7cdPE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693603955; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=SqU/WBwMm2uTGdd8R04I6rqpVBT4CMU3gZpxi6sDoJs=; b=Ze5qILG85JmE7vA+tXoS/RKpPtFDNt3pZHr3KKf7Cei9LrGz2vg7kp+Op/01kO+Ta2wLtyj+6Zh8DdzpZ7DK9fBjDt9o+zkAxK7hsWx7WVRF2KmgXlQZFsXU0uCh/p0XWu+VtYgGoU54070tauiflbp18IGeeXwuJl5sABxfCJw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1693603955881838.0465601322569; Fri, 1 Sep 2023 14:32:35 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-558-bv0JdrH2NNiakYZ0ijXSCw-1; Fri, 01 Sep 2023 17:32:31 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3B97D1817904; Fri, 1 Sep 2023 21:32:29 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B1AEDD4781B; Fri, 1 Sep 2023 21:32:27 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 396B51946A46; Fri, 1 Sep 2023 21:32:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7C4C819465B7 for ; Fri, 1 Sep 2023 21:32:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1C470493110; Fri, 1 Sep 2023 21:32:26 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 154FF49310F for ; Fri, 1 Sep 2023 21:32:26 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-inbound-delivery-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EB33A29AB44A for ; Fri, 1 Sep 2023 21:32:25 +0000 (UTC) Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-519-QC5E-ElRNpOWRVZmJjePwQ-1; Fri, 01 Sep 2023 17:32:24 -0400 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2bcba79cedcso30033981fa.1 for ; Fri, 01 Sep 2023 14:32:24 -0700 (PDT) Received: from carol.localdomain (cst-prg-234-228.cust.vodafone.cz. [46.135.234.228]) by smtp.gmail.com with ESMTPSA id x18-20020aa7d6d2000000b0052718577668sm2531198edr.11.2023.09.01.14.32.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 14:32:22 -0700 (PDT) Received: from carol.home (carol.k8r.cz [127.0.0.1]) by carol.localdomain (Postfix) with ESMTP id 92F8CE09B6FA for ; Fri, 1 Sep 2023 23:32:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693603954; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=SqU/WBwMm2uTGdd8R04I6rqpVBT4CMU3gZpxi6sDoJs=; b=ixvTHKbsUxeyloINjSPQZCvKv6pg9qxah7K4c1LgNWV+n259sXXyGrj4OB1+2eFn6/UI7I vHGnTWtjx6eB9DexJA+ASJ/pDN27g4GbM+PazOa8w4/S09BWVugJYbpKeHUM6L5kHxIoVm +5Pay/PhclqbMaYIMXxw29/e+bYDMgE= X-MC-Unique: bv0JdrH2NNiakYZ0ijXSCw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: QC5E-ElRNpOWRVZmJjePwQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693603943; x=1694208743; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SqU/WBwMm2uTGdd8R04I6rqpVBT4CMU3gZpxi6sDoJs=; b=JVubEZHsWIPbM9ltqISlkMkqJyD2RAZz3y0l6ehloSGkNNV281XxpsrTsnqsDQh03E H/GLVPBEGPJS189GbWCZ85JAaTsPnkxKpP/fIN3kQsosAimTLBIRJC2MwzWrm37PeDdd yupLY9sGeCV0BsAoXVV11lEQsvUwpOMjJU/hC+bISFJKCeM9Zzvjpt3HJ9+yrISF7TFx MplEJXk5VruxbPh0KsANn/CdiEa6luaNe2X9TwtEEgsTSOGrnOsAmhc85JVLoQgjar/w 9gRf3fBZOUlSWX1NZ5ONm65qgAHyHAVyhLiLfiRgDIOY0GsDYAburxVXcoNlWPsdXiCl k8hA== X-Gm-Message-State: AOJu0Yyg9UItAdpsUg50X+J/ufarjw2Z1O4+4V5+SdCCpyHiaQFpIN1V O1r4COlWBNJifd9T1qn4PGJ+dojJ9cb5h3xXaIVVlRdv9r4tiRQMf1UFAOxfNqgkHCdsMMgANrV L5BpYmIYrXVmIEj9a3xHDmKsPri8Oe1EvChVvAvPFIeOt+UtVGBF1+l1g+y7saigMFGQ4Svc+VE x/Cas= X-Received: by 2002:ac2:442c:0:b0:4fb:ca59:42d7 with SMTP id w12-20020ac2442c000000b004fbca5942d7mr2505543lfl.33.1693603943197; Fri, 01 Sep 2023 14:32:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4HFFrQ4dlVnPPfB1uyInl+dzCrCbwsPsB/ihbOHykLGo73voiji41S6cofRyUOLqCNM8ptQ== X-Received: by 2002:ac2:442c:0:b0:4fb:ca59:42d7 with SMTP id w12-20020ac2442c000000b004fbca5942d7mr2505533lfl.33.1693603942746; Fri, 01 Sep 2023 14:32:22 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH] conf, schema: Switch iothread/poll values to unsignedLong Date: Fri, 1 Sep 2023 23:32:14 +0200 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693603957163100001 Content-Type: text/plain; charset="utf-8"; x-default="true" They represent nanoseconds, and we accept such values already. Not that anyone would use such values in the wild, but even one person testing QEMU could put in a bigger value and will be bothered with validation errors after every `virsh edit`. Also add a test for it. Resolves: https://issues.redhat.com/browse/RHEL-1717 Signed-off-by: Martin Kletzander Reviewed-by: Peter Krempa --- src/conf/schemas/domaincommon.rng | 6 +++--- tests/genericxml2xmlindata/iothreadids.xml | 23 ++++++++++++++++++++++ tests/genericxml2xmltest.c | 2 ++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 tests/genericxml2xmlindata/iothreadids.xml diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index de3bd1c35c55..2f9ba31c0aec 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -876,17 +876,17 @@ - + - + - + diff --git a/tests/genericxml2xmlindata/iothreadids.xml b/tests/genericxml2= xmlindata/iothreadids.xml new file mode 100644 index 000000000000..671a4672958d --- /dev/null +++ b/tests/genericxml2xmlindata/iothreadids.xml @@ -0,0 +1,23 @@ + + foo + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219136 + 219136 + 1 + 1 + + + + + + + hvm + + + + destroy + restart + destroy + + + diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index 3501eadf5597..ce8073e85a30 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -249,6 +249,8 @@ mymain(void) DO_TEST("cpu-phys-bits-emulate"); DO_TEST("cpu-phys-bits-passthrough"); =20 + DO_TEST("iothreadids"); + virObjectUnref(caps); virObjectUnref(xmlopt); =20 --=20 2.41.0