úÎYT‚D      !"#$%&'()*+,-./0123456789:;<=>?@ABC Safe-InferredIThis error can be raised if any error occured during receiving the list, . for example: try to to fetch a list in domU. -This error can be raised if peecked value of   is not expected.  Peeked value JThis error can be raised if handle can not be opened, insufficient rights  for example. Generalized version of   DEFDEFNone#Information about a single domain. Domain shutdown reason it' s only meaningful if domain has "  flag. Domain flags. It'-s translated from xc_dominfo structure, so it's possible to / be mutual exclusion flags in one domain, e.g. " and  . %Domain id, wrapper around G. (6Entry point of the hypervisor interface connection, it's a file descriptor ; in xen 3 and pointer to corresponging structure in xen 4. H*Constats used in this instance defined in  xen/sched.h. %  !"#$%&'()IH#  !"#$%&'()#()%&'$#"!   $#"! %&'()IHNone*LThis function will destroy a domain. Destroying a domain removes the domain J completely from memory. This function should be called after sending the D domain a SHUTDOWN control message to free up the domain resources. +BThis function will shutdown a domain. This is intended for use in D fully-virtualized domains where this operation is analogous to the 2 sched_op operations in a paravirtualized domain. ,PThis function unpauses a domain. The domain should have been previously paused. -FThis function pauses a domain. A paused domain still exists in memory A however it does not receive any timeslices from the hypervisor. .GThis function will return information about one or more domains. It is E designed to iterate over the list of domains. If a single domain is G requested, this function will return the next domain in the list - if G one exists. It is, therefore, important in this case to make sure the ( domain requested was the one returned. /QThis function closes an open hypervisor interface. This function can fail if the S handle does not represent an open interface or if there were problems closing the > interface. In the latter case the interface is still closed. 0QThis function opens the handle to the hypervisor interface. Each successful call 7 to this function should have a corresponding call to /. *(Handle to the open hypervisor interface Domain to destroy 0 if success, -1 if error +(Handle to the open hypervisor interface Domain to shutdown Shutdown reason 0 if success, -1 if error ,(Handle to the open hypervisor interface Domain to unpause 0 if success, -1 if error -(Handle to the open hypervisor interface Domain to pause 0 if success, -1 if error .(Handle to the open hypervisor interface  First domain to enumerate from.  The number of requested domains #Pointer to the structure that will  contain the information for  enumerated domains *Number of domains enumerated, -1 on error /0Logger, NULL if stderr Domain builder logger  Open flags *+,-./00/.-,+**+,-./0None1?Open the connection to the hypervisor interface, can fail with  . 2LClose an open hypervisor interface, ignores all possible errors but all the ' same can fail with segfault or sutin. 3HReturns a list of currently runing domains, 1024 maximum, can fail with    and  . 45Pause domain. A paused domain still exists in memory A however it does not receive any timeslices from the hypervisor. 5AUnpause a domain. The domain should have been previously paused. 6MShutdown domain. This is intended for use in fully-virtualized domains where U this operation is analogous to the sched_op operations in a paravirtualized domain. 7RDestroy a domain. Destroying a domain removes the domain completely from memory. & This function should be called after 6" to free up the domain resources. 1234567123456712345671234567None8 Most simple 9 implementation. 9AA Xen transformer. This transformers keeps connection to the Xen  hypervisor interface. =LHelper function for creating high-level interface functions from mid-level. ' Generally high-level function is just "highLevel = withXenHandle midLevel. >/Open new connection to the hypervisor, run any Xen action and close 6 connection if nessesary. This function can fail with Either SomeException with    and any error of providing Xen action. 89:;<=>JKLMNOPQRSTUVW89:;<=>9:;8<=>89:;<=>JKLMNOPQRSTUVWNone?7Returns a lift of domains, this function can fail with    and   . @5Pause domain. A paused domain still exists in memory A however it does not receive any timeslices from the hypervisor. AAUnpause a domain. The domain should have been previously paused. BMShutdown domain. This is intended for use in fully-virtualized domains where U this operation is analogous to the sched_op operations in a paravirtualized domain. CRDestroy a domain. Destroying a domain removes the domain completely from memory. & This function should be called after B" to free up the domain resources. ?@ABC89>?@ABC98>?@ABC?@ABC None/  !"#$%&'89>?@ABC/%&'$#"!  98>?@ABCX        !"#$%&'()**+,,-./0123456789:;<<=>?@6789:ABCDEFGHIJKLMNOPQRSTUVW hen-0.1.1System.Xen.ErrorsSystem.Xen.TypesSystem.Xen.LowSystem.Xen.MidSystem.Xen.High.InternalSystem.Xen.HighDomainShutdownReasonForeign.C.ErrorgetErrnoInvalidDomainShutdownReasonXcHandleOpenErrorDomainGetInfoError System.Xen DomainInfo domainInfoIddomainInfoSsidRefdomainInfoFlagsdomainInfoShutdownReasondomainInfoNumberOfPagesdomainInfoNumberOfSharedPagesdomainInfoSharedInfoFramedomainInfoCpuTimedomainInfoMaxMemKbdomainInfoNubmerOfOnlineVcpusdomainInfoMaxVcpuIddomainInfoDomHandledomainInfoCpuPoolDomainShutdownReasonWatchdogDomainShutdownReasonCrashDomainShutdownReasonSuspendDomainShutdownReasonRebootDomainShutdownReasonPoweroff DomainFlagDomainFlagDebugged DomainFlagHVMDomainFlagRunningDomainFlagBlockedDomainFlagPausedDomainFlagShutdownDomainFlagCrashedDomainFlagDyingDomIdunDomIdXcHandlexc_domain_destroyxc_domain_shutdownxc_domain_unpausexc_domain_pausexc_domain_getinfoxc_interface_closexc_interface_open interfaceOpeninterfaceClose domainGetInfo domainPause domainUnpausedomainShutdown domainDestroyXenXenTunXenTMonadXen withXenHandlerunXenT$fExceptionDomainGetInfoError&$fExceptionInvalidDomainShutdownReason$fExceptionXcHandleOpenErrorbaseGHC.WordWord32$fStorableDomainShutdownReason$fStorableDomainInfo$fMonadRWSrwsXenT$fMonadWriterwXenT$fMonadReaderrXenT$fMonadStatesXenT$fMonadXenXenT$fMonadXenRWST$fMonadXenRWST0$fMonadXenWriterT$fMonadXenWriterT0$fMonadXenReaderT$fMonadXenStateT$fMonadXenStateT0$fMonadXenErrorT$fMonadXenContT