From nobody Fri Nov 21 10:11:10 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1762546990; cv=none; d=zohomail.com; s=zohoarc; b=FfZHMbWrdMMODuhaT465S5S0fv1BcMFCQepu8TkAlDJ8Yabfn6mC1BLmAZhnFpAiLXDrKTR8ZXpKwaqYUfzPbxRQ4FfemAXUQC/AZ+XO6ck6z1XGQp0o/iLXGHntD/LnSUygVy2DtAfHvj4qOyE+DYkARcm0SOO7Y60oFXezQUo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762546990; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=9HBH1GJu7E4ah8YyFYg0sSQEtV1H3hhWH006MK+b5w4=; b=ajVpUHsYt/Kwhu0QcFt5qTuI3hbw46JlyXhv1psl0zGI1KU2+rRFGHoK2wGd76w+W93HOYbDRpnZ26lXpw+m4izSEHJxmNZ4VuJX9KIMpMbNMYfW+P8pqdBu3V5Id/jOK/482Zr5AvK778zjj4qpfDlk9JIoyBAPK+vQlQWD7NI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1762546990958294.250561601125; Fri, 7 Nov 2025 12:23:10 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 17CAF41BC8; Fri, 7 Nov 2025 15:23:10 -0500 (EST) Received: from [172.19.199.29] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id B069844415; Fri, 7 Nov 2025 15:17:07 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 5ADD9443FE; Fri, 7 Nov 2025 15:14:30 -0500 (EST) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 7730B44437 for ; Fri, 7 Nov 2025 15:14:18 -0500 (EST) Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-7c6cc44ff62so842546a34.3 for ; Fri, 07 Nov 2025 12:14:18 -0800 (PST) Received: from home ([72.191.74.189]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7c6f1132705sm2041451a34.28.2025.11.07.12.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Nov 2025 12:14:15 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762546457; x=1763151257; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9HBH1GJu7E4ah8YyFYg0sSQEtV1H3hhWH006MK+b5w4=; b=fc8FztSPrMp8TOVFoMxnPwJZbIjoa19ZZaQGZ0Xr0iQj4Ka5n46XcO0pJcr8FzeBjG hpCGxY6rRbmGuqL/yaisc0cgoes4UjaSs2PTyxjA2Pn4rXK2Tfkyv3l5MO2G1ukC3Fcz l801NwQE2v+wHyGp/l2eboR5QeeJjyjytURDKchu/ZH+PTa5VFPvFtJGPetuG4pfReTu A5V9ho7NUTZgD5JDDnnnZXnxsjWOd4+zXZJ8tZpvLajqYHR4u9mMjYKz+7hrORrHG60T BHE2rbRHHhBJ/IzzZqkdQ9CErKGBAtK1qJ+itBY6Oy5kr28wPPuExIDSGvOf6MfEHokS 53Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762546457; x=1763151257; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9HBH1GJu7E4ah8YyFYg0sSQEtV1H3hhWH006MK+b5w4=; b=mxE4YkBj3rkAl85AUEEN5y6qNWXT5wZmBjJ11o5O6JoXKkpzKOwO7NZyoBjKe82Vap TreCdFeZ3Gg8N2DSXqunnda1xoUv06ttk4imM6ZPJDeSqpVBb2iFSMzmE7bQwk946O8s Y2CZ3O0C9si52/WvJt/qXKNuiLJYf9s9giRa910l0AqjRONZvNZdi8KC4QTGyLs+cHcm UsAWzChRCG+BNfRTE22Zdss7B8tfHVKlBl3u27TF+Y3e0wBykXOH0eZf4zASN9H/odv5 cxpuKr3nWeV+0Vp7XeWjc2DzLZ4BOYtIKVOwSyXa1q5U41zBeVp1bkyOnog+Zv9lm/q2 sO8Q== X-Gm-Message-State: AOJu0YzbOhtW9iS7pWVAqYJduL9wmpTP3jbCQTiDIuz0J4M4KHhJJFU3 j7aMjQfZ0Ww5p3dShmTpGzaiBSPlH+HhwB8bYoivtMxwdn8QvXAyEvI75HFgpg== X-Gm-Gg: ASbGncuuq2OCjPO6IX2mdJz6VzLRQ99JwNzYL75OekyVUSaV8MUOvTHCq5ryPZfX9IS ChEme3Exc79WBmSw0RggRZP0vtPBqalH5UiIFMH1Kpya5+P0r8jf6PIqVjoZYCRc5uRTlUqluD0 dlbP5g5K+/dswWhYYFoHcXFD0wjosv9e90nrQRZySzcY1pXRDjIGy5IVopAsncFdfVcsVipSqk1 6b7+7rpm5Y2+cqWAquI9/KSM+a14eH26EMlKuyPIPq5HVfq68F6zKxydofuIGWUCP65uLn/mG4P EmwBiGicNLMrywklVlvA+vsL/A+vOePkgeMHDjCsOkf/td3u+K3udSd7FT01qL/B1M5MxtSLExk +EH5EafAjrfuf9iI52Z/5tn/yUlfDUCr2U32kaicgS1xVC8SfF5YKs3Exmx/IATBIRdm4o8mVsU m1UeNLIpuk/A== X-Google-Smtp-Source: AGHT+IFrfxoh46C2fTuuG26/5cueP/rrj1ahsq/yMC5wvnyhHz8TUNy3xT0XuQussI9CsWB0ZoKLhg== X-Received: by 2002:a05:6830:2649:b0:7b7:59c5:766c with SMTP id 46e09a7af769-7c6fd7e2f31mr365467a34.33.1762546456150; Fri, 07 Nov 2025 12:14:16 -0800 (PST) From: Praveen K Paladugu To: devel@lists.libvirt.org Subject: [PATCH v4 9/9] tests:qemuxmlconftest: Add case for hyperv domains Date: Fri, 7 Nov 2025 14:14:00 -0600 Message-ID: <20251107201401.30004-10-praveenkpaladugu@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251107201401.30004-1-praveenkpaladugu@gmail.com> References: <20251107201401.30004-1-praveenkpaladugu@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: PPUWRF7WCAR66DMCM4WLYQLLR6SCRLB2 X-Message-ID-Hash: PPUWRF7WCAR66DMCM4WLYQLLR6SCRLB2 X-MailFrom: praveenkpaladugu@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: wei.liu@kernel.org X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1762546992852158500 Content-Type: text/plain; charset="utf-8" From: Praveen K Paladugu Add qemuxmlconftest test for hyperv domains. Signed-off-by: Praveen K Paladugu Reviewed-by: Martin Kletzander --- ...86_64-q35-headless.x86_64-latest+mshv.args | 48 ++++++++++ ...x86_64-q35-headless.x86_64-latest+mshv.xml | 87 +++++++++++++++++++ ...mshv-x86_64-q35-headless.x86_64-latest.err | 1 + .../mshv-x86_64-q35-headless.xml | 35 ++++++++ tests/qemuxmlconftest.c | 5 ++ 5 files changed, 176 insertions(+) create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-l= atest+mshv.args create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-l= atest+mshv.xml create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-l= atest.err create mode 100644 tests/qemuxmlconfdata/mshv-x86_64-q35-headless.xml diff --git a/tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+m= shv.args b/tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+msh= v.args new file mode 100644 index 0000000000..e72d109a52 --- /dev/null +++ b/tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv.args @@ -0,0 +1,48 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/var/lib/libvirt/qemu/domain--1-qemu_mshv \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/var/lib/libvirt/qemu/domain--1-qemu_mshv/.local/share \ +XDG_CACHE_HOME=3D/var/lib/libvirt/qemu/domain--1-qemu_mshv/.cache \ +XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-qemu_mshv/.config \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3Dqemu_mshv,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-qemu_mshv/master-key.aes"}' \ +-machine q35,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ram,hpet= =3Doff,acpi=3Don \ +-accel mshv \ +-cpu qemu64 \ +-m size=3D2097152k \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":2147483648}= ' \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid 1f739a78-5d77-42e8-8c53-4371e64f2c6f \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc,driftfix=3Dslew \ +-global kvm-pit.lost_tick_policy=3Ddelay \ +-no-shutdown \ +-boot strict=3Don \ +-device '{"driver":"pcie-root-port","port":8,"chassis":1,"id":"pci.1","bus= ":"pcie.0","multifunction":true,"addr":"0x1"}' \ +-device '{"driver":"pcie-root-port","port":9,"chassis":2,"id":"pci.2","bus= ":"pcie.0","addr":"0x1.0x1"}' \ +-device '{"driver":"pcie-root-port","port":10,"chassis":3,"id":"pci.3","bu= s":"pcie.0","addr":"0x1.0x2"}' \ +-device '{"driver":"pcie-root-port","port":11,"chassis":4,"id":"pci.4","bu= s":"pcie.0","addr":"0x1.0x3"}' \ +-device '{"driver":"pcie-root-port","port":12,"chassis":5,"id":"pci.5","bu= s":"pcie.0","addr":"0x1.0x4"}' \ +-device '{"driver":"qemu-xhci","id":"usb","bus":"pci.1","addr":"0x0"}' \ +-blockdev '{"driver":"file","filename":"/var/lib/libvirt/images/test.qcow2= ","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}'= \ +-blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qco= w2","file":"libvirt-1-storage"}' \ +-device '{"driver":"virtio-blk-pci","bus":"pci.2","addr":"0x0","drive":"li= bvirt-1-format","id":"virtio-disk0","bootindex":1}' \ +-chardev pty,id=3Dcharserial0 \ +-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","in= dex":0}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-global ICH9-LPC.noreboot=3Doff \ +-watchdog-action reset \ +-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.3","add= r":"0x0"}' \ +-object '{"qom-type":"rng-random","id":"objrng0","filename":"/dev/urandom"= }' \ +-device '{"driver":"virtio-rng-pci","rng":"objrng0","id":"rng0","bus":"pci= .4","addr":"0x0"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+m= shv.xml b/tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv= .xml new file mode 100644 index 0000000000..a183a3dd6a --- /dev/null +++ b/tests/qemuxmlconfdata/mshv-x86_64-q35-headless.x86_64-latest+mshv.xml @@ -0,0 +1,87 @@ + + qemu_mshv + 1f739a78-5d77-42e8-8c53-4371e64f2c6f + Qemu + MSHV + 2097152 + 2097152 + 1 + + hvm + + + + + + + + qemu64 + + + + + + + destroy + restart + restart + + /usr/bin/qemu-system-x86_64 + + + + +
+ + +
+ + +
+ + + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + + + + + + + + +