From nobody Mon Apr 29 00:20:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1563445810; cv=none; d=zoho.com; s=zohoarc; b=oLCyfKE4csdDm/Ah6TnVJdgxBOsD9bMXdmVOcH+R971RJ5c8pFx5z7zV96bXtmFPq+/CxDRam4NlxjvtB6z3KqB14woiocZj4SwMxiQvkp7YI83jRwiAriYz4OwHcsX6fKPd/a6tmWbQDbpTR9Uhm2ibb4AlFh3fi98yu409SRU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563445810; 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:ARC-Authentication-Results; bh=7xGiHqwNMVrro9qe8S6aZ0I9QACAIFbFkI2sfdp0k5g=; b=Nq9JSSQQCAIl/4BxTkvkIFGnnOlmYMb0Zc4Fvt4zfwW7/EQD3c8h5bddxwVlVNpZ17uEvWRYopFByNFHwSLD68Ev64t0G2jiiuHlxCcotZez9vcgMhoc7RQ3pXNmV3KAkvd568s+E2r8tguiHP0T51/C2WtkfZQ9mPhekdRNU9w= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1563445810817191.1527752557488; Thu, 18 Jul 2019 03:30:10 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3922A81F35; Thu, 18 Jul 2019 10:30:08 +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 82EEA5DAA4; Thu, 18 Jul 2019 10:30:07 +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 534AA1800206; Thu, 18 Jul 2019 10:30:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x6IAU4DK001086 for ; Thu, 18 Jul 2019 06:30:04 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8C51C19C67; Thu, 18 Jul 2019 10:30:04 +0000 (UTC) Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 84E6119C65 for ; Thu, 18 Jul 2019 10:30:02 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CA85759465 for ; Thu, 18 Jul 2019 10:30:00 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id r1so28071231wrl.7 for ; Thu, 18 Jul 2019 03:30:00 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id 91sm55107650wrp.3.2019.07.18.03.29.57 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 03:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=CY9trzYX3wRvrn8rhpnTWdaPKO82BWjeSBv8yPp+zMQ=; b=H2Kx80x4qcJrfmDwnKD8GijMk7QVL91aZ9EeeP8cDYrf4xFazlyOCDiey0zDnyLCRq VVkIFCWU0gOjeoKl4Z78F6HrM60lGN0t2gSLougjfgvcGHr48Xf6P6s+tPJBV7GZKSw/ N3hxUtSC1/vZbFMNYozEELgFAVFsC/YQQAD0zrkbPmEWkek4ecdlXQGUzpIpuz7uoldj 63wXHnHs/FVPtARRzz9sk7JrxzUk4qK5mkmx5ULQAOIwT6lq/7CDleZNHPa4VPyzogm4 RRtZhHSjvIfLPlxjy7Dj4g4DFlXJXABo/kmVejXrgv9wPYLGRK4dlM1Eri5KvOXqgCq9 QhBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=CY9trzYX3wRvrn8rhpnTWdaPKO82BWjeSBv8yPp+zMQ=; b=Tu593Y148bZnK21UL9eCz/x3wLOeyD5YhwIIKm9Z20dpeLkCapYx3sglZy27PXNMOb YURFeU2NVHOj5kynE+HUO5qsUBgTWcbx3m0XK+z5GBPjezXpDvL/DqNqCKBESqTWCGB9 45ZlSr8+Imt2oFeMNQkjuoc63jm9T5Rx017AgsPYGOE/G4SDA1tHKMAvsHRdsO1ZrR1g HwBKRkKqsqNkIj+gXNxLeqmXavOZ1+oBBVDf2TyNg3YwKYKab7e6zgtj9gWbNfCeqniE /6Ic2pVJEeBI+S5ngPjphkL8D3XeT026GjDPfllEMiUAG3nbADisR2ayflC4TGXPKHi0 kAYA== X-Gm-Message-State: APjAAAWBcJTYdOEKsLMCRe/HhrGqKr7xsXMdDcfgHmZogwtwjMx9vcTS KvP7FAgYOdesE3mw4bXv5Tvbc3XImIJ6Mw== X-Google-Smtp-Source: APXvYqxnrfwp1Le7p3eezGAnTPiJZPNIZZfdmKLhvmdSi4ubVQdncRTLyP1WjBYwovVN8vEkHj8uzg== X-Received: by 2002:a5d:438e:: with SMTP id i14mr45785919wrq.122.1563445798947; Thu, 18 Jul 2019 03:29:58 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Thu, 18 Jul 2019 12:29:53 +0200 Message-Id: <20190718102953.9973-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 18 Jul 2019 10:30:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 18 Jul 2019 10:30:01 +0000 (UTC) for IP:'209.85.221.67' DOMAIN:'mail-wr1-f67.google.com' HELO:'mail-wr1-f67.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.1 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.221.67 mail-wr1-f67.google.com 209.85.221.67 mail-wr1-f67.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] test_driver: implement virDomainInjectNMI 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 18 Jul 2019 10:30:09 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 2e33a9dd55..90e1ede7c4 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -6716,6 +6716,29 @@ testDomainScreenshot(virDomainPtr dom ATTRIBUTE_UNUS= ED, } +static int +testDomainInjectNMI(virDomainPtr domain, + unsigned int flags) +{ + virDomainObjPtr vm =3D NULL; + int ret =3D -1; + + virCheckFlags(0, -1); + + if (!(vm =3D testDomObjFromDomain(domain))) + return -1; + + if (virDomainObjCheckActive(vm) < 0) + goto cleanup; + + /* do nothing */ + ret =3D 0; + cleanup: + virDomainObjEndAPI(&vm); + return ret; +} + + static int testDomainSendKey(virDomainPtr domain, unsigned int codeset, @@ -7792,6 +7815,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .nodeGetCPUMap =3D testNodeGetCPUMap, /* 1.0.0 */ .domainRename =3D testDomainRename, /* 4.1.0 */ .domainScreenshot =3D testDomainScreenshot, /* 1.0.5 */ + .domainInjectNMI =3D testDomainInjectNMI, /* 5.6.0 */ .domainSendKey =3D testDomainSendKey, /* 5.5.0 */ .domainGetMetadata =3D testDomainGetMetadata, /* 1.1.3 */ .domainSetMetadata =3D testDomainSetMetadata, /* 1.1.3 */ -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list