提交 072390cb 编写于 作者: I Ilias Stamatis 提交者: Erik Skultety

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: NIlias Stamatis <stamatis.iliass@gmail.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 56c6893f
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册