mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
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 <stamatis.iliass@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
56c6893ff5
commit
072390cbf0
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user