From nobody Fri May 3 18:16:34 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=1638464483; cv=none; d=zohomail.com; s=zohoarc; b=S5k/fAhYRLP65ZDG9xUEUD76hzlONFtViJzA9N/YATud62LzjRztVI3xTsxw3pDRPMdIpv1GptEfXJx8hW9iBoOlLfrt1VUm8OVWxdYyvSua5+KdvbuDbnSUHxO4pG8CoDZOWgaljbOy0zgRMT+t98sC2VR/nKycxkqDlp4tFyQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638464483; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kmymI7BqsfVBFFDgycRa6OjRx+VmK2rh/WE4fpp83ug=; b=kIWzRs3HMZp82PPZQvizirLymR/OxxDT6VG4iZtxHIB7WQMOY3ItWcltuM58tNuwCVgECg/oVDdkL1/MBf6mg39ddMOcAg5THJen8+ltrRauBzEbjK1fPLPzzy5QOMy5mOTIKGFZ+iTlUVDn7yl3eWtOS3IssgltqFAeU8Udab0= 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 1638464483329495.7933263893184; Thu, 2 Dec 2021 09:01:23 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-374-8bGN1-GfOF6IfwldDm8BdQ-1; Thu, 02 Dec 2021 12:01:20 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6CCF381CCBB; Thu, 2 Dec 2021 17:01:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3447196F4; Thu, 2 Dec 2021 17:01:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9977B1806D03; Thu, 2 Dec 2021 17:01:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2H1Blh011963 for ; Thu, 2 Dec 2021 12:01:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id 792135F4E9; Thu, 2 Dec 2021 17:01:11 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.194.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id C0FE95F4E7; Thu, 2 Dec 2021 17:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638464482; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kmymI7BqsfVBFFDgycRa6OjRx+VmK2rh/WE4fpp83ug=; b=SsX8DF0rsOjEj8RvEtCvPoyI2PZa03yN6znIA2C8LeRqLnXO62lX5y6wT9fJrQhy888YOQ LzQ1aFHhDSobewekMxnz8QSXty1CT37JHAx4G6iH1YEvBuesJYjHAXze3SJMwhwx+2elqi Dm6K/BucbLlqgsFBWCS0EhNbheSzU48= X-MC-Unique: 8bGN1-GfOF6IfwldDm8BdQ-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 1/5] conf: Add bus-lock-ratelimit Date: Thu, 2 Dec 2021 18:01:04 +0100 Message-Id: <20211202170108.121455-2-twiederh@redhat.com> In-Reply-To: <20211202170108.121455-1-twiederh@redhat.com> References: <20211202170108.121455-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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: 1638464488042100001 Content-Type: text/plain; charset="utf-8" QEMU recently introduced a way to limit the rate of VM bus locks. Add libvirt support. Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 34 ++++++++++++++++++++++++++++++++++ src/conf/domain_conf.h | 2 ++ src/qemu/qemu_validate.c | 1 + 3 files changed, 37 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index bdcc3dc2c1..d2202fb6c6 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -172,6 +172,7 @@ VIR_ENUM_IMPL(virDomainFeature, "cfpc", "sbbc", "ibs", + "bus-lock-ratelimit", ); =20 VIR_ENUM_IMPL(virDomainCapabilitiesPolicy, @@ -17860,6 +17861,13 @@ virDomainFeaturesDefParse(virDomainDef *def, break; } =20 + case VIR_DOMAIN_FEATURE_BUS_LOCK_RATELIMIT: + if (virXMLPropULongLong(nodes[i], "value", 0, VIR_XML_PROP_REQ= UIRED, + &def->bus_lock_ratelimit) < 0) + return -1; + def->features[val] =3D VIR_TRISTATE_SWITCH_ON; + break; + case VIR_DOMAIN_FEATURE_LAST: break; } @@ -21666,6 +21674,23 @@ virDomainDefFeaturesCheckABIStability(virDomainDef= *src, case VIR_DOMAIN_FEATURE_MSRS: break; =20 + case VIR_DOMAIN_FEATURE_BUS_LOCK_RATELIMIT: + if (src->features[i] !=3D dst->features[i] || + src->bus_lock_ratelimit !=3D dst->bus_lock_ratelimit) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("State of feature '%s' differs: " + "source: '%s,%s=3D%llu', destination: '%s= ,%s=3D%llu'"), + featureName, + virTristateSwitchTypeToString(src->features= [i]), + "bus_lock_ratelimit", + src->bus_lock_ratelimit, + virTristateSwitchTypeToString(dst->features= [i]), + "bus_lock_ratelimit", + dst->bus_lock_ratelimit); + return false; + } + break; + case VIR_DOMAIN_FEATURE_LAST: break; } @@ -27972,6 +27997,15 @@ virDomainDefFormatFeatures(virBuffer *buf, virDomainIBSTypeToString(def->features[i])); break; =20 + case VIR_DOMAIN_FEATURE_BUS_LOCK_RATELIMIT: + if (def->features[i] =3D=3D VIR_TRISTATE_SWITCH_ON) { + virBufferAsprintf(&childBuf, + "<%s value=3D'%llu'/>\n", + virDomainFeatureTypeToString(i), + def->bus_lock_ratelimit); + } + break; + case VIR_DOMAIN_FEATURE_LAST: break; } diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index c0c07ea6ba..80bf7f4395 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -2054,6 +2054,7 @@ typedef enum { VIR_DOMAIN_FEATURE_CFPC, VIR_DOMAIN_FEATURE_SBBC, VIR_DOMAIN_FEATURE_IBS, + VIR_DOMAIN_FEATURE_BUS_LOCK_RATELIMIT, =20 VIR_DOMAIN_FEATURE_LAST } virDomainFeature; @@ -2824,6 +2825,7 @@ struct _virDomainDef { unsigned long long hpt_maxpagesize; /* Stored in KiB */ char *hyperv_vendor_id; virTristateSwitch apic_eoi; + unsigned long long bus_lock_ratelimit; =20 bool tseg_specified; unsigned long long tseg_size; diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 1de6e05101..e1068ad68a 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -304,6 +304,7 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, case VIR_DOMAIN_FEATURE_PRIVNET: case VIR_DOMAIN_FEATURE_CAPABILITIES: case VIR_DOMAIN_FEATURE_MSRS: + case VIR_DOMAIN_FEATURE_BUS_LOCK_RATELIMIT: case VIR_DOMAIN_FEATURE_LAST: break; } --=20 2.31.1 From nobody Fri May 3 18:16:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1638464489; cv=none; d=zohomail.com; s=zohoarc; b=REPH11gUA/rin7DpDqwyCmXLpubro9unfiLRLjNDLmYleWu9nmcqMdpk65T1jrkrVbydgm+yQWHjX7nNJ3MlBwlzRsU5ohLJfRdh5pd5pRRAWywitsw+TZOVqdHJhQDfgegxFFIQ/C1er2Ws2N+CInPisGPZTaGgyUnToGPgScE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638464489; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dkvrTQf/eTH1gzGk+6zXtvkhyhgTQgN/YlCJkVXXct0=; b=Gzq230ukuAjEhxlO9kxqF6yfE+tmMufayBWXR/jomtwSVH7h2IpJAVfmp6FDQsMlPM0q/s8zG/tYTFgGwYbByuLIGABR2wbW+54ykiSxzpWyZKmMfJgwWD8B5rwrGu6dyKfDX3yZH8DJ1zXqTcp/8+Pxfk+0tRqAAgN2KVTgM9k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 163846448958679.88544255490729; Thu, 2 Dec 2021 09:01:29 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-444-tAJQOZazfbBtk7gu2g-1; Thu, 02 Dec 2021 12:01:23 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB96B84B9A9; Thu, 2 Dec 2021 17:01:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A37D19729; Thu, 2 Dec 2021 17:01:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id F31F74BB7C; Thu, 2 Dec 2021 17:01:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2H1Cpd011973 for ; Thu, 2 Dec 2021 12:01:12 -0500 Received: by smtp.corp.redhat.com (Postfix) id 82FD45F4F6; Thu, 2 Dec 2021 17:01:12 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.194.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id CD3655F4ED; Thu, 2 Dec 2021 17:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638464485; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dkvrTQf/eTH1gzGk+6zXtvkhyhgTQgN/YlCJkVXXct0=; b=WN1hvGagf7cZUOadamkOvpSRVeOifFaJP8rGlrw8VAcAsqRqbdMElTnBKMOK/aa7tiQRUk RDhsAleDd36mKG77QZT/oTEEHR7yCXZ1DCAS17JvQphmipiQmmfdgbdiu2YcF2U6NGrm5Y WE5lk1bCVUB+ccKgJ3QJ8dATQQEntn8= X-MC-Unique: 444-tAJQOZazfbBtk7gu2g-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 2/5] qemu: Add bus-lock-ratelimit Date: Thu, 2 Dec 2021 18:01:05 +0100 Message-Id: <20211202170108.121455-3-twiederh@redhat.com> In-Reply-To: <20211202170108.121455-1-twiederh@redhat.com> References: <20211202170108.121455-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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: 1638464495418100001 Content-Type: text/plain; charset="utf-8" Pass bus-lock-ratelimit to qemu. Signed-off-by: Tim Wiederhake --- src/qemu/qemu_command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index c47998aabd..dee803511b 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7197,6 +7197,10 @@ qemuBuildMachineCommandLine(virCommand *cmd, virBufferAsprintf(&buf, ",cap-ibs=3D%s", str); } =20 + if (def->features[VIR_DOMAIN_FEATURE_BUS_LOCK_RATELIMIT] !=3D VIR_TRIS= TATE_SWITCH_ABSENT) { + virBufferAsprintf(&buf, ",bus-lock-ratelimit=3D%llu", def->bus_loc= k_ratelimit); + } + if (cpu && cpu->model && cpu->mode =3D=3D VIR_CPU_MODE_HOST_MODEL && qemuDomainIsPSeries(def) && --=20 2.31.1 From nobody Fri May 3 18:16:34 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=1638464494; cv=none; d=zohomail.com; s=zohoarc; b=NiHLft9pxFZIT/YU14SXnlm7lsH74q02CFvU0oA+Ogh4TNuDl1ivbgXJQW2kd2dgYcWIQFuBC+snw8tgNRfsvYjwGq2Jf0wFZix011PbQ/uvgtgNprK0B1UVL8EonA1wVRP0LAlqZ/oFbBOQVj5y9Nl+VMkKvM1ccmTfqsIPWSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638464494; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dVELc0X9EFLNxjpWAbOJWkB0VcK7qn/2XD30LjiFLyg=; b=dAScUpVa0pztXZGJlLuD5NjUi02H4F0QQtPkD6NmITaa7+4R0WsAyWny+bIUDb52eEL69GAbeEAKec/yOxy1AgL/xClZ6kkQlYCy8JKhiZPZ7bjfkNsB86CQUVeQveUWsZD1sjtGHwAuFt3uqhMwhk36c2tSsfLMkhi2BhPmGIQ= 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 1638464494552122.80099108727131; Thu, 2 Dec 2021 09:01:34 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-572-7a9fmkKJPh6Z-zAf6mYu3w-1; Thu, 02 Dec 2021 12:01:29 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7F7D11B18BD6; Thu, 2 Dec 2021 17:01:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6243319D9F; Thu, 2 Dec 2021 17:01:23 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2C3A04A7C8; Thu, 2 Dec 2021 17:01:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2H1DFK011984 for ; Thu, 2 Dec 2021 12:01:13 -0500 Received: by smtp.corp.redhat.com (Postfix) id 93D175F4ED; Thu, 2 Dec 2021 17:01:13 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.194.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5D425F4EE; Thu, 2 Dec 2021 17:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638464493; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dVELc0X9EFLNxjpWAbOJWkB0VcK7qn/2XD30LjiFLyg=; b=AmOS9nKXWbTbBEB2wvLTMMnV/copft5eQTQm9oX2UO2klYk0aDVk3ipJyAri4KES7a4Op6 bOe3Xi95fvzcmKoA/zw0YwFTayr7b62L/aE214oyMpMdOnVUKkK13bzjaQCUVFhTPUSvGG 2b5qfCnGzLBSMmIPSIyIlx3ed7I1oio= X-MC-Unique: 7a9fmkKJPh6Z-zAf6mYu3w-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 3/5] doc: schema: Add bus-lock-ratelimit to domain schema Date: Thu, 2 Dec 2021 18:01:06 +0100 Message-Id: <20211202170108.121455-4-twiederh@redhat.com> In-Reply-To: <20211202170108.121455-1-twiederh@redhat.com> References: <20211202170108.121455-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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: 1638464499034100001 Content-Type: text/plain; charset="utf-8" Value is VMM exits per second. Signed-off-by: Tim Wiederhake --- docs/schemas/domaincommon.rng | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index f01b7a6470..e3461ab792 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -6232,6 +6232,13 @@ + + + + + + + --=20 2.31.1 From nobody Fri May 3 18:16:34 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=1638464655; cv=none; d=zohomail.com; s=zohoarc; b=Yk9EEOM/BJJK7UYNoRgAcMkmW0Vz/mZnO/UFOYhuGd5wneRKrtPCIen7zVcr304G4LHcQsjtJLnIR0vwbm26As6kT4QLWvtGc88y6CeQsIXjW2lLxsbNdF89PLovOm1LxayzUYpq4QWPJVGVQVXJN2HS1jVkKjBpYProfpQnIMU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638464655; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iAH3i/eWqEWg7zzgzk0E0uwXSHeWj+xVGxjAgLRV4N4=; b=lj/o4MQRnYhX5X7eaEzEgUSDZkj1S61JpmtwL4qgONJicjfjpu1vY4zvWqDcWbtqFh3miz3l8zkjA5Mpvtn4w0SfnhiLrb1RnxGyJr+U2i0N3SHM3SMDNTaFzF8yjDuiXdHpP1AoelKWs75+w9yI3UcKQsu+y6TRrg4hosXAChg= 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 1638464655695398.7255374891042; Thu, 2 Dec 2021 09:04:15 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-304-3J_doSQSMoGXy24kZaNRmg-1; Thu, 02 Dec 2021 12:04:10 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6F89D190A7DE; Thu, 2 Dec 2021 17:03:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CE23703AE; Thu, 2 Dec 2021 17:03:57 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1C8801806D2D; Thu, 2 Dec 2021 17:03:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2H1En0011989 for ; Thu, 2 Dec 2021 12:01:14 -0500 Received: by smtp.corp.redhat.com (Postfix) id A02E25F4EF; Thu, 2 Dec 2021 17:01:14 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.194.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id E74825F4E9; Thu, 2 Dec 2021 17:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638464654; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=iAH3i/eWqEWg7zzgzk0E0uwXSHeWj+xVGxjAgLRV4N4=; b=GX2S6CcNrEt566eVSF3AEn8Epm8hXPkqIyh1Id7eD75zJXG6I2XI9pwPJrTfunq9PbiEmW 6rgCsZWxHyJo3CPgmgwhDNED0Ol90n3wnQChOXHqy24ehpZTfQCtIPjiS9V2pqdQJ6x5ai fr4TLjBtbOcrc/DF/GqRgvuvs79Ziz0= X-MC-Unique: 3J_doSQSMoGXy24kZaNRmg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 4/5] tests: Add tests for bus-lock-ratelimit Date: Thu, 2 Dec 2021 18:01:07 +0100 Message-Id: <20211202170108.121455-5-twiederh@redhat.com> In-Reply-To: <20211202170108.121455-1-twiederh@redhat.com> References: <20211202170108.121455-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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: 1638464657537100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- tests/qemuxml2argvdata/kvm-features.args | 2 +- tests/qemuxml2argvdata/kvm-features.xml | 1 + tests/qemuxml2xmloutdata/kvm-features.xml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qemuxml2argvdata/kvm-features.args b/tests/qemuxml2argvd= ata/kvm-features.args index 371c382b47..e4fc1bd76c 100644 --- a/tests/qemuxml2argvdata/kvm-features.args +++ b/tests/qemuxml2argvdata/kvm-features.args @@ -11,7 +11,7 @@ QEMU_AUDIO_DRV=3Dnone \ -name guest=3DQEMUGuest1,debug-threads=3Don \ -S \ -object secret,id=3DmasterKey0,format=3Draw,file=3D/tmp/lib/domain--1-QEMU= Guest1/master-key.aes \ --machine pc,usb=3Doff,dump-guest-core=3Doff \ +-machine pc,usb=3Doff,dump-guest-core=3Doff,bus-lock-ratelimit=3D1234 \ -accel kvm \ -cpu host,kvm=3Doff,kvm-hint-dedicated=3Don,kvm-poll-control=3Don \ -m 214 \ diff --git a/tests/qemuxml2argvdata/kvm-features.xml b/tests/qemuxml2argvda= ta/kvm-features.xml index 51229a6c37..3cab81771d 100644 --- a/tests/qemuxml2argvdata/kvm-features.xml +++ b/tests/qemuxml2argvdata/kvm-features.xml @@ -16,6 +16,7 @@ + diff --git a/tests/qemuxml2xmloutdata/kvm-features.xml b/tests/qemuxml2xmlo= utdata/kvm-features.xml index 72e66fcbf5..39d462c7d3 100644 --- a/tests/qemuxml2xmloutdata/kvm-features.xml +++ b/tests/qemuxml2xmloutdata/kvm-features.xml @@ -16,6 +16,7 @@ + --=20 2.31.1 From nobody Fri May 3 18:16:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1638464524; cv=none; d=zohomail.com; s=zohoarc; b=Q6BH8nBP1jN7a2EKEpYj4rcVH5Pr+H+bv7Kh0Xwo9zg/+Z12SYAlqh6SbzSWWFgDh7fRGX/Ewobd+eSctV+PU+my6OcX3wELuDVsyWUnIDPDIyePEtr1edB0U5OYO/mRWnnnVBQauHLD3schvY//wr0loAQWb2VlXwDhuegULwE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638464524; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=1UcKF/X9LV3cmnafxWpAr7PKTMbY/pQMFbqKHbB8phg=; b=OHulbSvl74OzZMDhHaP8cU6hSgYCh2ErnisqC8ZFVJCNm4fvVG0z8FCUqJaiNc3CzioAMuzXmJR+N5392SROsA4lXisGJM+1CR+8J4y3R2gKpLjYAfPYPK4h55ycSzqKXZg6U5Eju9+TbkOF6juwJWzJKF3SawS4pESJhHzhg/E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1638464524362967.7174685874526; Thu, 2 Dec 2021 09:02:04 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-389-1WLS0aRJPa69hA-LbQxeyA-1; Thu, 02 Dec 2021 12:01:32 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A7BFB101F01F; Thu, 2 Dec 2021 17:01:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87B5C60C13; Thu, 2 Dec 2021 17:01:26 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5387B4A7CA; Thu, 2 Dec 2021 17:01:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2H1F49011995 for ; Thu, 2 Dec 2021 12:01:15 -0500 Received: by smtp.corp.redhat.com (Postfix) id ABF955F4ED; Thu, 2 Dec 2021 17:01:15 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.194.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 000335F4E7; Thu, 2 Dec 2021 17:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638464523; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1UcKF/X9LV3cmnafxWpAr7PKTMbY/pQMFbqKHbB8phg=; b=FfsPOfW7s6Y6kKbOAgmnMu9yW6/zYPbebAOc1HeLmaBA+3hs1Z2atsxGB6T9uAzW3v/8fn EAahANii4pQGfAFdp1OGhm3kSlf902pJaERvcXiR/FBSl2zKC0MOHpG8O2VW67Q3m01tms vcyhCYELfYAJSu1TN58Qv9STZjO7XeA= X-MC-Unique: 1WLS0aRJPa69hA-LbQxeyA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 5/5] doc: Document new bus-lock-ratelimit option Date: Thu, 2 Dec 2021 18:01:08 +0100 Message-Id: <20211202170108.121455-6-twiederh@redhat.com> In-Reply-To: <20211202170108.121455-1-twiederh@redhat.com> References: <20211202170108.121455-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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: 1638464527514100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- docs/formatdomain.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index eb8c973cf1..5b38564894 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1864,6 +1864,7 @@ Hypervisors may allow certain CPU / machine features = to be toggled on/off. + ... =20 @@ -2065,6 +2066,9 @@ are: ``fixed-na (fixed in hardware - no longer applicable)``. If t= he attribute is not defined, the hypervisor default will be used. :since:`= Since 6.3.0` (QEMU/KVM only) +``bus-lock-ratelimit`` + Configure the limit for bus-lock VM-Exits per second. + :since:`Since 8.0.0` (QEMU/KVM only) =20 :anchor:`` =20 --=20 2.31.1