From nobody Mon Feb 9 02:51:12 2026 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=fail(p=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1688366445; cv=none; d=zohomail.com; s=zohoarc; b=Blx6RaFihlO+J4flS8gdxyN5D1d2dWYiIobms6qSJxosQ2zMbKHwikq+xMsXiVALlEvumD2O2hfMQ93epz0G6dtNLjDmQ/t4DisTQG0kgrcr7+9Lg7A8whg1H0taX82+L6yHZ9bCJFiYUEVTck2FiMozIesjmQVtYG6BJoH2Zps= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688366445; 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=KvCXAZ6YkJVm4M+uSGZQpYqslr3kQR2nQFeLliNzlKE=; b=VmRStchmfnyJYjc8BLoZDyNkHb5mEVYrD60ODS+fhWe/7OxpmbZ2aCexPpIiOeJ3Evw5o5ZRkfSwm2nSKpNF7v2sev7oS2b2MpY5w52k71DezrN8PB6YAOg/uzWYG9rvqzLJQKqYuw7J0qb2dkVYSQq7dOaeYzEiPJt7rOunNSk= 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=fail 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 1688366445925575.4561259555499; Sun, 2 Jul 2023 23:40:45 -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-281-15riJeMgN2a2lflIGbyNNg-1; Mon, 03 Jul 2023 02:40:41 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 95BDE81DA29; Mon, 3 Jul 2023 06:40:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8048C1121319; Mon, 3 Jul 2023 06:40:38 +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 53B411946A72; Mon, 3 Jul 2023 06:40:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EF79B1946595 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B0CDBF641C; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A97DEF6431 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.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 89EEA873236 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-VJ-j33QIPE2Aro-f8dVpRQ-1; Mon, 03 Jul 2023 02:40:30 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 83875218B0; Mon, 3 Jul 2023 06:30:38 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9D304138FC; Mon, 3 Jul 2023 06:30:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oEcfHA1romShOAAAMHmgww (envelope-from ); Mon, 03 Jul 2023 06:30:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688366444; 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=KvCXAZ6YkJVm4M+uSGZQpYqslr3kQR2nQFeLliNzlKE=; b=A9thFPLaqCp9CXq/qg5LdesSgdiMQJsh1kboHGwq0Ea5N69fC8Nw+SYhSLVLkWpyHZ/zjC Dj/yrPtNa/J9PAIVTpUtbv9hhdbwRI6Q8q6Tup6qwBbNbVKw1xNHI+EuqrMv1XpApGt8EU HtgZ5o7N6DRJDY81oVRhGB64wQZLHsU= X-MC-Unique: 15riJeMgN2a2lflIGbyNNg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: VJ-j33QIPE2Aro-f8dVpRQ-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH RESEND 2/4] qemu: Validate notify VM exit feature is available only on x86 Date: Mon, 3 Jul 2023 14:30:29 +0800 Message-ID: <20230703063031.27687-3-lma@suse.de> In-Reply-To: <20230703063031.27687-1-lma@suse.de> References: <20230703063031.27687-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 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: , Cc: mprivozn@redhat.com, Lin Ma Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.de Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1688366447801100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Lin Ma --- src/qemu/qemu_validate.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index a53729d349..6ec5af0028 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -219,8 +219,18 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, } break; =20 - case VIR_DOMAIN_FEATURE_SMM: case VIR_DOMAIN_FEATURE_KVM: + if (def->kvm_features) { + if (def->kvm_features->features[VIR_DOMAIN_KVM_NOTIFY_VMEX= IT] !=3D VIR_TRISTATE_SWITCH_ABSENT && + !ARCH_IS_X86(def->os.arch)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("Notification VM exit is only support= ed on x86 architecture")); + return -1; + } + } + break; + + case VIR_DOMAIN_FEATURE_SMM: case VIR_DOMAIN_FEATURE_XEN: case VIR_DOMAIN_FEATURE_ACPI: case VIR_DOMAIN_FEATURE_PAE: --=20 2.41.0