提交 6ccf128a 编写于 作者: I Ilias Stamatis 提交者: Erik Skultety

test_driver: implement virDomainInjectNMI

Signed-off-by: NIlias Stamatis <stamatis.iliass@gmail.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 9deacfad
...@@ -6750,6 +6750,29 @@ testDomainScreenshot(virDomainPtr dom ATTRIBUTE_UNUSED, ...@@ -6750,6 +6750,29 @@ testDomainScreenshot(virDomainPtr dom ATTRIBUTE_UNUSED,
} }
static int
testDomainInjectNMI(virDomainPtr domain,
unsigned int flags)
{
virDomainObjPtr vm = NULL;
int ret = -1;
virCheckFlags(0, -1);
if (!(vm = testDomObjFromDomain(domain)))
return -1;
if (virDomainObjCheckActive(vm) < 0)
goto cleanup;
/* do nothing */
ret = 0;
cleanup:
virDomainObjEndAPI(&vm);
return ret;
}
static int static int
testDomainSendKey(virDomainPtr domain, testDomainSendKey(virDomainPtr domain,
unsigned int codeset, unsigned int codeset,
...@@ -7827,6 +7850,7 @@ static virHypervisorDriver testHypervisorDriver = { ...@@ -7827,6 +7850,7 @@ static virHypervisorDriver testHypervisorDriver = {
.nodeGetCPUMap = testNodeGetCPUMap, /* 1.0.0 */ .nodeGetCPUMap = testNodeGetCPUMap, /* 1.0.0 */
.domainRename = testDomainRename, /* 4.1.0 */ .domainRename = testDomainRename, /* 4.1.0 */
.domainScreenshot = testDomainScreenshot, /* 1.0.5 */ .domainScreenshot = testDomainScreenshot, /* 1.0.5 */
.domainInjectNMI = testDomainInjectNMI, /* 5.6.0 */
.domainSendKey = testDomainSendKey, /* 5.5.0 */ .domainSendKey = testDomainSendKey, /* 5.5.0 */
.domainGetMetadata = testDomainGetMetadata, /* 1.1.3 */ .domainGetMetadata = testDomainGetMetadata, /* 1.1.3 */
.domainSetMetadata = testDomainSetMetadata, /* 1.1.3 */ .domainSetMetadata = testDomainSetMetadata, /* 1.1.3 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册