From nobody Thu Apr 25 02:00:36 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=1560251649; cv=none; d=zoho.com; s=zohoarc; b=m+fva5PvNPes008YNRw4SxI1/NGMEmEl1e71poF54Az6eI8ReE6ZLvxlnqwGomYdchNp642YF3FLQoUid67lyiNHJM7Kb8+36anvc/4xcpaxt2a/bRUm9rb53eKULuwCh+x8/znPTpw+xSP4+bguzxnZ5mRMngnU5mQKyEJxWx4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560251649; 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=jWUHclP8c/OvVQXFm43tp6MOZTGOAB8xTM90hqBCtqc=; b=Ug5hZu8ANd8ON+lgvy4SWR80jZhitNAjhBgbR/s7o76gaAIxWp81IPahJO75f6cToLuWDlHZ+IdmA7NT9VJEdAFWU7ij6kM9431kpYc7ERAAJv4nUGlBAK8iB4LhYFrmCf5LV9fMst5uM2ojbcIZP7hbTYFVxaeJ5W8ELCTIKG4= 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 1560251649594832.225445894676; Tue, 11 Jun 2019 04:14:09 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3C6AA307D863; Tue, 11 Jun 2019 11:13:25 +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 307936149B; Tue, 11 Jun 2019 11:13: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 470D61806B0F; Tue, 11 Jun 2019 11:12:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5BB7naT026191 for ; Tue, 11 Jun 2019 07:07:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8885760C18; Tue, 11 Jun 2019 11:07:49 +0000 (UTC) Received: from mx1.redhat.com (ext-mx20.extmail.prod.ext.phx2.redhat.com [10.5.110.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 834DC60BF1 for ; Tue, 11 Jun 2019 11:07:47 +0000 (UTC) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.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 B1F3130BB54A for ; Tue, 11 Jun 2019 11:07:33 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id w13so19483860eds.4 for ; Tue, 11 Jun 2019 04:07:33 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id x4sm2124936eda.22.2019.06.11.04.07.30 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 04:07:31 -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=WOKJFEJVJ8Nb0rS48yRUifaiv7/KZuG7JDWnKWxFbX4=; b=Gbn0F4HHvgr53YjsE3CH4ZN2+RxR2HDGnOpWDoJmwv0bV9PWqpg1I4hqZbyxyfGpxc Z/yGTwrt/YvXLeO0VcBAB9Ju/W5ANLs+cWYDj5l0Xd0zVqXPM5GdVwTYzGW6nr9tIDSi JBr2NSfQfaBZknmCGq01RE46ayP6qKDzE1YXnSo5ttE+IkBwsnHOCDUsAe4lHGJynLkn 4Ihf388ILGTecgN9eIO9iA2oLbxA9euFLfkS3vqb/6S/TI7RffhcoJMcwyh4XwsVfk28 ZsLB/gPZDF4OJaH/2QcKXDsnUPfDRmvVATfIO0MhFVIaUVeFAprLw8ztUtbFN+jR31Vl qPEg== 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=WOKJFEJVJ8Nb0rS48yRUifaiv7/KZuG7JDWnKWxFbX4=; b=oMgnRNE294l5MqU5ERu7BBHSX+yTtDpTqIMLenVwsbxQzeIxFmrC9DgumSFv1TSeH+ bZVh0SpNbxIsIRz11zPGf15tkjI5kawLw2XIKwO/imNP9AStnVGhLFpWSs6leMoHx1vS Vqthuf5n0TI/zyiQNObeickchzOuejcBKORY2V9JOAsweZWvA0iSWnOASSt043Pb+vBe Cw7DNONwN9ikgpDLJXLKH30TgkQZ5FV9rG782EinwsO84oPHWM0YPJWQ1iAdRg3QLHaC N2Th26xgRqo+gohqnuodANmHoWM8cMuEPUdPf5ULrRIbr0DLon9/8K2n8MvpMkE9N3eB +WEA== X-Gm-Message-State: APjAAAUmKEN1ZK75zgj+xlhOac+mFdcQ7mvUauNL+87urIUivvBJa9NI kArOBINlBbCCMFbKNA3xkDJQRNJ/Am0= X-Google-Smtp-Source: APXvYqwNdGVxj0X+NITDLE03+N70+z1oDueYTJPFKQTDAbXZDwtr5aaTTvvYnwYncWbYl0KFeuG0SA== X-Received: by 2002:a50:cb0a:: with SMTP id g10mr47688843edi.273.1560251252023; Tue, 11 Jun 2019 04:07:32 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Tue, 11 Jun 2019 13:07:26 +0200 Message-Id: <20190611110726.4885-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.49]); Tue, 11 Jun 2019 11:07:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 11 Jun 2019 11:07:33 +0000 (UTC) for IP:'209.85.208.67' DOMAIN:'mail-ed1-f67.google.com' HELO:'mail-ed1-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_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.208.67 mail-ed1-f67.google.com 209.85.208.67 mail-ed1-f67.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.49 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] test_driver: implement virDomainGetLaunchSecurityInfo 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Tue, 11 Jun 2019 11:14:00 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Since this is the test driver and this is tied to AMD CPUs at the moment, we can pretend that the domain doesn't have launch security and always return 0 parameters. Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 1aa79ce898..213f17808b 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2284,6 +2284,18 @@ testDomainGetOSType(virDomainPtr dom ATTRIBUTE_UNUSE= D) } +static int +testDomainGetLaunchSecurityInfo(virDomainPtr domain ATTRIBUTE_UNUSED, + virTypedParameterPtr *params ATTRIBUTE_UNU= SED, + int *nparams, + unsigned int flags) +{ + virCheckFlags(0, -1); + *nparams =3D 0; + return 0; +} + + static unsigned long long testDomainGetMaxMemory(virDomainPtr domain) { @@ -7011,6 +7023,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainDestroy =3D testDomainDestroy, /* 0.1.1 */ .domainDestroyFlags =3D testDomainDestroyFlags, /* 4.2.0 */ .domainGetOSType =3D testDomainGetOSType, /* 0.1.9 */ + .domainGetLaunchSecurityInfo =3D testDomainGetLaunchSecurityInfo, /* 5= .5.0 */ .domainGetMaxMemory =3D testDomainGetMaxMemory, /* 0.1.4 */ .domainSetMaxMemory =3D testDomainSetMaxMemory, /* 0.1.1 */ .domainSetMemory =3D testDomainSetMemory, /* 0.1.4 */ -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list