[Libvirt-cim] [PATCH 1 of 2] Creates and register provider class GuestCrashAlertIndication
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Wed Aug 19 15:58:39 UTC 2009
Richard Maciel wrote:
> # HG changeset patch
> # User Richard Maciel <rmaciel at linux.vnet.ibm.com>
> # Date 1248549583 10800
> # Node ID 0377e5c28fba407e7bf2aae4c5f81d8e521a2adb
> # Parent 522c25cd3023342fedd387a64e0d6224e33745b9
> Creates and register provider class GuestCrashAlertIndication
>
> Signed-off-by: Richard Maciel <rmaciel at linux.vnet.ibm.com>
>
> diff -r 522c25cd3023 -r 0377e5c28fba Makefile.am
> --- a/Makefile.am Thu Aug 13 09:32:18 2009 -0700
> +++ b/Makefile.am Sat Jul 25 16:19:43 2009 -0300
> @@ -55,7 +55,8 @@
> schema/InputPool.mof \
> schema/HostedAccessPoint.mof \
> schema/ServiceAccessBySAP.mof \
> - schema/SAPAvailableForElement.mof
> + schema/SAPAvailableForElement.mof \
> + schema/GuestCrashAlertIndication.mof
You have a tab here - you should use spaces instead.
>
> INTEROP_MOFS = \
> schema/ComputerSystem.mof \
> @@ -129,7 +130,8 @@
> schema/InputPool.registration \
> schema/HostedAccessPoint.registration \
> schema/ServiceAccessBySAP.registration \
> - schema/SAPAvailableForElement.registration
> + schema/SAPAvailableForElement.registration \
> + schema/GuestCrashAlertIndication.registration
Same here.
>
> INTEROP_REGS = \
> schema/RegisteredProfile.registration \
> diff -r 522c25cd3023 -r 0377e5c28fba schema/GuestCrashAlertIndication.mof
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/schema/GuestCrashAlertIndication.mof Sat Jul 25 16:19:43 2009 -0300
> @@ -0,0 +1,17 @@
> +// Copyright IBM Corp. 2007
> +
> +[Description ("Xen guest crash alert"),
> + Provider("cmpi::Virt_GuestCrashAlertIndication")
> +]
> +class Xen_GuestCrashAlertIndication : CIM_AlertIndication
> +{
> + //uint32 RaiseIndication([IN] CIM_InstCreation REF TheIndication);
You'll need this method. Your provider is calling
stdi_raise_indication(), which in turn does a callback to the CIMOM to
call RaiseIndication().
> +};
> +
> +[Description ("KVM guest crash alert"),
> + Provider("cmpi::Virt_GuestCrashAlertIndication")
> +]
> +class KVM_GuestCrashAlertIndication : CIM_AlertIndication
> +{
> + //uint32 RaiseIndication([IN] CIM_InstCreation REF TheIndication);
Same here.
> +};
> diff -r 522c25cd3023 -r 0377e5c28fba schema/GuestCrashAlertIndication.registration
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/schema/GuestCrashAlertIndication.registration Sat Jul 25 16:19:43 2009 -0300
> @@ -0,0 +1,4 @@
> +# Copyright IBM Corp. 2007
> +# Classname Namespace ProviderName ProviderModule ProviderTypes
> +Xen_GuestCrashAlertIndication root/virt Virt_GuestCrashAlertIndicationProvider Virt_GuestCrashAlertIndication indication method
> +KVM_GuestCrashAlertIndication root/virt Virt_GuestCrashAlertIndicationProvider Virt_GuestCrashAlertIndication indication method
>
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list