From: Ilias Stamatis Date: Tue, 11 Jun 2019 11:07:26 +0000 (+0200) Subject: test_driver: Implement virDomainGetLaunchSecurityInfo X-Git-Tag: v5.5.0-rc1~289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072390cbf0e5ddc306597afa8a2eab1a6ab6b98d;p=thirdparty%2Flibvirt.git test_driver: Implement virDomainGetLaunchSecurityInfo Since the behaviour of launch security is heavily dependent on 3rd party vendors (e.g. AMD SEV) where the data returned can be essentially anything, the most reasonable approach here in the test driver is not to try return any data. Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- diff --git a/src/test/test_driver.c b/src/test/test_driver.c index bf9622d5c7..8ef843b203 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2399,6 +2399,19 @@ testDomainGetOSType(virDomainPtr dom ATTRIBUTE_UNUSED) } +static int +testDomainGetLaunchSecurityInfo(virDomainPtr domain ATTRIBUTE_UNUSED, + virTypedParameterPtr *params ATTRIBUTE_UNUSED, + int *nparams, + unsigned int flags) +{ + virCheckFlags(0, -1); + + *nparams = 0; + return 0; +} + + static unsigned long long testDomainGetMaxMemory(virDomainPtr domain) { @@ -7126,6 +7139,7 @@ static virHypervisorDriver testHypervisorDriver = { .domainDestroy = testDomainDestroy, /* 0.1.1 */ .domainDestroyFlags = testDomainDestroyFlags, /* 4.2.0 */ .domainGetOSType = testDomainGetOSType, /* 0.1.9 */ + .domainGetLaunchSecurityInfo = testDomainGetLaunchSecurityInfo, /* 5.5.0 */ .domainGetMaxMemory = testDomainGetMaxMemory, /* 0.1.4 */ .domainSetMaxMemory = testDomainSetMaxMemory, /* 0.1.1 */ .domainSetMemory = testDomainSetMemory, /* 0.1.4 */