inject-nmi: Implementing the remote protocol

This commit is contained in:
Lai Jiangshan 2011-05-10 16:26:04 +08:00 committed by Eric Blake
parent 9a1b5dc66f
commit b8c776eb63
4 changed files with 13 additions and 3 deletions

View File

@ -35,7 +35,7 @@ sub name_to_ProcName {
@elems = map { $_ =~ s/Nwfilter/NWFilter/; $_ =~ s/Xml/XML/;
$_ =~ s/Uri/URI/; $_ =~ s/Uuid/UUID/; $_ =~ s/Id/ID/;
$_ =~ s/Mac/MAC/; $_ =~ s/Cpu/CPU/; $_ =~ s/Os/OS/;
$_ } @elems;
$_ =~ s/Nmi/NMI/; $_ } @elems;
join "", @elems
}

View File

@ -6493,7 +6493,7 @@ static virDriver remote_driver = {
remoteDomainSnapshotDelete, /* domainSnapshotDelete */
remoteQemuDomainMonitorCommand, /* qemuDomainMonitorCommand */
remoteDomainOpenConsole, /* domainOpenConsole */
NULL, /* domainInjectNMI */
remoteDomainInjectNMI, /* domainInjectNMI */
};
static virNetworkDriver network_driver = {

View File

@ -817,6 +817,11 @@ struct remote_domain_undefine_args {
remote_nonnull_domain dom;
};
struct remote_domain_inject_nmi_args {
remote_nonnull_domain dom;
unsigned int flags;
};
struct remote_domain_set_vcpus_args {
remote_nonnull_domain dom;
int nvcpus;
@ -2176,7 +2181,8 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_BLKIO_PARAMETERS = 206,
REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED = 207,
REMOTE_PROC_STORAGE_VOL_UPLOAD = 208,
REMOTE_PROC_STORAGE_VOL_DOWNLOAD = 209
REMOTE_PROC_STORAGE_VOL_DOWNLOAD = 209,
REMOTE_PROC_DOMAIN_INJECT_NMI = 210
/*
* Notice how the entries are grouped in sets of 10 ?

View File

@ -504,6 +504,10 @@ struct remote_domain_define_xml_ret {
struct remote_domain_undefine_args {
remote_nonnull_domain dom;
};
struct remote_domain_inject_nmi_args {
remote_nonnull_domain dom;
u_int flags;
};
struct remote_domain_set_vcpus_args {
remote_nonnull_domain dom;
int nvcpus;