*
    xh c                   s%    ^ RI t ^ RIHt ^ RIH	t	H
t
HtHtHtHtHtHtHtHt ]! R4      t]
]]]].R3,          t]
]]]].]3,          t]
]].R3,          t]
].]3,          t]
]].R3,          t]
]]].]3,          t]
]].R3,          t]
].]3,          t]
RR]]].]],          3,          t]]]	3,          t]]]	3,          t]]]	3,          t ]]]	3,          t! ! R R	]"4      t#R
 R lt$ERR R llt%ERR R llt&]ERR R ll4       t']ERR R ll4       t'ERR R llt'ERR R llt(R R lt)R R lt*R R lt+R R lt,R  R! lt-ERR" lt.ERR# lt/R$ t0R% t1R& t2R' t3R( t4R) t5R* t6R+ t7R, t8R- t9R. t:R/ t;R0 t< ! R1 R]=4      t> ! R2 R3]=4      t? ! R4 R5]=4      t@ ! R6 R7]=4      tA ! R8 R9]=4      tB ! R: R;]=4      tC ! R< R]=4      tD ! R= R>]=4      tE ! R? R@]=4      tF ! RA RB]=4      tG ! RC RD]=4      tH ! RE RF]=4      tI ! RG RH]=4      tJ ! RI RJ]=4      tK^tL^tM^tN^tO^tP^tQERtR^ tS^tT^tU^tV^tW^tX^ tY^tZ^t[^t\^t]^t^^t_^t`^ta^tb^tc^td^te^tf^	tg^ th^ti^tj^tk^tl^ tm^tn^to^tp^ tq^tr^ts^tt^tu^tv^tw^tx^ty^ tz^@t{^t|RKt}RLt~RMt^t^t^t^t^t^t^ t^@t^tRNtROtRPtRQtRRtRStRTtRUt^t^t^t^t^t^t^t^ t^t^t^t^t^t^ t^@t^tRNtROtRPtRQtRRtRStRTtRUtRVtRWtRXtRYtRZtR[tR\tR]tR^tRKtRLtRMt^t^t^t^t^t^t^t^t^t^ t^@t^tRNtROtRPtRQtRRtRStRTtRUtRVtRWtRXtRYt^tERtERt^ t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^ t^t^t^t^t^t^@t^t^t^t^t^t^ t^@t^t^t^ t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^Et ^Et^Et^ Et^Et^Et^Et^ Et^Et^Et	^Et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t9RtEt:RuEt;RvEt<RwEt=RxEt>RyEt?RzEt@R{EtAR|EtBR}EtCR~EtDREtEREtFREtGREtHREtIREtJREtKREtLREtMREtNREtOREtPREtQREtRREtSREtTREtUREtVREtWREtXREtYREtZREt[REt\REt]REt^REt_REt`REtaREtbREtcREtdREteREtfREtgREthREtiREtjREtkREtlREtmREtnREtoREtpREtqREtrREtsREttREtuREtvREtwREtxREtyREtzREt{REt|REt}REt~REtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtREtER EtEREtEREtEREtEREtEREtEREtEREtEREtER	EtER
EtEREtEREtEREtEREtEREtEREtRtEtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtER EtER!EtER"EtER#EtER$EtER%EtER&EtREtER'EtER(EtER)EtER*EtER+EtER,EtER-EtER.EtER/EtER0EtER1EtER2Et ER3EtER4EtER5EtREtER6EtER7EtER8EtER9EtER:Et	ER;Et
ER<EtER=EtER>EtER?EtER@EtERAEtERBEtERCEtERDEtEREEtERFEtERGEtERHEtERIEtERJEtERKEtERLEtREtERMEtERNEtEROEtERPEt ER5Et!ER6Et"ERQEt#ERREt$REt%ERSEt&ERTEt'ERUEt(ERVEt)ERWEt*ERXEt+ERYEt,ERZEt-ER[Et.ER\Et/ER]Et0ER^Et1ER_Et2ER`Et3ERaEt4ERbEt5ERcEt6ERdEt7EReEt8ERfEt9ERgEt:ERhEt;ERiEt<ERjEt=ERkEt>ERlEt?ERmEt@ERnEtAERoEtBERpEtCERqEtDERrEtEERsEtFERtEtGERuEtHERvEtIERwEtJERxEtKERyEtLERzEtMER{EtNER|EtOER}EtPER~EtQEREtREREtSEREtTEREtUEREtVEREtWEREtXEREtYEREtZEREt[EREt\EREt]EREt^EREt_EREt`EREtaEREtbEREtcEREtdEREteEREtfEREtgEREthEREtiEREtjEREtkEREtlEREtmEREtnEREtoEREtpEREtqRuEtrEREtsEREttEREtuEREtvEREtwEREtxEREtyEREtzEREt{EREt|EREt}EREt~EREtEREtEREtEREtEREtEREtEREtEREtEREtRhEtRiEtRjEtRkEtRlEtRmEtRnEtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtEREtR#   ] d9   t ^ RIt  RtAEL  ] d   tR]! ]4      9   d   ]h RtA RtAELRtAii ; iRtAii ; i(      NzNo module named)TracebackType)
AnyCallableDictListOptionaloverloadTupleTypeTypeVarUnion_T
virConnect	virDomainc                   s   a  ] tR t^,t o V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R	 lR
 ltV 3R lR lt	V 3R lR lt
V 3R lR ltV 3R lR ltV 3R lR ltRtV tR# )libvirtErrorc                $   < V ^8  d   QhRS[ RR/# )   defmsgreturnN)strformat__classdict__   "./usr/lib64/python3.14/site-packages/libvirt.py__annotate__libvirtError.__annotate__-   s      s t     c                s    \         P                  ! 4       pVf   TpM	V^,          p\        P                  W4       W n        R # N)
libvirtmodvirGetLastError	Exception__init__err)selfr   r"   Zmsg   &&  r   r!   ZlibvirtError.__init__-   s8     ((*;Ca&C4%r   c                0   < V ^8  d   QhRS[ S[,          /# r   r   r   intr   r   r   r   r   ;   s       r   c                sH    V P                   f   R # V P                   ^ ,          # r   r"   r#      &r   get_error_codeZlibvirtError.get_error_code;       88xx{r   c                r%   r&   r'   r   r   r   r   r   @   s      (3- r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_error_domainZlibvirtError.get_error_domain@   r-   r   c                r%   r&   r   r   r   r   r   r   r   E   s      8C= r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_error_messageZlibvirtError.get_error_messageE   r-   r   c                r%   r&   r'   r   r   r   r   r   J   s      # r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_error_levelZlibvirtError.get_error_levelJ   r-   r   c                r%   r&   r/   r   r   r   r   r   O         (3- r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_str1ZlibvirtError.get_str1O   r-   r   c                r%   r&   r/   r   r   r   r   r   T   r2   r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_str2ZlibvirtError.get_str2T   r-   r   c                r%   r&   r/   r   r   r   r   r   Y   r2   r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_str3ZlibvirtError.get_str3Y   r-   r   c                r%   r&   r'   r   r   r   r   r   ^   r2   r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_int1ZlibvirtError.get_int1^   r-   r   c                r%   r&   r'   r   r   r   r   r   c   r2   r   c                sH    V P                   f   R # V P                   ^,          # r   r)   r*   r+   r   get_int2ZlibvirtError.get_int2c   r-   r   r)   N)__name__
__module____qualname____firstlineno__r!   r,   r.   r0   r1   r3   r4   r5   r6   r7   __static_attributes____classdictcell__r      @r   r   r   ,   si       
 
 
 
 
 
 
 
 r   r   c                sb    V ^8  d   QhR\         \        \        .R3,          R\        R\        /# )r   fNctxr   )r   r   r   r(   r      "r   r   r   l   s/     6 6Hb$Z%56 6R 6C 6r   c                s.    \         P                  ! W4      # )zRegister a Python function for error reporting.
The function is called back as f(ctx, error), with error
being a list of information about the error being raised.
Returns 1 in case of success.)r   ZvirRegisterErrorHandler)r@   rA      &&r   registerErrorHandlerrE   l   s    
 --a55r   c                s@    V ^8  d   QhR\         R\        R\        RR/# )r   uriauthflagsr   r   r   r   r(   rB   rC   r   r   r   t   s(          #   T   #   l   r   c                sf    \         P                  ! WV4      pVf   \        R4      h\        VR7      # )a  
This function should be called first to get a connection to the
Hypervisor. If necessary, authentication will be performed fetching
credentials via the callback.

See :py:func:`open` for notes about environment variables which can
have an effect on opening drivers and freeing the connection resources.

:param str uri: (Optional) connection URI, see https://libvirt.org/uri.html
:param auth: a list that contains 3 items:
    - a list of supported credential types
    - a callable that takes 2 arguments (credentials, user-data) and returns 0 on succcess and -1 on errors.
        The credentials argument is a list of credentials that libvirt (actually
        the ESX driver) would like to request. An element of this list is itself a
        list containing 5 items (4 inputs, 1 output):
            - the credential type, e.g. :py:const:`libvirt.VIR_CRED_AUTHNAME`
            - a prompt to be displayed to the user
            - a challenge, the ESX driver sets this to the hostname to allow automatic
                distinction between requests for ESX and vCenter credentials
            - a default result for the request
            - a place to store the actual result for the request
    - user data that will be passed to the callable as second argument
:param int flags: bitwise-OR of virConnectFlags
:returns: a :py:class:`virConnect` instance on success.
:raises libvirtError: on errors.
zvirConnectOpenAuth() failed_obj)r   ZvirConnectOpenAuthr   r   )rF   rG   rH   ret   &&& r   openAuthrN   t   s2    : 
'
'5
9C
{8993r   c                sF    V ^8  d   QhR\         \        ,          R\        /# )r   namer   )r   r   r(   rB   rC   r   r   r      s      Xc] c r   c                s    V f   \         P                  ! 4       pM\         P                  ! V 4      pVf   \        R4      hV# )a  If no name parameter is passed (or name is None) then the
version of the libvirt library is returned as an integer.

If a name is passed and it refers to a driver linked to the
libvirt library, then this returns a tuple of (library version,
driver version).

If the name passed refers to a non-existent driver, then you
will get the exception 'no support for hypervisor'.

Versions numbers are integers: 1000000*major + 1000*minor + release.zvirGetVersion() failed)r   ZvirGetVersionr   rO   rL      & r   
getVersionrR      s=     |&&(&&t,
{344Jr   c                sr    V ^8  d   QhR\         R\         R\         R\        \        \        3,          RRRR/# )r   watchfdeventopaqueopaquecompatNr   )r(   r   _EventCBr   rB   rC   r   r   r      sJ      E  Ec  Es  E3  EhXZlH[  Eko  E{  Er   c                     R # r    rS   rT   rU   rV   rW      &&&&&r   _eventInvokeHandleCallbackr]      s	     BEr   c                sX    V ^8  d   QhR\         R\         R\         R\        R\        RR/# r   rS   rT   rU   rV   rW   r   Nr(   rX   r   rB   rC   r   r   r      s(     w wc ws w3 w w`b wnr wr   c                 rY   r   rZ   r[   r\   r   r]   r]      s    twr   c                s    V ^8  d   QhR\         R\         R\         R\        \        \        \        3,          \        3,          R\
        \        ,          RR/# r^   )r(   r   r   rX   r   r   rB   rC   r   r   r      sm     Q Qc Qs Q3 QeT\^`T`NackNkHl Q  }E  FH  }I Q  UY Qr   c                s    V'       d   TpTpM*\        V\        4      '       g   Q hV^ ,          pV^,          p\        P                  ! WW%V4       R# )z,
Invoke the Event Impl Handle Callback in C
N)
isinstancetupler   ZvirEventInvokeHandleCallback)rS   rT   rU   rV   rW   callbackopaque_   &&&&&  r   r]   r]      sH     &%((((!9)++EuPr   c                s    V ^8  d   QhR\         R\        \        \        \        3,          \        3,          R\
        \        ,          RR/# )r   timerrV   rW   r   N)r(   r   r   _TimerCBr   r   rB   rC   r   r   r      sM     G Gs GE%":Mx:W4X Ghpqsht G  AE Gr   c                s    V'       d   TpTpM*\        V\        4      '       g   Q hV^ ,          pV^,          p\        P                  ! WV4       R# )z-
Invoke the Event Impl Timeout Callback in C
N)r`   ra   r   ZvirEventInvokeTimeoutCallback)re   rV   rW   rb   rc      &&&  r   _eventInvokeTimeoutCallbackrh      sF     &%((((!9),,UgFr   c          
      sv    V ^8  d   QhR\         R\         R\         R\        \        \        3,          R\         /# )r   rS   rT   eventscbDatar   r(   r   r   r   rB   rC   r   r   r      s;        c 4PSUXPX> ^a r   c                 s<    VR ,          pVR,          pV! WW%4       ^ # cbrV   rZ   )rS   rT   ri   rj   rm   rV      &&&&  r   _dispatchEventHandleCallbackro      s"    	BHFu&!r   c                s^    V ^8  d   QhR\         R\        \        \        3,          R\         /# )r   re   rj   r   rk   rB   rC   r   r   r      s)       d38n  r   c                 s:    VR ,          pVR,          pV! W4       ^ # rl   rZ   )re   rj   rm   rV   r$   r   _dispatchEventTimeoutCallbackrp      s     	BHFur   c          
      sT    V ^8  d   QhR\         R\         R\        R\        R\         /# )r   rT   ri   rm   rV   r   r_   rB   rC   r   r   r      s/      # s  "  r   c                sd    RVRV/p\         P                  ! WV4      pVR8X  d   \        R4      hV# )a  
register a callback for monitoring file handle events

@fd: file handle to monitor for events
@events: bitset of events to watch from virEventHandleType constants
@cb: callback to invoke when an event occurs
@opaque: user data to pass to callback

Example callback prototype is:
    def cb(watch,   # int id of the handle
           fd,      # int file descriptor the event occurred on
           events,  # int bitmap of events that have occurred
           opaque): # opaque data passed to eventAddHandle
rm   rV   zvirEventAddHandle() failed)r   virEventAddHandler   )rT   ri   rm   rV   rj   rL   rn   r   rr   rr      s<     B&)F

&
&r6
:C
by788Jr   c                sH    V ^8  d   QhR\         R\        R\        R\         /# )r   timeoutrm   rV   r   )r(   rf   r   rB   rC   r   r   r     s(        2 # r   c                sb    RVRV/p\         P                  ! W4      pVR8X  d   \        R4      hV# )a  
register a callback for a timer event

@timeout: time between events in milliseconds
@cb: callback to invoke when an event occurs
@opaque: user data to pass to callback

Setting timeout to -1 will disable the timer. Setting the timeout
to zero will cause it to fire on every event loop iteration.

Example callback prototype is:
    def cb(timer,   # int id of the timer
           opaque): # opaque data passed to eventAddTimeout
rm   rV   zvirEventAddTimeout() failedrq   )r   virEventAddTimeoutr   )rs   rm   rV   rj   rL   rg   r   rt   rt     s:     B&)F

'
'
8C
by899Jr   c                s(    V ^8  d   QhR\         RR/# )r   rV   r   N)r   rB   rC   r   r   r     s     @ @s @t @r   c                sP    \         P                  ! V ^,          V ^,          4       R# )a  
Execute callback which frees the opaque buffer

@opaque: the opaque object passed to addHandle or addTimeout

WARNING: This function should not be called from any call by libvirt's
core. It will most probably cause deadlock in C-level libvirt code.
Instead it should be scheduled and called from implementation's stack.

See https://libvirt.org/html/libvirt-libvirt-event.html#virEventAddHandleFunc
for more information.

This function is not dependent on any event loop implementation.
N)r   virEventInvokeFreeCallback)rV   r+   r   ru   ru     s      ))&)VAY?r   c                d    \         P                  ! V 4      pVf   \        R4      h\        VR7      # )aA  This function should be called first to get a connection to the
Hypervisor and xen store

If @name is None, if the LIBVIRT_DEFAULT_URI environment variable is set,
then it will be used. Otherwise if the client configuration file
has the "uri_default" parameter set, then it will be used. Finally
probing will be done to determine a suitable default driver to activate.
This involves trying each hypervisor in turn until one successfully opens.

If connecting to an unprivileged hypervisor driver which requires
the libvirtd daemon to be active, it will automatically be launched
if not already running. This can be prevented by setting the
environment variable LIBVIRT_AUTOSTART=0

URIs are documented at https://libvirt.org/uri.html

virConnectClose should be used to release the resources after the connection
is no longer needed. zvirConnectOpen() failedrJ   )r   ZvirConnectOpenr   r   rP   rQ   r   openrw   :  s0    & 
#
#D
)C
{4553r   c                rv   )a  This function should be called first to get a restricted connection to the
library functionalities. The set of APIs usable are then restricted
on the available methods to control the domains.

See virConnectOpen for notes about environment variables which can
have an effect on opening drivers and freeing the connection resources

URIs are documented at https://libvirt.org/uri.html zvirConnectOpenReadOnly() failedrJ   )r   ZvirConnectOpenReadOnlyr   r   rP   rQ   r   openReadOnlyrx   R  s0     
+
+D
1C
{<==3r   c                 T    \         P                  ! 4       p V R8X  d   \        R4      hV # )a  Registers a default event implementation based on the
poll() system call. This is a generic implementation
that can be used by any client application which does
not have a need to integrate with an external event
loop impl.

For proper event handling, it is important that the event implementation
is registered before a connection to the Hypervisor is opened.

Once registered, the application has to invoke virEventRunDefaultImpl() in
a loop to process events.  Failure to do so may result in connections being
closed unexpectedly as a result of keepalive timeout.  The default
event loop fully supports handle and timeout events, but only
wakes up on events registered by libvirt API calls such as
virEventAddHandle() or virConnectDomainEventRegisterAny(). z$virEventRegisterDefaultImpl() failedrq   )r   virEventRegisterDefaultImplr   rL       r   rz   rz   d  s*      
0
0
2C
byABBJr   c                s6    \         P                  ! WW#WE4       R# )a%  Registers an event implementation, to allow integration
with an external event loop. Applications would use this
to integrate with the libglib2 event loop, or libevent
or the QT event loop.

For proper event handling, it is important that the event implementation
is registered before a connection to the Hypervisor is opened.

Use of the virEventAddHandle() and similar APIs require that the
corresponding handler is registered.  Use of the
virConnectDomainEventRegisterAny() and similar APIs requires that
the three timeout handlers are registered.  Likewise, the three
timeout handlers must be registered if the remote server has been
configured to send keepalive messages, or if the client intends
to call virConnectSetKeepAlive(), to avoid either side from
unexpectedly closing the connection due to inactivity.

If an application does not need to integrate with an
existing event loop implementation, then the
virEventRegisterDefaultImpl() method can be used to setup
the generic libvirt implementation.

Once registered, the event loop implementation cannot be
changed, and must be run continuously. Note that callbacks
may remain registered for a short time even after calling
virConnectClose on all open connections, so it is not safe
to stop running the event loop immediately after closing
the connection. N)r   virEventRegisterImpl)Z	addHandleZupdateHandleZremoveHandleZ
addTimeoutZupdateTimeoutZremoveTimeouts   &&&&&&r   r}   r}   y  s    : ##I\Wdtr   c                V    \         P                  ! V 4      pVR8X  d   \        R4      hV# )zUnregister a callback from a file handle.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl(). zvirEventRemoveHandle() failedrq   )r   virEventRemoveHandler   )rS   rL   rQ   r   r   r     s,     
)
)%
0C
by:;;Jr   c                r~   )zUnregister a callback for a timer.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl(). zvirEventRemoveTimeout() failedrq   )r   virEventRemoveTimeoutr   )re   rL   rQ   r   r   r     s,     
*
*5
1C
by;<<Jr   c                 ry   )a  Run one iteration of the event loop. Applications
will generally want to have a thread which invokes
this method in an infinite loop.  Furthermore, it is wise
to set up a pipe-to-self handler (via virEventAddHandle())
or a timeout (via virEventAddTimeout()) before calling this
function, as it will block forever if there are no
registered events.

  static bool quit;

  while (!quit) {
    if (virEventRunDefaultImpl() < 0)
      ...print error...
  } zvirEventRunDefaultImpl() failedrq   )r   virEventRunDefaultImplr   r{   r|   r   r   r     s*     
+
+
-C
by<==Jr   c                2    \         P                  ! W4       R# )zChange event set for a monitored file handle.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl().

Will not fail if fd exists. N)r   virEventUpdateHandle)rS   ri   rD   r   r   r     s     ##E2r   c                r   )aJ  Change frequency for a timer.  This function
requires that an event loop has previously been registered with
virEventRegisterImpl() or virEventRegisterDefaultImpl().

Setting frequency to -1 will disable the timer. Setting the frequency
to zero will cause it to fire on every event loop iteration.

Will not fail if timer exists. N)r   virEventUpdateTimeout)re   rs   rD   r   r   r     s     $$U4r   c                 s0    \         P                  ! 4       p V # )zProvide a pointer to the last error caught at the library level

The error object is kept in thread local storage, so separate
threads can safely access this concurrently. )r   r   r{   r|   r   r   r     s    
 
$
$
&CJr   c                 ry   )z6Get the most recent error code (enum virErrorNumber). zvirGetLastErrorCode() failedrq   )r   virGetLastErrorCoder   r{   r|   r   r   r     s(    

(
(
*C
by9::Jr   c                 ry   )z8Get the most recent error domain (enum virErrorDomain). zvirGetLastErrorDomain() failedrq   )r   virGetLastErrorDomainr   r{   r|   r   r   r     s(    

*
*
,C
by;<<Jr   c                 sN    \         P                  ! 4       p V f   \        R4      hV # )z"Get the most recent error message zvirGetLastErrorMessage() failed)r   virGetLastErrorMessager   r{   r|   r   r   r     s&    

+
+
-C
{<==Jr   c                 ry   )a  Initialize the library.

This method is invoked automatically by any of the virConnectOpen() API
calls, and by virGetVersion(). Since release 1.0.0, there is no need to
call this method even in a multithreaded application, since
initialization is performed in a thread safe manner; but applications
using an older version of the library should manually call this before
setting up competing threads that attempt virConnectOpen in parallel.

The only other time it would be necessary to call virInitialize is if the
application did not invoke virConnectOpen as its first API call, such
as when calling virEventRegisterImpl() before setting up connections,
or when using virSetErrorFunc() to alter error reporting of the first
connection attempt. zvirInitialize() failedrq   )r   virInitializer   r{   r|   r   r   r     s*     
"
"
$C
by344Jr   c                 s0    \         P                  ! 4        R# )zReset the last error caught at the library level.

The error object is kept in thread local storage, so separate
threads can safely access this concurrently, only resetting
their own error object. N)r   virResetLastErrorrZ   r   r   r   r     s       "r   c                   s  a  ] tR tRt o RR ltR tR tR tR tR t	R	 t
R
 tRR ltR tRR ltRR ltRR ltR tRR ltRR ltRR ltR tR tRR ltRR ltRR ltRR ltRR ltRR ltRR ltRR ltRR ltRR lt RR  lt!RR! lt"RR" lt#RR# lt$R$ t%RR% lt&RR& lt'RR' lt(RR( lt)RR) lt*RR* lt+R+ t,RR, lt-RR- lt.RR. lt/R/ t0RR0 lt1R1 t2RR2 lt3RR3 lt4RR4 lt5RR5 lt6RR6 lt7RR7 lt8RR8 lt9RR9 lt:RR: lt;RR; lt<RR< lt=RR= lt>RR> lt?R? t@RR@ ltARRA ltBRRB ltCRC tDRRD ltERE tFRF tGRG tHRH tIRRI ltJRRJ ltKRRK ltLRRL ltMRRM ltNRRN ltORO tPRP tQRRQ ltRRRR ltSRS tTRRT ltURRU ltVRRV ltWRRW ltXRRX ltYRRY ltZRRZ lt[RR[ lt\RR\ lt]RR] lt^RR^ lt_RR_ lt`RR` ltaRRa ltbRRb ltcRc tdRRd lteRRe ltfRRf ltgRRg lthRRh ltiRRi ltjRRj ltkRRk ltlRRl ltmRRm ltnRn toRRo ltpRRp ltqRRq ltrRRr ltsRs ttRRt ltuRu tvRRv ltwRRw ltxRx tyRRy ltzRz t{RR{ lt|R| t}R} t~RR~ ltRR ltR tR tRR ltRR ltRR ltRR ltRR ltRR ltRR ltRR ltR tR tRR ltRR ltRR ltRR ltRR ltRR ltR tRR ltRR ltRR ltRR ltR tRR ltR tRR ltRR ltRR ltRR ltRR ltRR ltRR ltRR ltR tR tRR ltRR ltRR ltR tRR ltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRtV tR# )r   i  Nc                    Wn         \        V4      P                  R9  d   \        R\        V4      ,          4      hW n        R# 	PyCapsulez&Expected a wrapped C Object but got %sN)r   Z	PyCObject_conntyper8   r    _or#   connrK      &&&r   r!   ZvirDomain.__init__  4    
:&@@DtDzQRRr   c                p    V P                   e!   \        P                  ! V P                   4       R V n         R # r   )r   r   ZvirDomainFreer*   r+   r   __del__ZvirDomain.__del__  %    77$$TWW-r   c                    V P                   # r   r   r*   r+   r   connectZvirDomain.connect"      zzr   c                B    \         P                  ! V P                  4      # z"Get C pointer to underlying object)r   ZvirDomain_pointerr   r*   r+   r   	c_pointerZvirDomain.c_pointer%      ++DGG44r   c                F    \         P                  ! V P                  4      pV# )z,Get the hypervisor ID number for the domain )r   ZvirDomainGetIDr   r#   rL   rQ   r   IDZvirDomain.ID-  s    ''0
r   c                d    \         P                  ! V P                  4      pVf   \        R4      hV# )z)Get the type of domain operation system. zvirDomainGetOSType() failed)r   ZvirDomainGetOSTyper   r   r   rQ   r   OSTypeZvirDomain.OSType2  ,    ++DGG4;<==
r   c                r   )z0Extract the UUID unique Identifier of a domain. zvirDomainGetUUID() failed)r   ZvirDomainGetUUIDr   r   r   rQ   r   UUIDZvirDomain.UUID=  ,    ))$''2;:;;
r   c                r   )z4Fetch globally unique ID of the domain as a string. zvirDomainGetUUIDString() failed)r   ZvirDomainGetUUIDStringr   r   r   rQ   r   
UUIDStringZvirDomain.UUIDStringD  ,    //8;@AA
r   c                f    \         P                  ! V P                  V4      pVf   \        R4      hV# )aY  Provide an XML description of the domain. The description may be reused
later to relaunch the domain with virDomainCreateXML().

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_XML_SECURE; this flag is rejected on read-only
connections.  If @flags includes VIR_DOMAIN_XML_INACTIVE, then the
XML represents the configuration that will be used on the next boot
of a persistent domain; otherwise, the configuration represents the
currently running domain.  If @flags contains
VIR_DOMAIN_XML_UPDATE_CPU, then the portion of the domain XML
describing CPU capabilities is modified to match actual
capabilities of the host.

If @flags contains VIR_DOMAIN_XML_MIGRATABLE, the XML is altered to
assist in migrations, since the source and destination may be
running different libvirt versions.  This may include trimming
redundant or default information that might confuse an older
recipient, or exposing internal details that aid a newer recipient;
this flag is rejected on read-only connections, and the resulting
XML might not validate against the schema, so it is mainly for
internal use. zvirDomainGetXMLDesc() failed)r   ZvirDomainGetXMLDescr   r   r#   rH   rL      && r   XMLDescZvirDomain.XMLDescO  s0    , ,,TWWe<;=>>
r   c                j    \         P                  ! V P                  4      pVR8X  d   \        R4      hV# )zRequests that the current background job be aborted at the
soonest opportunity. In case the job is a migration in a post-copy mode,
virDomainAbortJob will report an error (see virDomainMigrateStartPostCopy
for more details). zvirDomainAbortJob() failedrq   )r   ZvirDomainAbortJobr   r   r   rQ   r   abortJobZvirDomain.abortJobj  0    
 **4773"9;<<
r   c                l    \         P                  ! V P                  V4      pVR8X  d   \        R4      hV# )a  Requests that the current background job be aborted at the
soonest opportunity. In case the job is a migration in a post-copy mode,
this function will report an error unless VIR_DOMAIN_ABORT_JOB_POSTCOPY
flag is used (see virDomainMigrateStartPostCopy for more details). zvirDomainAbortJobFlags() failedrq   )r   ZvirDomainAbortJobFlagsr   r   r   r   r   abortJobFlagsZvirDomain.abortJobFlagst  s2    
 //?"9@AA
r   c                l    \         P                  ! V P                  W4      pVR8X  d   \        R4      hV# )a  Dynamically add an IOThread to the domain. It is left up to the
underlying virtual hypervisor to determine the valid range for an
@iothread_id and determining whether the @iothread_id already exists.

Note that this call can fail if the underlying virtualization hypervisor
does not support it or if growing the number is arbitrarily limited.
This function requires privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set.
If VIR_DOMAIN_AFFECT_LIVE is set, the change affects a running domain
and may fail if domain is not alive.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified (that is,
@flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain modifies
persistent setup, while an active domain is hypervisor-dependent on whether
just live or both live and persistent state is changed. zvirDomainAddIOThread() failedrq   )r   ZvirDomainAddIOThreadr   r   r#   Ziothread_idrH   rL   rM   r   addIOThreadZvirDomain.addIOThread~  2    $ --dgg{J"9>??
r   c                r   )a  Set how long to wait for a response from guest agent commands. By default,
agent commands block forever waiting for a response.

@timeout must be a value from virDomainAgentResponseTimeoutValues or
positive:

  VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK(-2): meaning to block forever
     waiting for a result.
  VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT(-1): use default timeout value.
  VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT(0): does not wait.
  positive value: wait for @timeout seconds

In all guest-agent based APIs when a timeout happens if an actual command
was send to the guest agent the returned error code will be
VIR_ERR_AGENT_COMMAND_TIMEOUT. z)virDomainAgentSetResponseTimeout() failedrq   )r   Z virDomainAgentSetResponseTimeoutr   r   )r#   rs   rH   rL   rM   r   agentSetResponseTimeoutZ!virDomain.agentSetResponseTimeout  s2      99$''7R"9JKK
r   c                r   )a  Create a virtual device attachment to backend.  This function,
having hotplug semantics, is only allowed on an active domain.

For compatibility, this method can also be used to change the media
in an existing CDROM/Floppy device, however, applications are
recommended to use the virDomainUpdateDeviceFlags method instead.

Be aware that hotplug changes might not persist across a domain going
into S4 state (also known as hibernation) unless you also modify the
persistent domain definition. zvirDomainAttachDevice() failedrq   )r   ZvirDomainAttachDevicer   r   r#   xmlrL   r   r   attachDeviceZvirDomain.attachDevice  s2     ..tww<"9?@@
r   c                r   )a%  Attach a virtual device to a domain, using the flags parameter
to control how the device is attached.  VIR_DOMAIN_AFFECT_CURRENT
specifies that the device allocation is made based on current domain
state.  VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
allocated to the active domain instance only and is not added to the
persisted domain configuration.  VIR_DOMAIN_AFFECT_CONFIG
specifies that the device shall be allocated to the persisted domain
configuration only.  Note that the target hypervisor must return an
error if unable to satisfy flags.  E.g. the hypervisor driver will
return failure if LIVE is specified but it only supports modifying the
persisted device allocation.

For compatibility, this method can also be used to change the media
in an existing CDROM/Floppy device, however, applications are
recommended to use the virDomainUpdateDeviceFlag method instead.

Be aware that hotplug changes might not persist across a domain going
into S4 state (also known as hibernation) unless you also modify the
persistent domain definition. z#virDomainAttachDeviceFlags() failedrq   )r   ZvirDomainAttachDeviceFlagsr   r   r#   r   rH   rL   rM   r   attachDeviceFlagsZvirDomain.attachDeviceFlags  s2    ( 33DGGSH"9DEE
r   c                f    \         P                  ! V P                  W4      pVf   \        R4      hV# )zCFetch list of public SSH authorized keys for given user in domain. z&virDomainAuthorizedSSHKeysGet() failed)r   ZvirDomainAuthorizedSSHKeysGetr   r   )r#   userrH   rL   rM   r   authorizedSSHKeysGetZvirDomain.authorizedSSHKeysGet  s.    66twwL;GHH
r   c                n    \         P                  ! V P                  WV4      pVR8X  d   \        R4      hV# )zGManipulate set of public SSH authorized keys for given user in domain. z&virDomainAuthorizedSSHKeysSet() failedrq   )r   ZvirDomainAuthorizedSSHKeysSetr   r   )r#   r   ZkeysrH   rL      &&&& r   authorizedSSHKeysSetZvirDomain.authorizedSSHKeysSet  s2    66twwER"9GHH
r   c                r   )z(Extract the autostart flag for a domain zvirDomainGetAutostart() failedrq   )r   ZvirDomainGetAutostartr   r   r   rQ   r   	autostartZvirDomain.autostart  .    ..tww7"9?@@
r   c                r   )zProvides a boolean value indicating whether the domain is configured to be automatically started the next time the host machine boots only. z"virDomainGetAutostartOnce() failedrq   )r   ZvirDomainGetAutostartOncer   r   r   rQ   r   autostartOnceZvirDomain.autostartOnce  .    22477;"9CDD
r   c                r   )a
  Start a point-in-time backup job for the specified disks of a
running domain.

A backup job is a domain job and thus mutually exclusive with any other
domain job such as migration.

For now, backup jobs are also mutually exclusive with any
other block job on the same device, although this restriction may
be lifted in a future release. Progress of the backup job can be
tracked via virDomainGetJobStats(). Completion of the job is also announced
asynchronously via VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event.

There are two fundamental backup approaches. The first, called a
push model, instructs the hypervisor to copy the state of the guest
disk to the designated storage destination (which may be on the
local file system or a network device). In this mode, the
hypervisor writes the content of the guest disk to the destination,
then emits VIR_DOMAIN_EVENT_ID_JOB_COMPLETED when the backup is
either complete or failed (the backup image is invalid if the job
fails or virDomainAbortJob() is used prior to the event being
emitted). This kind of the job finishes automatically. Users can
determine success by using virDomainGetJobStats() with
VIR_DOMAIN_JOB_STATS_COMPLETED flag.

The second, called a pull model, instructs the hypervisor to expose
the state of the guest disk over an NBD export. A third-party
client can then connect to this export and read whichever portions
of the disk it desires.  In this mode libvirt has to be informed via
virDomainAbortJob() when the third-party NBD client is done and the backup
resources can be released.

The @backupXML parameter contains details about the backup in the top-level
element <domainbackup>, including which backup mode to use, whether the
backup is incremental from a previous checkpoint, which disks
participate in the backup, the destination for a push model backup,
and the temporary storage and NBD server details for a pull model
backup.

virDomainBackupGetXMLDesc() can be called to learn actual
values selected.  For more information, see
https://libvirt.org/formatbackup.html#backup-xml

The @checkpointXML parameter is optional; if non-None, then libvirt
behaves as if virDomainCheckpointCreateXML() were called to create
a checkpoint atomically covering the same point in time as the
backup.

The VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNAL specifies that the output or
temporary files described by the @backupXML document were created by the
caller with correct format and size to hold the backup or temporary data.

The creation of a new checkpoint allows for future incremental backups.
Note that some hypervisors may require a particular disk format, such as
qcow2, in order to take advantage of checkpoints, while allowing arbitrary
formats if checkpoints are not involved. zvirDomainBackupBegin() failedrq   )r   ZvirDomainBackupBeginr   r   )r#   Z	backupXMLZcheckpointXMLrH   rL   r   r   backupBeginZvirDomain.backupBegin  s6    p --dggyQVW"9>??
r   c                r   )a&  Queries the configuration of the active backup job.

In some cases, a user can start a backup job without supplying all
details and rely on libvirt to fill in the rest (for example,
selecting the port used for an NBD export). This API can then be
used to learn what default values were chosen. z"virDomainBackupGetXMLDesc() failed)r   ZvirDomainBackupGetXMLDescr   r   r   r   r   backupGetXMLDescZvirDomain.backupGetXMLDesc4  s0     22477EB;CDD
r   c                r   )zGet the blkio parameters z$virDomainGetBlkioParameters() failed)r   ZvirDomainGetBlkioParametersr   r   r   r   r   blkioParametersZvirDomain.blkioParametersD  .    44TWWeD;EFF
r   c                p    \         P                  ! V P                  WW4V4      pVR8X  d   \        R4      hV# )aB  Commit changes that were made to temporary top-level files within a disk
image backing file chain into a lower-level base file.  In other words,
take all the difference between @base and @top, and update @base to contain
that difference; after the commit, any portion of the chain that previously
depended on @top will now depend on @base, and all files after @base up
to and including @top will now be invalidated.  A typical use of this
command is to reduce the length of a backing file chain after taking an
external disk snapshot.  To move data in the opposite direction, see
virDomainBlockPull().

This command starts a long-running commit block job, whose status may
be tracked by virDomainBlockJobInfo() with a job type of
VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT, and the operation can be aborted with
virDomainBlockJobAbort().  When finished, an asynchronous event is
raised to indicate the final status, and the job no longer exists.  If
the job is aborted, it is up to the hypervisor whether starting a new
job will resume from the same point, or start over.

As a special case, if @top is the active image (or None), and @flags
includes VIR_DOMAIN_BLOCK_COMMIT_ACTIVE, the block job will have a type
of VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT, and operates in two phases.
In the first phase, the contents are being committed into @base, and the
job can only be canceled.  The job transitions to the second phase when
the block job event with state VIR_DOMAIN_BLOCK_JOB_READY is
emitted for the given device. This information is also visible in the
live XML as 'ready="yes"' attribute of the corresponding <mirror> element.
Once in the second phase, the user must choose whether to cancel the job
(keeping @top as the active image, but now containing only the changes
since the time the job ended) or to pivot the job (adjusting to @base as
the active image, and invalidating @top).

Be aware that this command may invalidate files even if it is aborted;
the user is cautioned against relying on the contents of invalidated
intermediate files such as @top (when @top is not the active image)
without manually rebasing those files to use a backing file of a
read-only copy of @base prior to the point where the commit operation
was started (and such a rebase cannot be safely done until the commit
has successfully completed).  However, the domain itself will not have
any issues; the active layer remains valid throughout the entire commit
operation.

Some hypervisors may support a shortcut where if @flags contains
VIR_DOMAIN_BLOCK_COMMIT_DELETE, then this command will unlink all files
that were invalidated, after the commit successfully completes.

If @flags contains VIR_DOMAIN_BLOCK_COMMIT_RELATIVE, the name recorded
into the overlay of the @top image (if there is such image) as the
path to the new backing file will be kept relative to other images.
The operation will fail if libvirt can't infer the name.

By default, if @base is None, the commit target will be the bottom of
the backing chain; if @flags contains VIR_DOMAIN_BLOCK_COMMIT_SHALLOW,
then the immediate backing file of @top will be used instead.  If @top
is None, the active image at the top of the chain will be used.  Some
hypervisors place restrictions on how much can be committed, and might
fail if @base is not the immediate backing file of @top, or if @top is
the active layer in use by a running domain but @flags did not include
VIR_DOMAIN_BLOCK_COMMIT_ACTIVE, or if @top is not the top-most file;
restrictions may differ for online vs. offline domains.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or the device target shorthand (the
<target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

The @base and @top parameters can be either paths to files within the
backing chain, or the device target shorthand (the <target dev='...'/>
sub-element, such as "vda") followed by an index to the backing chain
enclosed in square brackets. Backing chain indexes can be found by
inspecting //disk//backingStore/@index in the domain XML. Thus, for
example, "vda[3]" refers to the backing store with index equal to "3"
in the chain of disk "vda".

The maximum bandwidth that will be used to do the commit can be
specified with the @bandwidth parameter.  If set to 0, there is no
limit.  If @flags includes VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES,
@bandwidth is in bytes/second; otherwise, it is in MiB/second.
Values larger than 2^52 bytes/sec may be rejected due to overflow
considerations based on the word size of both client and server,
and values larger than 2^31 bytes/sec may cause overflow problems
if later queried by virDomainGetBlockJobInfo() without scaling.
Hypervisors may further restrict the range of valid bandwidth
values.  Some hypervisors do not support this feature and will
return an error if bandwidth is not 0; in this case, it might still
be possible for a later call to virDomainBlockJobSetSpeed() to
succeed.  The actual speed can be determined with
virDomainGetBlockJobInfo(). zvirDomainBlockCommit() failedrq   )r   ZvirDomainBlockCommitr   r   )r#   diskbaseZtop	bandwidthrH   rL      &&&&&& r   blockCommitZvirDomain.blockCommitO  s8    t --dggt3SXY"9>??
r   c                n    \         P                  ! V P                  WW44      pVR8X  d   \        R4      hV# )zSCopy the guest-visible contents of a disk image to a new file described by destxml zvirDomainBlockCopy() failedrq   )r   ZvirDomainBlockCopyr   r   )r#   r   ZdestxmlparamsrH   rL      &&&&& r   	blockCopyZvirDomain.blockCopy  s2    ++DGGTFR"9<==
r   c                r   )z5Extract information about a domain block device size zvirDomainGetBlockInfo() failed)r   ZvirDomainGetBlockInfor   r   r#   pathrH   rL   rM   r   	blockInfoZvirDomain.blockInfo  s.    ..twwD;?@@
r   c                r   )z(Get the I/O tunables for a block device z virDomainGetBlockIoTune() failed)r   ZvirDomainGetBlockIoTuner   r   r#   r   rH   rL   rM   r   blockIoTuneZvirDomain.blockIoTune  s.    00$F;ABB
r   c                r   )a  Cancel the active block job on the given disk.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

If the current block job for @disk is VIR_DOMAIN_BLOCK_JOB_TYPE_PULL, then
by default, this function performs a synchronous operation and the caller
may assume that the operation has completed when 0 is returned.  However,
BlockJob operations may take a long time to cancel, and during this time
further domain interactions may be unresponsive.  To avoid this problem,
pass VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC in the @flags argument to enable
asynchronous behavior, returning as soon as possible.  When the job has
been canceled, a BlockJob event will be emitted, with status
VIR_DOMAIN_BLOCK_JOB_CANCELED (even if the ABORT_ASYNC flag was not
used); it is also possible to poll virDomainBlockJobInfo() to see if
the job cancellation is still pending.  This type of job can be restarted
to pick up from where it left off.

If the current block job for @disk is VIR_DOMAIN_BLOCK_JOB_TYPE_COPY, then
the default is to abort the mirroring and revert to the source disk;
likewise, if the current job is VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT,
the default is to abort without changing the active layer of @disk.
Adding @flags of VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT causes this call to
fail with VIR_ERR_BLOCK_COPY_ACTIVE if the copy or commit is not yet
ready; otherwise it will swap the disk over to the new active image
to end the mirroring or active commit.  An event will be issued when the
job is ended, and it is possible to use VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC
to control whether this command waits for the completion of the job.
Restarting a copy or active commit job requires starting over from the
beginning of the first phase. zvirDomainBlockJobAbort() failedrq   )r   ZvirDomainBlockJobAbortr   r   r   rM   r   blockJobAbortZvirDomain.blockJobAbort  s3    F //E"9@AA
r   c                r   )z)Get progress information for a block job z!virDomainGetBlockJobInfo() failed)r   ZvirDomainGetBlockJobInfor   r   r   rM   r   blockJobInfoZvirDomain.blockJobInfo  .    11$''4G;BCC
r   c                r   )a  Set the maximum allowable bandwidth that a block job may consume.  If
bandwidth is 0, the limit will revert to the hypervisor default of
unlimited.

If @flags contains VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES, @bandwidth
is in bytes/second; otherwise, it is in MiB/second.  Values larger than
2^52 bytes/sec may be rejected due to overflow considerations based on
the word size of both client and server, and values larger than 2^31
bytes/sec may cause overflow problems if later queried by
virDomainGetBlockJobInfo() without scaling.  Hypervisors may further
restrict the range of valid bandwidth values.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk. z"virDomainBlockJobSetSpeed() failedrq   )r   ZvirDomainBlockJobSetSpeedr   r   r#   r   r   rH   rL   r   r   blockJobSetSpeedZvirDomain.blockJobSetSpeed  s4    & 22477DUS"9CDD
r   c                h    \         P                  ! V P                  WW44      pVf   \        R4      hV# )z*Read the contents of domain's disk device zvirDomainBlockPeek() failed)r   ZvirDomainBlockPeekr   r   )r#   r   offsetsizerH   rL   r   r   	blockPeekZvirDomain.blockPeek  s0    ++DGGT4O;<==
r   c                r   )a  Populate a disk image with data from its backing image.  Once all data from
its backing image has been pulled, the disk no longer depends on a backing
image.  This function pulls data for the entire device in the background.
Progress of the operation can be checked with virDomainGetBlockJobInfo() and
the operation can be aborted with virDomainBlockJobAbort().  When finished,
an asynchronous event is raised to indicate the final status.  To move
data in the opposite direction, see virDomainBlockCommit().

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

The maximum bandwidth that will be used to do the copy can be
specified with the @bandwidth parameter.  If set to 0, there is no
limit.  If @flags includes VIR_DOMAIN_BLOCK_PULL_BANDWIDTH_BYTES,
@bandwidth is in bytes/second; otherwise, it is in MiB/second.
Values larger than 2^52 bytes/sec may be rejected due to overflow
considerations based on the word size of both client and server,
and values larger than 2^31 bytes/sec may cause overflow problems
if later queried by virDomainGetBlockJobInfo() without scaling.
Hypervisors may further restrict the range of valid bandwidth
values.  Some hypervisors do not support this feature and will
return an error if bandwidth is not 0; in this case, it might still
be possible for a later call to virDomainBlockJobSetSpeed() to
succeed.  The actual speed can be determined with
virDomainGetBlockJobInfo().

This is shorthand for virDomainBlockRebase() with a None base. zvirDomainBlockPull() failedrq   )r   ZvirDomainBlockPullr   r   r   r   r   	blockPullZvirDomain.blockPull)  s5    @ ++DGGTeL"9<==
r   c                r   )a  Populate a disk image with data from its backing image chain, and
setting the backing image to @base, or alternatively copy an entire
backing chain to a new file @base.

When @flags is 0, this starts a pull, where @base must be the absolute
path of one of the backing images further up the chain, or None to
convert the disk image so that it has no backing image.  Once all
data from its backing image chain has been pulled, the disk no
longer depends on those intermediate backing images.  This function
pulls data for the entire device in the background.  Progress of
the operation can be checked with virDomainGetBlockJobInfo() with a
job type of VIR_DOMAIN_BLOCK_JOB_TYPE_PULL, and the operation can be
aborted with virDomainBlockJobAbort().  When finished, an asynchronous
event is raised to indicate the final status, and the job no longer
exists.  If the job is aborted, a new one can be started later to
resume from the same point.

If @flags contains VIR_DOMAIN_BLOCK_REBASE_RELATIVE, the name recorded
into the active disk as the location for @base will be kept relative.
The operation will fail if libvirt can't infer the name.

When @flags includes VIR_DOMAIN_BLOCK_REBASE_COPY, this starts a copy,
where @base must be the name of a new file to copy the chain to.  By
default, the copy will pull the entire source chain into the destination
file, but if @flags also contains VIR_DOMAIN_BLOCK_REBASE_SHALLOW, then
only the top of the source chain will be copied (the source and
destination have a common backing file).  By default, @base will be
created with the same file format as the source, but this can be altered
by adding VIR_DOMAIN_BLOCK_REBASE_COPY_RAW to force the copy to be raw
(does not make sense with the shallow flag unless the source is also raw),
or by using VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT to reuse an existing file
which was pre-created with the correct format and metadata and sufficient
size to hold the copy. In case the VIR_DOMAIN_BLOCK_REBASE_SHALLOW flag
is used the pre-created file has to exhibit the same guest visible contents
as the backing file of the original image. This allows a management app to
pre-create files with relative backing file names, rather than the default
of absolute backing file names; as a security precaution, you should
generally only use reuse_ext with the shallow flag and a non-raw
destination file.  By default, the copy destination will be treated as
type='file', but using VIR_DOMAIN_BLOCK_REBASE_COPY_DEV treats the
destination as type='block' (affecting how virDomainGetBlockInfo() will
report allocation after pivoting).

A copy job has two parts; in the first phase, the @bandwidth parameter
affects how fast the source is pulled into the destination, and the job
can only be canceled by reverting to the source file; progress in this
phase can be tracked via the virDomainBlockJobInfo() command, with a
job type of VIR_DOMAIN_BLOCK_JOB_TYPE_COPY.  The job transitions to the
second phase when the job info states cur == end, and remains alive to
mirror all further changes to both source and destination.  The user
must call virDomainBlockJobAbort() to end the mirroring while choosing
whether to revert to source or pivot to the destination.  An event is
issued when the job ends, and depending on the hypervisor, an event may
also be issued when the job transitions from pulling to mirroring.  If
the job is aborted, a new job will have to start over from the beginning
of the first phase.

Some hypervisors will restrict certain actions, such as virDomainSave()
or virDomainDetachDevice(), while a copy job is active; they may
also restrict a copy job to transient domains.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or the device target shorthand (the
<target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

The @base parameter can be either a path to a file within the backing
chain, or the device target shorthand (the <target dev='...'/>
sub-element, such as "vda") followed by an index to the backing chain
enclosed in square brackets. Backing chain indexes can be found by
inspecting //disk//backingStore/@index in the domain XML. Thus, for
example, "vda[3]" refers to the backing store with index equal to "3"
in the chain of disk "vda".

The maximum bandwidth that will be used to do the copy can be
specified with the @bandwidth parameter.  If set to 0, there is no
limit.  If @flags includes VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES,
@bandwidth is in bytes/second; otherwise, it is in MiB/second.
Values larger than 2^52 bytes/sec may be rejected due to overflow
considerations based on the word size of both client and server,
and values larger than 2^31 bytes/sec may cause overflow problems
if later queried by virDomainGetBlockJobInfo() without scaling.
Hypervisors may further restrict the range of valid bandwidth
values.  Some hypervisors do not support this feature and will
return an error if bandwidth is not 0; in this case, it might still
be possible for a later call to virDomainBlockJobSetSpeed() to
succeed.  The actual speed can be determined with
virDomainGetBlockJobInfo().

When @base is None and @flags is 0, this is identical to
virDomainBlockPull().  When @flags contains VIR_DOMAIN_BLOCK_REBASE_COPY,
this command is shorthand for virDomainBlockCopy() where the destination
XML encodes @base as a <disk type='file'>, @bandwidth is properly scaled
and passed as a typed parameter, the shallow and reuse external flags
are preserved, and remaining flags control whether the XML encodes a
destination format of raw instead of leaving the destination identical
to the source format or probed from the reused file. zvirDomainBlockRebase() failedrq   )r   ZvirDomainBlockRebaser   r   )r#   r   r   r   rH   rL   r   r   blockRebaseZvirDomain.blockRebaseN  s5    H --dggt9T"9>??
r   c                r   )a  Resize a block device of domain while the domain is running.  If
@flags is 0, then @size is in kibibytes (blocks of 1024 bytes);
since 0.9.11, if @flags includes VIR_DOMAIN_BLOCK_RESIZE_BYTES,
@size is in bytes instead.  @size is taken directly as the new
size.  Depending on the file format, the hypervisor may round up
to the next alignment boundary.

If @flag contains VIR_DOMAIN_BLOCK_RESIZE_CAPACITY (since 10.0.0) the
hypervisor will resize the guest block device to fully fill the source.
@size must be either set to zero, or to the exact size of the block
device source. This is possible only for image formats with no metadata
('raw') and for source devices with limited capacity such as block devices.

The @disk parameter is either an unambiguous source name of the
block device (the <source file='...'/> sub-element, such as
"/path/to/image"), or (since 0.9.5) the device target shorthand
(the <target dev='...'/> sub-element, such as "vda").  Valid names
can be found by calling virDomainGetXMLDesc() and inspecting
elements within //domain/devices/disk.

Note that this call may fail if the underlying virtualization hypervisor
does not support it; this call requires privileged access to the
hypervisor. zvirDomainBlockResize() failedrq   )r   ZvirDomainBlockResizer   r   )r#   r   r   rH   rL   r   r   blockResizeZvirDomain.blockResize  s4    0 --dggt5I"9>??
r   c                r   )z.Extracts block device statistics for a domain zvirDomainBlockStats() failed)r   ZvirDomainBlockStatsr   r   r#   r   rL   r   r   
blockStatsZvirDomain.blockStats  s.    ,,TWWd;;=>>
r   c                r   )z@Extracts block device statistics parameters of a running domain z!virDomainBlockStatsFlags() failed)r   ZvirDomainBlockStatsFlagsr   r   r   rM   r   blockStatsFlagsZvirDomain.blockStatsFlags  r   r   c                ~    \         P                  ! V P                  W4      pVf   \        R4      h\	        WR7      pV# )a	  Create a new checkpoint using @xmlDesc, with a top-level
<domaincheckpoint> element, on a running @domain.  Note that
@xmlDesc must validate against the <domaincheckpoint> XML schema.
Typically, it is more common to create a new checkpoint as part of
kicking off a backup job with virDomainBackupBegin(); however, it
is also possible to start a checkpoint without a backup.

See https://libvirt.org/formatcheckpoint.html#checkpoint-xml
for more details on @xmlDesc. In particular, some hypervisors may require
particular disk formats, such as qcow2, in order to support this
command; where @xmlDesc can be used to limit the checkpoint to a working
subset of the domain's disks.

If @flags includes VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE, then this
is a request to reinstate checkpoint metadata that was previously
captured from virDomainCheckpointGetXMLDesc() before removing that
metadata, rather than creating a new checkpoint.  Note that while
original creation can omit a number of elements from @xmlDesc (and
libvirt will supply sane defaults based on the domain state at that
point in time), a redefinition must supply more elements (as the
domain may have changed in the meantime, so that libvirt no longer
has a way to resupply correct defaults).  Not all hypervisors support
this flag.

If @flags includes VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE along with
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE the state of the metadata related
to the disk state of the redefined checkpoint is validated. Note that
hypervisors may require that the @domain is running to perform validation.

If @flags includes VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE, then the
libvirt will attempt to use guest agent to freeze and thaw all file
systems in use within domain OS. However, if the guest agent is not
present, an error is thrown. This flag is incompatible with
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE.

Note: A checkpoint represents point in time after which blocks changed by
the hypervisor are tracked. The tracking of changed blocks notes only whether
a block was modified, but does not preserve the old contents.
The main purpose of checkpoints is to enable incremental backups. But for a
checkpoint to be useful for this purpose, a backup must be performed at the
same time as the checkpoint is created.
This is done via the virDomainBackupBegin API, which also allows to create a
checkpoint at the same time. Creating checkpoints with
virDomainCheckpointCreateXML is generally only useful for re-creating the
libvirt metadata. z%virDomainCheckpointCreateXML() failedrJ   )r   ZvirDomainCheckpointCreateXMLr   r   virDomainCheckpointr#   xmlDescrH   rL   _virDomain__tmprg   r   checkpointCreateXMLZvirDomain.checkpointCreateXML  s;    \ 55dggwN;FGG#D3r   c                r   )z5Try to lookup a domain checkpoint based on its name. z(virDomainCheckpointLookupByName() failedrJ   )r   ZvirDomainCheckpointLookupByNamer   r   r   r#   rO   rH   rL   r   rg   r   checkpointLookupByNameZ virDomain.checkpointLookupByName  s8    88$N;IJJ#D3r   c                r   )zFExtract details about current state of control interface to a domain. z virDomainGetControlInfo() failed)r   ZvirDomainGetControlInfor   r   r   r   r   controlInfoZvirDomain.controlInfo*  .    00%@;ABB
r   c                r   )a  This method will dump the core of a domain on a given file for analysis.
Note that for remote Xen Daemon the file path will be interpreted in
the remote host. Hypervisors may require  the user to manually ensure
proper permissions on the file named by @to.

If @flags includes VIR_DUMP_CRASH, then leave the guest shut off with
a crashed state after the dump completes.  If @flags includes
VIR_DUMP_LIVE, then make the core dump while continuing to allow
the guest to run; otherwise, the guest is suspended during the dump.
VIR_DUMP_RESET flag forces reset of the guest after dump.
The above three flags are mutually exclusive.

Additionally, if @flags includes VIR_DUMP_BYPASS_CACHE, then libvirt
will attempt to bypass the file system cache while creating the file,
or fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS.

For more control over the output format, see virDomainCoreDumpWithFormat(). zvirDomainCoreDump() failedrq   )r   ZvirDomainCoreDumpr   r   )r#   torH   rL   rM   r   coreDumpZvirDomain.coreDump5  s2    & **477B>"9;<<
r   c                r   )aL  This method will dump the core of a domain on a given file for analysis.
Note that for remote Xen Daemon the file path will be interpreted in
the remote host. Hypervisors may require  the user to manually ensure
proper permissions on the file named by @to.

@dumpformat controls which format the dump will have; use of
VIR_DOMAIN_CORE_DUMP_FORMAT_RAW mirrors what virDomainCoreDump() will
perform.  Not all hypervisors are able to support all formats.

If @flags includes VIR_DUMP_CRASH, then leave the guest shut off with
a crashed state after the dump completes.  If @flags includes
VIR_DUMP_LIVE, then make the core dump while continuing to allow
the guest to run; otherwise, the guest is suspended during the dump.
VIR_DUMP_RESET flag forces reset of the guest after dump.
The above three flags are mutually exclusive.

Additionally, if @flags includes VIR_DUMP_BYPASS_CACHE, then libvirt
will attempt to bypass the file system cache while creating the file,
or fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS. z$virDomainCoreDumpWithFormat() failedrq   )r   ZvirDomainCoreDumpWithFormatr   r   )r#   r   Z
dumpformatrH   rL   r   r   coreDumpWithFormatZvirDomain.coreDumpWithFormatM  s4    * 44TWWbeT"9EFF
r   c                r   )zLaunch a defined domain. If the call succeeds the domain moves from the
defined to the running domains pools.  The domain will be paused only
if restoring from managed state created from a paused domain.  For more
control, see virDomainCreateWithFlags(). zvirDomainCreate() failedrq   )r   ZvirDomainCreater   r   r   rQ   r   createZvirDomain.createg  s0    
 ((1"99::
r   c                r   )a  Launch a defined domain. If the call succeeds the domain moves from the
defined to the running domains pools.

If the VIR_DOMAIN_START_PAUSED flag is set, or if the guest domain
has a managed save image that requested paused state (see
virDomainManagedSave()) the guest domain will be started, but its
CPUs will remain paused. The CPUs can later be manually started
using virDomainResume().  In all other cases, the guest domain will
be running.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration. Hypervisors may also block save-to-file,
or snapshots.

If the VIR_DOMAIN_START_BYPASS_CACHE flag is set, and there is a
managed save file for this domain (created by virDomainManagedSave()),
then libvirt will attempt to bypass the file system cache while restoring
the file, or fail if it cannot do so for the given system; this can allow
less pressure on file system cache, but also risks slowing loads from NFS.

If the VIR_DOMAIN_START_FORCE_BOOT flag is set, then any managed save
file for this domain is discarded, and the domain boots from scratch.

If @flags includes VIR_DOMAIN_START_RESET_NVRAM, then libvirt will
discard any existing NVRAM file and re-initialize NVRAM from the
pristine template. z!virDomainCreateWithFlags() failedrq   )r   ZvirDomainCreateWithFlagsr   r   r   r   r   createWithFlagsZvirDomain.createWithFlagsq  s2    > 11$''5A"9BCC
r   c                r   )a  Dynamically delete an IOThread from the domain. The @iothread_id to be
deleted must not have a resource associated with it and can be any of
the currently valid IOThread ID's.

Note that this call can fail if the underlying virtualization hypervisor
does not support it or if reducing the number is arbitrarily limited.
This function requires privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set.
If VIR_DOMAIN_AFFECT_LIVE is set, the change affects a running domain
and may fail if domain is not alive.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified (that is,
@flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain modifies
persistent setup, while an active domain is hypervisor-dependent on whether
just live or both live and persistent state is changed. zvirDomainDelIOThread() failedrq   )r   ZvirDomainDelIOThreadr   r   r   rM   r   delIOThreadZvirDomain.delIOThread  r   r   c                r   )a  Delete an throttlegroup from the domain. @group cannot be None,
and the @group to be deleted must not have a throttlefilter associated with
it and can be any of the current valid group.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set.
If VIR_DOMAIN_AFFECT_LIVE is set, the change affects a running domain
and may fail if domain is not alive.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified (that is,
@flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain modifies
persistent setup, while an active domain is hypervisor-dependent on whether
just live or both live and persistent state is changed. z"virDomainDelThrottleGroup() failedrq   )r   ZvirDomainDelThrottleGroupr   r   )r#   grouprH   rL   rM   r   delThrottleGroupZvirDomain.delThrottleGroup  s2     22477EI"9CDD
r   c                r   )aY  Destroy the domain object. The running instance is shutdown if not down
already and all resources used by it are given back to the hypervisor. This
does not free the associated virDomainPtr object.
This function may require privileged access.

virDomainDestroy first requests that a guest terminate
(e.g. SIGTERM), then waits for it to comply. After a reasonable
timeout, if the guest still exists, virDomainDestroy will
forcefully terminate the guest (e.g. SIGKILL) if necessary (which
may produce undesirable results, for example unflushed disk cache
in the guest). To avoid this possibility, it's recommended to
instead call virDomainDestroyFlags, sending the
VIR_DOMAIN_DESTROY_GRACEFUL flag.

If the domain is transient and has any snapshot metadata (see
virDomainSnapshotNum()), then that metadata will automatically
be deleted when the domain quits. zvirDomainDestroy() failedrq   )r   ZvirDomainDestroyr   r   r   rQ   r   destroyZvirDomain.destroy  s0    $ ))$''2"9:;;
r   c                r   )aO  Destroy the domain object. The running instance is shutdown if not down
already and all resources used by it are given back to the hypervisor.
This does not free the associated virDomainPtr object.
This function may require privileged access.

Calling this function with no @flags set (equal to zero) is
equivalent to calling virDomainDestroy, and after a reasonable
timeout will forcefully terminate the guest (e.g. SIGKILL) if
necessary (which may produce undesirable results, for example
unflushed disk cache in the guest). Including
VIR_DOMAIN_DESTROY_GRACEFUL in the flags will prevent the forceful
termination of the guest, and virDomainDestroyFlags will instead
return an error if the guest doesn't terminate by the end of the
timeout; at that time, the management application can decide if
calling again without VIR_DOMAIN_DESTROY_GRACEFUL is appropriate.

If VIR_DOMAIN_DESTROY_REMOVE_LOGS flag is set then domain specific
logs will be deleted as well if there are any. Note that not all
deployments are be supported. For example in case of QEMU driver
this flags is noop if virtlogd is not used for handling QEMU
process output.

Another alternative which may produce cleaner results for the
guest's disks is to use virDomainShutdown() instead, but that
depends on guest support (some hypervisor/guest combinations may
ignore the shutdown request). zvirDomainDestroyFlags() failedrq   )r   ZvirDomainDestroyFlagsr   r   r   r   r   destroyFlagsZvirDomain.destroyFlags  s2    6 ..tww>"9?@@
r   c                r   )zThis is an equivalent of virDomainDetachDeviceFlags() when called with
@flags parameter set to VIR_DOMAIN_AFFECT_LIVE.

See virDomainDetachDeviceFlags() for more details. zvirDomainDetachDevice() failedrq   )r   ZvirDomainDetachDevicer   r   r   r   r   detachDeviceZvirDomain.detachDevice  s2    
 ..tww<"9?@@
r   c                r   )at  Detach a virtual device from a domain, using the alias to
specify the device. The value of @flags should be either
VIR_DOMAIN_AFFECT_CURRENT, or a bitwise-or of values from
VIR_DOMAIN_AFFECT_LIVE and VIR_DOMAIN_AFFECT_CURRENT, although
hypervisors vary in which flags are supported.

In contrast to virDomainDetachDeviceFlags() this API is
asynchronous - it returns immediately after sending the detach
request to the hypervisor. It's caller's responsibility to
wait for VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event to signal
actual device removal or for
VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED to signal rejected
device removal. z#virDomainDetachDeviceAlias() failedrq   )r   ZvirDomainDetachDeviceAliasr   r   )r#   aliasrH   rL   rM   r   detachDeviceAliasZvirDomain.detachDeviceAlias   s2     33DGGUJ"9DEE
r   c                r   )a	  Detach a virtual device from a domain, using the flags parameter
to control how the device is detached.  VIR_DOMAIN_AFFECT_CURRENT
specifies that the device allocation is removed based on current domain
state.  VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
deallocated from the active domain instance only and is not from the
persisted domain configuration.  VIR_DOMAIN_AFFECT_CONFIG
specifies that the device shall be deallocated from the persisted domain
configuration only.  Note that the target hypervisor must return an
error if unable to satisfy flags.  E.g. the hypervisor driver will
return failure if LIVE is specified but it only supports removing the
persisted device allocation.

Some hypervisors may prevent this operation if there is a current
block job running operation on the device being detached; in that case,
use virDomainBlockJobAbort() to stop the block job first.

Beware that depending on the hypervisor and device type, detaching a device
from a running domain may be asynchronous. That is, calling
virDomainDetachDeviceFlags may just request device removal while the device
is actually removed later (in cooperation with a guest OS). Previously,
this fact was ignored and the device could have been removed from domain
configuration before it was actually removed by the hypervisor causing
various failures on subsequent operations. To check whether the device was
successfully removed, either recheck domain configuration using
virDomainGetXMLDesc() or add a handler for the VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED
event. In case the device is already gone when virDomainDetachDeviceFlags
returns, the event is delivered before this API call ends. To help existing
clients work better in most cases, this API will try to transform an
asynchronous device removal that finishes shortly after the request into
a synchronous removal. In other words, this API may wait a bit for the
removal to complete in case it was not synchronous.

Be aware that hotplug changes might not persist across a domain going
into S4 state (also known as hibernation) unless you also modify the
persistent domain definition.

The supplied XML description of the device should be as specific
as its definition in the domain XML. The set of attributes used
to match the device are internal to the drivers. Using a partial definition,
or attempting to detach a device that is not present in the domain XML,
but shares some specific attributes with one that is present,
may lead to unexpected results. z#virDomainDetachDeviceFlags() failedrq   )r   ZvirDomainDetachDeviceFlagsr   r   r   rM   r   detachDeviceFlagsZvirDomain.detachDeviceFlags  s3    V 33DGGSH"9DEE
r   c                r   )z Extract errors on disk devices. zvirDomainGetDiskErrors() failed)r   ZvirDomainGetDiskErrorsr   r   r   r   r   
diskErrorsZvirDomain.diskErrorsG  .    //?;@AA
r   c                r   )zAQuery the CPU affinity setting of the emulator process of domain z$virDomainGetEmulatorPinInfo() failed)r   ZvirDomainGetEmulatorPinInfor   r   r   r   r   emulatorPinInfoZvirDomain.emulatorPinInfoN  r   r   c                r   )a  Calls FITRIM within the guest (hence guest agent may be
required depending on hypervisor used). Either call it on each
mounted filesystem (@mountPoint is None) or just on specified
@mountPoint. @minimum hints that free ranges smaller than this
may be ignored (this is a hint and the guest may not respect
it).  By increasing this value, the fstrim operation will
complete more quickly for filesystems with badly fragmented
free space, although not all blocks will be discarded.
If @minimum is not zero, the command may fail. zvirDomainFSTrim() failedrq   )r   ZvirDomainFSTrimr   r   )r#   Z
mountPointZminimumrH   rL   r   r   fSTrimZvirDomain.fSTrimY  s4     ((*uM"99::
r   c                r   )zjGet a list of mapping information for each mounted file systems within the specified guest and the disks. zvirDomainGetFSInfo() failed)r   ZvirDomainGetFSInfor   r   r   r   r   fsInfoZvirDomain.fsInfol  s.    ++DGGU;;<==
r   c                r   )a  Extracts CPU statistics for a running domain. On success it will
return a list of data of dictionary type. If boolean total is False or 0, the
first element of the list refers to CPU0 on the host, second element is
CPU1, and so on. The format of data struct is as follows:
[{cpu_time:xxx}, {cpu_time:xxx}, ...]
If it is True or 1, it returns total domain CPU statistics in the format of
[{cpu_time:xxx, user_time:xxx, system_time:xxx}] zvirDomainGetCPUStats() failed)r   ZvirDomainGetCPUStatsr   r   )r#   totalrH   rL   rM   r   getCPUStatsZvirDomain.getCPUStatss  s0     --dgguD;>??
r   c                r   )zeReload domain's graphics. This can be used to reload TLS certificates
without restarting the domain. z virDomainGraphicsReload() failedrq   )r   ZvirDomainGraphicsReloadr   r   )r#   r   rH   rL   rM   r   graphicsReloadZvirDomain.graphicsReload  s2     00$F"9ABB
r   c                r   )z%Get aggregated info from guest agent zvirDomainGetGuestInfo() failed)r   ZvirDomainGetGuestInfor   r   )r#   typesrH   rL   rM   r   	guestInfoZvirDomain.guestInfo  s.    ..twwE;?@@
r   c                r   )zBreturns a dictionary containing information regarding guest vcpus zvirDomainGetGuestVcpus() failedrq   )r   ZvirDomainGetGuestVcpusr   r   r   r   r   
guestVcpusZvirDomain.guestVcpus  s0    //?"9@AA
r   c                r   )z0Determine if the domain has a current snapshot. z$virDomainHasCurrentSnapshot() failedrq   )r   ZvirDomainHasCurrentSnapshotr   r   r   r   r   hasCurrentSnapshotZvirDomain.hasCurrentSnapshot  0    44TWWeD"9EFF
r   c                r   )zCheck if a domain has a managed save image as created by
virDomainManagedSave(). Note that any running domain should not have
such an image, as it should have been removed on restart. z%virDomainHasManagedSaveImage() failedrq   )r   ZvirDomainHasManagedSaveImager   r   r   r   r   hasManagedSaveImageZvirDomain.hasManagedSaveImage  s2     55dgguE"9FGG
r   c                r   )zGet the hostname for that domain. If no hostname is found,
then an error is raised with VIR_ERR_NO_HOSTNAME code.

Dependent on hypervisor and @flags used, this may require a
guest agent to be available. zvirDomainGetHostname() failed)r   ZvirDomainGetHostnamer   r   r   r   r   hostnameZvirDomain.hostname  s0     --dggu=;>??
r   c                r   )zExtract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. zvirDomainGetInfo() failed)r   ZvirDomainGetInfor   r   r   rQ   r   infoZvirDomain.info  r   r   c                r   )zSend NMI to the guest zvirDomainInjectNMI() failedrq   )r   ZvirDomainInjectNMIr   r   r   r   r   	injectNMIZvirDomain.injectNMI  s0    ++DGGU;"9<==
r   c                r   )zPreturns a dictionary of domain interfaces along with their MAC and IP addresses z$virDomainInterfaceAddresses() failed)r   ZvirDomainInterfaceAddressesr   r   )r#   ZsourcerH   rL   rM   r   interfaceAddressesZvirDomain.interfaceAddresses  s.    44TWWfL;EFF
r   c                r   )z2Get the bandwidth tunables for a interface device z(virDomainGetInterfaceParameters() failed)r   ZvirDomainGetInterfaceParametersr   r   )r#   devicerH   rL   rM   r   interfaceParametersZvirDomain.interfaceParameters  s.    88&P;IJJ
r   c                r   )z2Extracts interface device statistics for a domain z virDomainInterfaceStats() failed)r   ZvirDomainInterfaceStatsr   r   r   r   r   interfaceStatsZvirDomain.interfaceStats  s.    00$?;ABB
r   c                r   )z>Query the CPU affinity setting of the IOThreads of the domain z!virDomainGetIOThreadInfo() failed)r   ZvirDomainGetIOThreadInfor   r   r   r   r   ioThreadInfoZvirDomain.ioThreadInfo  s.    11$''5A;BCC
r   c                r   )z-Determine if the domain is currently running zvirDomainIsActive() failedrq   )r   ZvirDomainIsActiver   r   r   rQ   r   isActiveZvirDomain.isActive  s.    **4773"9;<<
r   c                r   )zkDetermine if the domain has a persistent configuration
which means it will still exist after shutting down zvirDomainIsPersistent() failedrq   )r   ZvirDomainIsPersistentr   r   r   rQ   r   isPersistentZvirDomain.isPersistent  s0     ..tww7"9?@@
r   c                r   )z*Determine if the domain has been updated. zvirDomainIsUpdated() failedrq   )r   ZvirDomainIsUpdatedr   r   r   rQ   r   	isUpdatedZvirDomain.isUpdated
  .    ++DGG4"9<==
r   c                r   )FExtract information about an active job being processed for a domain. zvirDomainGetJobInfo() failed)r   ZvirDomainGetJobInfor   r   r   rQ   r   jobInfoZvirDomain.jobInfo  s,    ,,TWW5;=>>
r   c                r   )r  zvirDomainGetJobStats() failed)r   ZvirDomainGetJobStatsr   r   r   r   r   jobStatsZvirDomain.jobStats  .    --dggu=;>??
r   c                r   )z&Get launch security info for a domain z'virDomainGetLaunchSecurityInfo() failed)r   ZvirDomainGetLaunchSecurityInfor   r   r   r   r   launchSecurityInfoZvirDomain.launchSecurityInfo#  s.    77G;HII
r   c                r   )ax  This method will suspend a domain and save its memory contents to
a file on disk. After the call, if successful, the domain is not
listed as running anymore.
The difference from virDomainSave() is that libvirt is keeping track of
the saved state itself, and will reuse it once the domain is being
restarted (automatically or via an explicit libvirt call).
As a result any running domain is sure to not have a managed saved image.
This also implies that managed save only works on persistent domains,
since the domain must still exist in order to use virDomainCreate() to
restart it.

If @flags includes VIR_DOMAIN_SAVE_BYPASS_CACHE, then libvirt will
attempt to bypass the file system cache while creating the file, or
fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS.

Normally, the managed saved state will remember whether the domain
was running or paused, and start will resume to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default saved into the file.  These two
flags are mutually exclusive. zvirDomainManagedSave() failedrq   )r   ZvirDomainManagedSaver   r   r   r   r   managedSaveZvirDomain.managedSave.  s2    , --dggu="9>??
r   c                r   )aq  This updates the definition of a domain stored in a saved state
file.

@dxml can be used to alter host-specific portions of the domain XML
that will be used on the next start of the domain. For example, it is
possible to alter the backing filename that is associated with a
disk device.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default saved into the file; omitting both
leaves the file's default unchanged.  These two flags are mutually
exclusive. z&virDomainManagedSaveDefineXML() failedrq   )r   ZvirDomainManagedSaveDefineXMLr   r   )r#   dxmlrH   rL   rM   r   managedSaveDefineXMLZvirDomain.managedSaveDefineXMLI  s2     66twwL"9GHH
r   c                r   )zThis method will extract the XML description of the managed save
state file of a domain.

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_SAVE_IMAGE_XML_SECURE; this flag is rejected on read-only
connections. z'virDomainManagedSaveGetXMLDesc() failed)r   ZvirDomainManagedSaveGetXMLDescr   r   r   r   r   managedSaveGetXMLDescZvirDomain.managedSaveGetXMLDesc]  s0     77G;HII
r   c                r   )z/Remove any managed save image for this domain. z#virDomainManagedSaveRemove() failedrq   )r   ZvirDomainManagedSaveRemover   r   r   r   r   managedSaveRemoveZvirDomain.managedSaveRemovei  s0    33DGGUC"9DEE
r   c                sj    \         P                  ! V P                  4      pV^ 8X  d   \        R4      hV# )zRetrieve the maximum amount of physical memory allocated to a
domain. If domain is None, then this get the amount of memory reserved
to Domain0 i.e. the domain where the application runs. zvirDomainGetMaxMemory() failed)r   ZvirDomainGetMaxMemoryr   r   r   rQ   r   	maxMemoryZvirDomain.maxMemoryp  s0     ..tww7!8?@@
r   c                r   )a2  Provides the maximum number of virtual CPUs supported for
the guest VM. If the guest is inactive, this is basically
the same as virConnectGetMaxVcpus(). If the guest is running
this will reflect the maximum number of virtual CPUs the
guest was booted with.  For more details, see virDomainGetVcpusFlags(). zvirDomainGetMaxVcpus() failedrq   )r   ZvirDomainGetMaxVcpusr   r   r   rQ   r   maxVcpusZvirDomain.maxVcpusy  s0     --dgg6"9>??
r   c                r   )zGet the memory parameters z%virDomainGetMemoryParameters() failed)r   ZvirDomainGetMemoryParametersr   r   r   r   r   memoryParametersZvirDomain.memoryParameters  s.    55dgguE;FGG
r   c                h    \         P                  ! V P                  WV4      pVf   \        R4      hV# )z%Read the contents of domain's memory zvirDomainMemoryPeek() failed)r   ZvirDomainMemoryPeekr   r   )r#   Zstartr   rH   rL   r   r   
memoryPeekZvirDomain.memoryPeek  s0    ,,TWWe5I;=>>
r   c                r   )z(Extracts memory statistics for a domain zvirDomainMemoryStats() failed)r   ZvirDomainMemoryStatsr   r   r   rQ   r   memoryStatsZvirDomain.memoryStats  ,    --dgg6;>??
r   c                r   )z0Fetch list of messages reported against domain. zvirDomainGetMessages() failed)r   ZvirDomainGetMessagesr   r   r   r   r   messagesZvirDomain.messages  r  r   c                r(  )a  Retrieves the appropriate domain element given by @type.
If VIR_DOMAIN_METADATA_ELEMENT is requested parameter @uri
must be set to the name of the namespace the requested elements
belong to, otherwise must be None.

If an element of the domain XML is not present, the resulting
error will be VIR_ERR_NO_DOMAIN_METADATA.  This method forms
a shortcut for seeing information from virDomainSetMetadata()
without having to go through virDomainGetXMLDesc().

@flags controls whether the live domain or persistent
configuration will be queried. zvirDomainGetMetadata() failed)r   ZvirDomainGetMetadatar   r   r#   r   rF   rH   rL   r   r   metadataZvirDomain.metadata  s2     --dggt%H;>??
r   c                s    Vf   RpMVP                   p\        P                  ! V P                   WbW4V4      pVf   \        R4      h\	        V P
                  VR7      pV# )a  Migrate the domain object from its current host to the destination
host given by dconn (a connection to the destination host).

This function is similar to virDomainMigrate3, but it only supports a fixed
set of parameters: @dname corresponds to VIR_MIGRATE_PARAM_DEST_NAME, @uri
is VIR_MIGRATE_PARAM_URI, and @bandwidth is VIR_MIGRATE_PARAM_BANDWIDTH.

virDomainFree should be used to free the resources after the
returned domain object is no longer needed. NzvirDomainMigrate() failedrJ   )r   r   ZvirDomainMigrater   r   r   )	r#   dconnrH   dnamerF   r   dconn__orL   r   s	   &&&&&&   r   migrateZvirDomain.migrate  sX     =HxxH))$''8EPYZ;:;;$**3/r   c           	     s    Vf   RpMVP                   p\        P                  ! V P                   WrW4WV4      pVf   \        R4      h\	        V P
                  VR7      p	V	# )a  Migrate the domain object from its current host to the destination
host given by dconn (a connection to the destination host).

This function is similar to virDomainMigrate3, but it only supports a fixed
set of parameters: @dxml corresponds to VIR_MIGRATE_PARAM_DEST_XML, @dname
is VIR_MIGRATE_PARAM_DEST_NAME, @uri is VIR_MIGRATE_PARAM_URI, and
@bandwidth is VIR_MIGRATE_PARAM_BANDWIDTH.

virDomainFree should be used to free the resources after the
returned domain object is no longer needed. NzvirDomainMigrate2() failedrJ   )r   r   ZvirDomainMigrate2r   r   r   )
r#   r/  r!  rH   r0  rF   r   r1  rL   r   s
   &&&&&&&   r   migrate2ZvirDomain.migrate2  sX     =HxxH**477HERUa;;<<$**3/r   c                s    Vf   RpMVP                   p\        P                  ! V P                   WBV4      pVf   \        R4      h\	        V P
                  VR7      pV# )zMigrate the domain object from its current host to the destination host
given by dconn (a connection to the destination host). NzvirDomainMigrate3() failedrJ   )r   r   ZvirDomainMigrate3r   r   r   )r#   r/  r   rH   r1  rL   r      &&&&   r   migrate3ZvirDomain.migrate3  sU     =HxxH**477HeL;;<<$**3/r   c                H    \         P                  ! V P                  V4      pV# )zyGet current size of the cache (in bytes) used for compressing
repeatedly transferred memory pages during live migration. )r   Z#virDomainMigrateGetCompressionCacher   r   r   r   migrateGetCompressionCacheZ$virDomain.migrateGetCompressionCache  s     <<TWWeL
r   c                r6  )zgGet the current value of the maximum downtime (in milliseconds)
allowed during a migration of a guest. )r   ZvirDomainMigrateGetMaxDowntimer   r   r   r   migrateGetMaxDowntimeZvirDomain.migrateGetMaxDowntime  s     77G
r   c                r   )z>Get currently configured maximum migration speed for a domain z$virDomainMigrateGetMaxSpeed() failedrq   )r   ZvirDomainMigrateGetMaxSpeedr   r   r   r   r   migrateGetMaxSpeedZvirDomain.migrateGetMaxSpeed   r  r   c                r   )a/  Sets size of the cache (in bytes) used for compressing repeatedly
transferred memory pages during live migration. It's supposed to be called
while the domain is being live-migrated as a reaction to migration progress
and increasing number of compression cache misses obtained from
virDomainGetJobStats. z,virDomainMigrateSetCompressionCache() failedrq   )r   Z#virDomainMigrateSetCompressionCacher   r   )r#   Z	cacheSizerH   rL   rM   r   migrateSetCompressionCacheZ$virDomain.migrateSetCompressionCache  s2     <<TWWiW"9MNN
r   c                r   )zSets maximum tolerable time for which the domain is allowed to be paused
at the end of live migration. It's supposed to be called while the domain is
being live-migrated as a reaction to migration progress. z'virDomainMigrateSetMaxDowntime() failedrq   )r   ZvirDomainMigrateSetMaxDowntimer   r   )r#   downtimerH   rL   rM   r   migrateSetMaxDowntimeZvirDomain.migrateSetMaxDowntime  s2     77Q"9HII
r   c                r   )a/  The maximum bandwidth (in MiB/s) that will be used to do migration
can be specified with the bandwidth parameter. Not all hypervisors
will support a bandwidth cap. When VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY
is set in @flags, this API sets the maximum bandwidth for the post-copy
phase of the migration. z$virDomainMigrateSetMaxSpeed() failedrq   )r   ZvirDomainMigrateSetMaxSpeedr   r   )r#   r   rH   rL   rM   r   migrateSetMaxSpeedZvirDomain.migrateSetMaxSpeed  s2     44TWWiO"9EFF
r   c                r   )a  Starts post-copy migration. This function has to be called while
migration (initiated with VIR_MIGRATE_POSTCOPY flag) is in progress.

Traditional pre-copy migration iteratively walks through guest memory
pages and migrates those that changed since the previous iteration. The
iterative phase stops when the number of dirty pages is low enough so that
the virtual CPUs can be paused, all dirty pages transferred to the
destination, where the virtual CPUs are unpaused, and all this can happen
within a predefined downtime period. It's clear that this process may never
converge if downtime is too short and/or the guest keeps changing a lot of
memory pages.

When migration is switched to post-copy mode, the virtual CPUs are paused
immediately, only a minimum set of pages is transferred, and the CPUs are
unpaused on destination. The source keeps sending all remaining memory pages
to the destination while the guest is already running there. Whenever the
guest tries to read a memory page which has not been migrated yet, the
hypervisor has to tell the source to transfer that page in a priority
channel. To minimize such page faults, it is a good idea to run at least one
iteration of pre-copy migration before switching to post-copy.

Post-copy migration is guaranteed to converge since each page is transferred
at most once no matter how fast it changes. On the other hand once the
guest is running on the destination host, the migration can no longer be
rolled back because none of the hosts has complete state. If this happens,
libvirt will leave the domain paused on the source host with
VIR_DOMAIN_PAUSED_POSTCOPY_FAILED reason. The domain on the destination host
will remain running with VIR_DOMAIN_RUNNING_POSTCOPY_FAILED reason.
It's up to the upper layer to decide what to do in such case. Because of
this, libvirt will refuse to cancel post-copy migration via
virDomainAbortJobFlags unless it is called with
VIR_DOMAIN_ABORT_JOB_POSTCOPY, in which case the post-copy migration will be
paused.

Failed post-copy migration can be recovered once the cause for the failure
(e.g., a network issue) is resolved by repeating the migration with an
additional VIR_MIGRATE_POSTCOPY_RESUME flag. This will recreate the
connection and resume migration from the point where it failed. This step
can be repeated in case the migration breaks again.

The following domain life cycle events are emitted during post-copy
migration:
 VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY (on the source) -- migration entered
     post-copy mode.
 VIR_DOMAIN_EVENT_RESUMED_POSTCOPY (on the destination) -- the guest is
     running on the destination host while some of its memory pages still
     remain on the source host; neither the source nor the destination host
     contain a complete guest state from this point until migration
     finishes.
 VIR_DOMAIN_EVENT_RESUMED_MIGRATED (on the destination),
 VIR_DOMAIN_EVENT_STOPPED_MIGRATED (on the source) -- migration finished
     successfully and the destination host holds a complete guest state.
 VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILED (on the source),
 VIR_DOMAIN_EVENT_RESUMED_POSTCOPY_FAILED (on the destination) -- emitted
     when migration fails in post-copy mode and it's unclear whether any of
     the hosts has a complete guest state. Virtual CPUs on the destination
     are still running.

The progress of a post-copy migration can be monitored normally using
virDomainGetJobStats on the source host. Fetching statistics of a completed
post-copy migration can also be done on the source host (by calling
virDomainGetJobStats or listening to VIR_DOMAIN_EVENT_ID_JOB_COMPLETED
event, but (in contrast to pre-copy migration) the statistics are not
available on the destination host. Thus, VIR_DOMAIN_EVENT_ID_JOB_COMPLETED
event is the only way of getting statistics of a completed post-copy
migration of a transient domain (because the domain is removed after
migration and there's no domain to run virDomainGetJobStats on). z&virDomainMigrateStartPostCopy() failedrq   )r   ZvirDomainMigrateStartPostCopyr   r   r   r   r   migrateStartPostCopyZvirDomain.migrateStartPostCopy*  s3    H 66twwF"9GHH
r   c                r   )aA  Migrate the domain object from its current host to the destination
host given by duri.

This function is similar to virDomainMigrateToURI3, but it only supports a
fixed set of parameters: @dname corresponds to VIR_MIGRATE_PARAM_DEST_NAME,
and @bandwidth corresponds to VIR_MIGRATE_PARAM_BANDWIDTH.

The operation of this API hinges on the VIR_MIGRATE_PEER2PEER flag.

If the VIR_MIGRATE_PEER2PEER flag IS set, the @duri parameter must be a
valid libvirt connection URI, by which the source libvirt driver can connect
to the destination libvirt. In other words, @duri corresponds to @dconnuri
of virDomainMigrateToURI3.

If the VIR_MIGRATE_PEER2PEER flag is NOT set, the @duri parameter takes a
hypervisor specific URI used to initiate the migration. In this case @duri
corresponds to VIR_MIGRATE_PARAM_URI of virDomainMigrateToURI3. zvirDomainMigrateToURI() failedrq   )r   ZvirDomainMigrateToURIr   r   )r#   ZdurirH   r0  r   rL   r   r   migrateToURIZvirDomain.migrateToURIs  s4    $ ..twwUV"9?@@
r   c           	     p    \         P                  ! V P                  WW4WV4      pVR8X  d   \        R4      hV# )a  Migrate the domain object from its current host to the destination
host given by @dconnuri.

This function is similar to virDomainMigrateToURI3, but it only supports a
fixed set of parameters: @miguri corresponds to VIR_MIGRATE_PARAM_URI, @dxml
is VIR_MIGRATE_PARAM_DEST_XML, @dname is VIR_MIGRATE_PARAM_DEST_NAME, and
@bandwidth corresponds to VIR_MIGRATE_PARAM_BANDWIDTH.

The operation of this API hinges on the VIR_MIGRATE_PEER2PEER flag.

If the VIR_MIGRATE_PEER2PEER flag IS set, the @dconnuri parameter must be a
valid libvirt connection URI, by which the source libvirt driver can connect
to the destination libvirt. In other words, @dconnuri has the same semantics
as in virDomainMigrateToURI3.

If the VIR_MIGRATE_PEER2PEER flag is NOT set, the @dconnuri must be None
and the @miguri parameter takes a hypervisor specific URI used to initiate
the migration. In this case @miguri corresponds to VIR_MIGRATE_PARAM_URI of
virDomainMigrateToURI3. zvirDomainMigrateToURI2() failedrq   )r   ZvirDomainMigrateToURI2r   r   )r#   dconnuriZmigurir!  rH   r0  r   rL      &&&&&&& r   migrateToURI2ZvirDomain.migrateToURI2  s7    ( //4X]i"9@AA
r   c                r   )zVMigrate the domain object from its current host to the destination host
given by URI. zvirDomainMigrateToURI3() failedrq   )r   ZvirDomainMigrateToURI3r   r   )r#   rA  r   rH   rL   r   r   migrateToURI3ZvirDomain.migrateToURI3  s4     //5Q"9@AA
r   c                r   )z$Get the public name for that domain )r   ZvirDomainGetNamer   r   rQ   r   rO   ZvirDomain.name  s    ))$''2
r   c                r   )zGet the NUMA parameters z#virDomainGetNumaParameters() failed)r   ZvirDomainGetNumaParametersr   r   r   r   r   numaParametersZvirDomain.numaParameters  .    33DGGUC;DEE
r   c                    Vf   RpMVP                   p\        P                  ! V P                   WV4      pVR8X  d   \        R4      hV# )a  This opens the host interface associated with a channel device on a
guest, if the host interface is supported.  If @name is given, it
can match either the device alias (e.g. "channel0"), or the virtio
target name (e.g. "org.qemu.guest_agent.0").  If @name is omitted,
then the first channel is opened. The channel is associated with
the passed in @st stream, which should have been opened in
non-blocking mode for bi-directional I/O.

By default, when @flags is 0, the open will fail if libvirt detects
that the channel is already in use by another client; passing
VIR_DOMAIN_CHANNEL_FORCE will cause libvirt to forcefully remove the
other client prior to opening this channel. NzvirDomainOpenChannel() failedrq   )r   r   ZvirDomainOpenChannelr   )r#   rO   strH   st__orL   rn   r   openChannelZvirDomain.openChannel  sG     :EEEE--dggtEJ"9>??
r   c                rG  )a  This opens the backend associated with a console, serial or
parallel port device on a guest, if the backend is supported.
If the @dev_name is omitted, then the first console or serial
device is opened. The console is associated with the passed
in @st stream, which should have been opened in non-blocking
mode for bi-directional I/O.

By default, when @flags is 0, the open will fail if libvirt
detects that the console is already in use by another client;
passing VIR_DOMAIN_CONSOLE_FORCE will cause libvirt to forcefully
remove the other client prior to opening this console.

If flag VIR_DOMAIN_CONSOLE_SAFE the console is opened only in the
case where the hypervisor driver supports safe (mutually exclusive)
console handling.

Older servers did not support either flag, and also did not forbid
simultaneous clients on a console, with potentially confusing results.
When passing @flags of 0 in order to support a wider range of server
versions, it is up to the client to ensure mutual exclusion. NzvirDomainOpenConsole() failedrq   )r   r   ZvirDomainOpenConsoler   )r#   Zdev_namerH  rH   rI  rL   rn   r   openConsoleZvirDomain.openConsole  sG    * :EEEE--dggxN"9>??
r   c                r   )a&  This will attempt to connect the file descriptor @fd, to
the graphics backend of @dom. If @dom has multiple graphics
backends configured, then @idx will determine which one is
opened, starting from @idx 0.

To disable any authentication, pass the VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH
constant for @flags.

The caller should use an anonymous socketpair to open
@fd before invocation.

This method can only be used when connected to a local
libvirt hypervisor, over a UNIX domain socket. Attempts
to use this method over a TCP connection will always fail zvirDomainOpenGraphics() failedrq   )r   ZvirDomainOpenGraphicsr   r   )r#   idxrT   rH   rL   r   r   openGraphicsZvirDomain.openGraphics  s4     ..twwG"9?@@
r   c                r   )a.  This will create a socket pair connected to the graphics backend of @dom.
One end of the socket will be returned on success, and the other end is
handed to the hypervisor.
If @dom has multiple graphics backends configured, then @idx will determine
which one is opened, starting from @idx 0.

To disable any authentication, pass the VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH
constant for @flags.

This method can only be used when connected to a local
libvirt hypervisor, over a UNIX domain socket. Attempts
to use this method over a TCP connection will always fail. z virDomainOpenGraphicsFD() failedrq   )r   ZvirDomainOpenGraphicsFDr   r   )r#   rL  rH   rL   rM   r   openGraphicsFDZvirDomain.openGraphicsFD	  s2     00#E"9ABB
r   c                r   )a  Attempt to have the guest enter the given @target power management
suspension level.  If @duration is non-zero, also schedule the guest to
resume normal operation after that many seconds, if nothing else has
resumed it earlier.  Some hypervisors require that @duration be 0, for
an indefinite suspension.

Dependent on hypervisor used, this may require a
guest agent to be available, e.g. QEMU.

Beware that at least for QEMU, the domain's process will be terminated
when VIR_NODE_SUSPEND_TARGET_DISK is used and a new process will be
launched when libvirt is asked to wake up the domain. As a result of
this, any runtime changes, such as device hotplug or memory settings,
are lost unless such changes were made with VIR_DOMAIN_AFFECT_CONFIG
flag. z&virDomainPMSuspendForDuration() failedrq   )r   ZvirDomainPMSuspendForDurationr   r   r#   ZtargetZdurationrH   rL   r   r   pMSuspendForDurationZvirDomain.pMSuspendForDuration!	  s5      66twwRWX"9GHH
r   c                r   )zInject a wakeup into the guest that previously used
virDomainPMSuspendForDuration, rather than waiting for the
previously requested duration (if any) to elapse. zvirDomainPMWakeup() failedrq   )r   ZvirDomainPMWakeupr   r   r   r   r   pMWakeupZvirDomain.pMWakeup6	  s2     **477E:"9;<<
r   c                r   )zGet all perf events setting. zvirDomainGetPerfEvents() failed)r   ZvirDomainGetPerfEventsr   r   r   r   r   
perfEventsZvirDomain.perfEventsC	  r  r   c                r   )zDynamically change the real CPUs which can be allocated to the emulator process of a domain.
This function requires privileged access to the hypervisor. zvirDomainPinEmulator() failedrq   )r   ZvirDomainPinEmulatorr   r   )r#   cpumaprH   rL   rM   r   pinEmulatorZvirDomain.pinEmulatorJ	  s2     --dggvE"9>??
r   c                r   )zDynamically change the real CPUs which can be allocated to an IOThread. This function requires privileged access to the hypervisor. zvirDomainPinIOThread() failedrq   )r   ZvirDomainPinIOThreadr   r   )r#   iothread_valrS  rH   rL   r   r   pinIOThreadZvirDomain.pinIOThreadR	  s2    --dgg|US"9>??
r   c                r   )Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor. zvirDomainPinVcpu() failedrq   )r   ZvirDomainPinVcpur   r   )r#   vcpurS  rL   rM   r   pinVcpuZvirDomain.pinVcpuY	  s0    ))$''4@"9:;;
r   c                r   )rW  zvirDomainPinVcpuFlags() failedrq   )r   ZvirDomainPinVcpuFlagsr   r   )r#   rX  rS  rH   rL   r   r   pinVcpuFlagsZvirDomain.pinVcpuFlags`	  s2    ..twweL"9?@@
r   c                r   )a  Reboot a domain, the domain object is still usable thereafter, but
the domain OS is being stopped for a restart.
Note that the guest OS may ignore the request.
Additionally, the hypervisor may check and support the domain
'on_reboot' XML setting resulting in a domain that shuts down instead
of rebooting.

If @flags is set to zero, then the hypervisor will choose the
method of shutdown it considers best. To have greater control
pass one or more of the virDomainRebootFlagValues. The order
in which the hypervisor tries each shutdown method is undefined,
and a hypervisor is not required to support all methods.

To use guest agent (VIR_DOMAIN_REBOOT_GUEST_AGENT) the domain XML
must have <channel> configured.

Due to implementation limitations in some drivers (the qemu driver,
for instance) it is not advised to migrate or save a guest that is
rebooting as a result of this API. Migrating such a guest can lead
to a plain shutdown on the destination. zvirDomainReboot() failedrq   )r   ZvirDomainRebootr   r   r   r   r   rebootZvirDomain.rebootk	  s2    * ((%8"99::
r   c                r   )a  Rename a domain. New domain name is specified in the second
argument. Depending on each driver implementation it may be
required that domain is in a specific state.

There might be some attributes and/or elements in domain XML that if no
value provided at XML defining time, libvirt will derive their value from
the domain name. These are not updated by this API. Users are strongly
advised to change these after the rename was successful. zvirDomainRename() failedrq   )r   ZvirDomainRenamer   r   )r#   Znew_namerH   rL   rM   r   renameZvirDomain.rename	  s2     (((B"99::
r   c                r   )a  Reset a domain immediately without any guest OS shutdown.
Reset emulates the power reset button on a machine, where all
hardware sees the RST line set and reinitializes internal state.

Note that there is a risk of data loss caused by reset without any
guest OS shutdown. zvirDomainReset() failedrq   )r   ZvirDomainResetr   r   r   r   r   resetZvirDomain.reset	  s2     ''7"9899
r   c                r   )a  Resume a suspended domain, the process is restarted from the state where
it was frozen by calling virDomainSuspend().
This function may require privileged access
Moreover, resume may not be supported if domain is in some
special state like VIR_DOMAIN_PMSUSPENDED. zvirDomainResume() failedrq   )r   ZvirDomainResumer   r   r   rQ   r   resumeZvirDomain.resume	  s0     ((1"99::
r   c                s    Vf   RpMVP                   p\        P                  ! V P                   W24      pVR8X  d   \        R4      hV# )z(revert the domain to the given snapshot Nz"virDomainRevertToSnapshot() failedrq   )r   r   ZvirDomainRevertToSnapshotr   )r#   ZsnaprH   Zsnap__orL   rg   r   revertToSnapshotZvirDomain.revertToSnapshot	  sC    <GggG22477GK"9CDD
r   c                r   )a  This method will suspend a domain and save its memory contents to a file or
direcotry (based on the vmm) on disk. After the call, if successful,the domain
is not listed as running anymore (this ends the life of a transient domain).
Use virDomainRestore() to restore a domain after saving.

See virDomainSaveFlags() and virDomainSaveParams() for more control.
Also, a save file can be inspected or modified slightly with
virDomainSaveImageGetXMLDesc() and virDomainSaveImageDefineXML(). zvirDomainSave() failedrq   )r   ZvirDomainSaver   r   )r#   r   rL   r   r   saveZvirDomain.save	  s2     &&tww3"9788
r   c                r   )a  This method will suspend a domain and save its memory contents to
a file on disk. After the call, if successful, the domain is not
listed as running anymore (this ends the life of a transient domain).
Use virDomainRestore() to restore a domain after saving.

If the hypervisor supports it, @dxml can be used to alter
host-specific portions of the domain XML that will be used when
restoring an image.  For example, it is possible to alter the
backing filename that is associated with a disk device, in order to
prepare for file renaming done as part of backing up the disk
device while the domain is stopped.

If @flags includes VIR_DOMAIN_SAVE_BYPASS_CACHE, then libvirt will
attempt to bypass the file system cache while creating the file, or
fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing saves to NFS.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override what state gets saved into the file.  These
two flags are mutually exclusive.

A save file can be inspected or modified slightly with
virDomainSaveImageGetXMLDesc() and virDomainSaveImageDefineXML().

Some hypervisors may prevent this operation if there is a current
block job running; in that case, use virDomainBlockJobAbort()
to stop the block job first. zvirDomainSaveFlags() failedrq   )r   ZvirDomainSaveFlagsr   r   )r#   r   r!  rH   rL   r   r   	saveFlagsZvirDomain.saveFlags	  s4    < ++DGGRuE"9<==
r   c                r   )zRThis method will suspend a domain and save its memory contents to a file on disk. zvirDomainSaveParams() failedrq   )r   ZvirDomainSaveParamsr   r   r#   r   rH   rL   rM   r   
saveParamsZvirDomain.saveParams	  s0    ,,TWWfD"9=>>
r   c                r   )zPGet the scheduler parameters, the @params array will be filled with the values. z(virDomainGetSchedulerParameters() failed)r   ZvirDomainGetSchedulerParametersr   r   r   rQ   r   schedulerParametersZvirDomain.schedulerParameters	  ,    88A;IJJ
r   c                r   )zGet the scheduler parameters z-virDomainGetSchedulerParametersFlags() failed)r   Z$virDomainGetSchedulerParametersFlagsr   r   r   r   r   schedulerParametersFlagsZ"virDomain.schedulerParametersFlags 
  s.    ==dgguM;NOO
r   c                r   )zGet the scheduler type. z"virDomainGetSchedulerType() failed)r   ZvirDomainGetSchedulerTyper   r   r   rQ   r   schedulerTypeZvirDomain.schedulerType
  ,    22477;;CDD
r   c                s    Vf   RpMVP                   p\        P                  ! V P                   WBV4      pVf   \        R4      hV# )al  Take a screenshot of current domain console as a stream. The image format
is hypervisor specific. Moreover, some hypervisors supports multiple
displays per domain. These can be distinguished by @screen argument.

This call sets up a stream; subsequent use of stream API is necessary
to transfer actual data, determine how much data is successfully
transferred, and detect any errors.

The screen ID is the sequential number of screen. In case of multiple
graphics cards, heads are enumerated before devices, e.g. having
two graphics cards, both with four heads, screen ID 5 addresses
the second head on the second card. NzvirDomainScreenshot() failed)r   r   ZvirDomainScreenshotr   )r#   streamZscreenrH   	stream__orL   rn   r   
screenshotZvirDomain.screenshot
  sE     >I		I,,TWWiO;=>>
r   c                r   )z\Extract information about the domain security label. Only the first label will be returned. z"virDomainGetSecurityLabel() failed)r   ZvirDomainGetSecurityLabelr   r   r   rQ   r   securityLabelZvirDomain.securityLabel,
  rh  r   c                r   )z\Extract information about the domain security label. A list of all labels will be returned. z&virDomainGetSecurityLabelList() failed)r   ZvirDomainGetSecurityLabelListr   r   r   rQ   r   securityLabelListZvirDomain.securityLabelList3
  ,    66tww?;GHH
r   c                r   )zSend key(s) to the guest. zvirDomainSendKey() failedrq   )r   ZvirDomainSendKeyr   r   )r#   ZcodesetZholdtimeZkeycodesZ	nkeycodesrH   rL   r   r   sendKeyZvirDomain.sendKey>
  s5    ))$''7h[`a"9:;;
r   c                r   )a  Send a signal to the designated process in the guest

The signal numbers must be taken from the virDomainProcessSignal
enum. These will be translated to the corresponding signal
number for the guest OS, by the guest agent delivering the
signal. If there is no mapping from virDomainProcessSignal to
the native OS signals, this API will report an error.

If @pid_value is an integer greater than zero, it is
treated as a process ID. If @pid_value is an integer
less than zero, it is treated as a process group ID.
All the @pid_value numbers are from the container/guest
namespace. The value zero is not valid.

Not all hypervisors will support sending signals to
arbitrary processes or process groups. If this API is
implemented the minimum requirement is to be able to
use @pid_value == 1 (i.e. kill init). No other value is
required to be supported.

If the @signum is VIR_DOMAIN_PROCESS_SIGNAL_NOP then this
API will simply report whether the process is running in
the container/guest. z#virDomainSendProcessSignal() failedrq   )r   ZvirDomainSendProcessSignalr   r   )r#   Z	pid_valueZsignumrH   rL   r   r   sendProcessSignalZvirDomain.sendProcessSignalE
  s5    0 33DGGYPUV"9DEE
r   c                r   )zXConfigure the domain to be automatically started each time when the host
machine boots. zvirDomainSetAutostart() failedrq   )r   ZvirDomainSetAutostartr   r   r#   r   rL   r   r   setAutostartZvirDomain.setAutostartb
  s2     ..tww	B"9?@@
r   c                r   )a<  Configure the domain to be automatically started the next when the host
machine boots.

Note that autostart configured via the virDomain[Set|Get]AutostartOnce APIs
is independent from the autostart configured via virDomain[Set|Get]Autostart.
Enabling either of them will cause the VM to be started on the next boot. z"virDomainSetAutostartOnce() failedrq   )r   ZvirDomainSetAutostartOncer   r   rq  r   r   setAutostartOnceZvirDomain.setAutostartOncej
  s2     22477IF"9CDD
r   c                r   )zChange the blkio tunables z$virDomainSetBlkioParameters() failedrq   )r   ZvirDomainSetBlkioParametersr   r   rb  rM   r   setBlkioParametersZvirDomain.setBlkioParametersz
  0    44TWWfL"9EFF
r   c                r   )z+Change the I/O tunables for a block device z virDomainSetBlockIoTune() failedrq   )r   ZvirDomainSetBlockIoTuner   r   )r#   r   r   rH   rL   r   r   setBlockIoTuneZvirDomain.setBlockIoTune
  s2    00$N"9ABB
r   c                r   )a  Set the threshold level for delivering the
VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD if the device or backing chain element
described by @dev is written beyond the set threshold level. The threshold
level is unset once the event fires. The event might not be delivered at all
if libvirtd was not running at the moment when the threshold was reached.
Note that if the threshold level is reached for a top level image, the event
is emitted for @dev corresponding to the disk target, and may also be reported
with @dev corresponding to the disk target with an index corresponding to the
'index' attribute of 'source' in the live VM XML if the attribute is present.

@dev can either be a disk target name (vda, sda) or disk target with index (
vda[4]). Without the index the top image in the backing chain will have the
threshold set. The index corresponds to the 'index' attribute reported in the
live VM XML for 'backingStore' or 'source' elements of a disk. If index is
given the threshold is set for the corresponding image.

In case when @dev does not contain index the
VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD event may be emitted twice, once for the
disk device target without index and once containing the index.

Note that the threshold event can be registered also for destinations of a
'virDomainBlockCopy' destination by using the 'index' of the 'mirror' source.

Hypervisors report the last written sector of an image in the bulk stats API
(virConnectGetAllDomainStats/virDomainListGetStats) as
"block.<num>.allocation" in the VIR_DOMAIN_STATS_BLOCK group. The current
threshold value is reported as "block.<num>.threshold".

This event allows to use thin-provisioned storage which needs management
tools to grow it without the need for polling of the data. z#virDomainSetBlockThreshold() failedrq   )r   ZvirDomainSetBlockThresholdr   r   )r#   dev	thresholdrH   rL   r   r   setBlockThresholdZvirDomain.setBlockThreshold
  s4    > 33DGGSUS"9DEE
r   c                r   )a  Sets state of individual vcpus described by @cpumap via guest agent. Other
vcpus are not modified.

This API requires the VM to run. Various hypervisors or guest agent
implementation may limit to operate on just 1 vCPU per call.

@cpumap is a list of vCPU numbers. Its syntax is a comma separated list and
a special markup using '-' and '^' (ex. '0-4', '0-3,^2'). The '-' denotes
the range and the '^' denotes exclusive. The expression is sequentially
evaluated, so "0-15,^8" is identical to "9-14,0-7,15" but not identical to
"^8,0-15".

Note that OSes (notably Linux) may require vCPU 0 to stay online to support
low-level features a S3 sleep. zvirDomainSetGuestVcpus() failedrq   )r   ZvirDomainSetGuestVcpusr   r   )r#   rS  staterH   rL   r   r   setGuestVcpusZvirDomain.setGuestVcpus
  s4     //N"9@AA
r   c                r   )zDynamically allow changing the IOThread polling related parameters. This function requires privileged access to the hypervisor. z#virDomainSetIOThreadParams() failedrq   )r   ZvirDomainSetIOThreadParamsr   r   )r#   rU  r   rH   rL   r   r   setIOThreadParamsZvirDomain.setIOThreadParams
  s3    33DGG\SXY"9DEE
r   c                r   )z5Change the bandwidth tunables for a interface device z(virDomainSetInterfaceParameters() failedrq   )r   ZvirDomainSetInterfaceParametersr   r   )r#   r  r   rH   rL   r   r   setInterfaceParametersZ virDomain.setInterfaceParameters
  s3    88&RWX"9IJJ
r   c                r   )z4Set a launch security secret in the guest's memory. z(virDomainSetLaunchSecurityState() failedrq   )r   ZvirDomainSetLaunchSecurityStater   r   rb  rM   r   setLaunchSecurityStateZ virDomain.setLaunchSecurityState
  s0    88&P"9IJJ
r   c                r   )a  Changes the actions of lifecycle events for domain represented as
<on_$type>$action</on_$type> in the domain XML.

QEMU driver has a limitation that if all lifecycle events are set
to destroy when the domain is started, it's not possible to change
any action for running domain. z$virDomainSetLifecycleAction() failedrq   )r   ZvirDomainSetLifecycleActionr   r   )r#   r   actionrH   rL   r   r   setLifecycleActionZvirDomain.setLifecycleAction
  s4     44TWWdER"9EFF
r   c                r   )a  Dynamically change the maximum amount of physical memory allocated to a
domain. If domain is None, then this change the amount of memory reserved
to Domain0 i.e. the domain where the application runs.
This function may require privileged access to the hypervisor.

This command is hypervisor-specific for whether active, persistent,
or both configurations are changed; for more control, use
virDomainSetMemoryFlags(). zvirDomainSetMaxMemory() failedrq   )r   ZvirDomainSetMaxMemoryr   r   r#   memoryrL   r   r   setMaxMemoryZvirDomain.setMaxMemory
  s2     ..tww?"9?@@
r   c                r   )a  Dynamically change the target amount of physical memory allocated to a
domain. If domain is None, then this change the amount of memory reserved
to Domain0 i.e. the domain where the application runs.
This function may require privileged access to the hypervisor.

This command is hypervisor-specific for whether active, persistent,
or both configurations are changed; for more control, use
virDomainSetMemoryFlags(). zvirDomainSetMemory() failedrq   )r   ZvirDomainSetMemoryr   r   r  r   r   	setMemoryZvirDomain.setMemory
  s2     ++DGGV<"9<==
r   c                r   )a  Dynamically change the target amount of physical memory allocated to a
domain. If domain is None, then this change the amount of memory reserved
to Domain0 i.e. the domain where the application runs.
This function may require privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set. If VIR_DOMAIN_AFFECT_LIVE is set, the change affects
a running domain and will fail if domain is not active.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified
(that is, @flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain
modifies persistent setup, while an active domain is hypervisor-dependent
on whether just live or both live and persistent state is changed.
If VIR_DOMAIN_MEM_MAXIMUM is set, the change affects domain's maximum memory
size rather than current memory size.
Not all hypervisors can support all flag combinations. z virDomainSetMemoryFlags() failedrq   )r   ZvirDomainSetMemoryFlagsr   r   )r#   r  rH   rL   rM   r   setMemoryFlagsZvirDomain.setMemoryFlags	  s2    " 00&H"9ABB
r   c                r   )zChange the memory tunables z%virDomainSetMemoryParameters() failedrq   )r   ZvirDomainSetMemoryParametersr   r   rb  rM   r   setMemoryParametersZvirDomain.setMemoryParameters#  s0    55dggvM"9FGG
r   c                r   )a  Dynamically change the domain memory balloon driver statistics collection
period. Use 0 to disable and a positive value to enable.

@flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
Both flags may be set. If VIR_DOMAIN_AFFECT_LIVE is set, the change affects
a running domain and will fail if domain is not active.
If VIR_DOMAIN_AFFECT_CONFIG is set, the change affects persistent state,
and will fail for transient domains. If neither flag is specified
(that is, @flags is VIR_DOMAIN_AFFECT_CURRENT), then an inactive domain
modifies persistent setup, while an active domain is hypervisor-dependent
on whether just live or both live and persistent state is changed.

Not all hypervisors can support all flag combinations. z&virDomainSetMemoryStatsPeriod() failedrq   )r   ZvirDomainSetMemoryStatsPeriodr   r   )r#   ZperiodrH   rL   rM   r   setMemoryStatsPeriodZvirDomain.setMemoryStatsPeriod.  s2     66twwN"9GHH
r   c                r   )a<  Sets the appropriate domain element given by @type to the
value of @metadata.  A @type of VIR_DOMAIN_METADATA_DESCRIPTION
is free-form text; VIR_DOMAIN_METADATA_TITLE is free-form, but no
newlines are permitted, and should be short (although the length is
not enforced). For these two options @key and @uri are irrelevant and
must be set to None.

For type VIR_DOMAIN_METADATA_ELEMENT @metadata  must be well-formed
XML belonging to namespace defined by @uri with local name @key.

Passing None for @metadata says to remove that element from the
domain XML (passing the empty string leaves the element present).

The resulting metadata will be present in virDomainGetXMLDesc(),
as well as quick access through virDomainGetMetadata().

@flags controls whether the live domain, persistent configuration,
or both will be modified. zvirDomainSetMetadata() failedrq   )r   ZvirDomainSetMetadatar   r   r#   r   r.  keyrF   rH   rL   r   r   setMetadataZvirDomain.setMetadataA  s7    & --dggtsQVW"9>??
r   c                r   )zChange the NUMA tunables z#virDomainSetNumaParameters() failedrq   )r   ZvirDomainSetNumaParametersr   r   rb  rM   r   setNumaParametersZvirDomain.setNumaParameters]  0    33DGGVK"9DEE
r   c                r   )z5Enable or disable the particular list of perf events zvirDomainSetPerfEvents() failedrq   )r   ZvirDomainSetPerfEventsr   r   rb  rM   r   setPerfEventsZvirDomain.setPerfEventsd  0    //G"9@AA
r   c                r   ) Change the scheduler parameters z(virDomainSetSchedulerParameters() failedrq   )r   ZvirDomainSetSchedulerParametersr   r   )r#   r   rL   r   r   setSchedulerParametersZ virDomain.setSchedulerParametersk  s0    88&I"9IJJ
r   c                r   )r  z-virDomainSetSchedulerParametersFlags() failedrq   )r   Z$virDomainSetSchedulerParametersFlagsr   r   rb  rM   r   setSchedulerParametersFlagsZ%virDomain.setSchedulerParametersFlagsr  s0    ==dggvU"9NOO
r   c                r   )zUAdd throttlegroup or change all of the throttlegroup options within specific domain. z"virDomainSetThrottleGroup() failedrq   )r   ZvirDomainSetThrottleGroupr   r   )r#   r   r   rH   rL   r   r   setThrottleGroupZvirDomain.setThrottleGroupy  s2    22477E5Q"9CDD
r   c                r   )a;  Sets the @user password to the value specified by @password.
If @flags contain VIR_DOMAIN_PASSWORD_ENCRYPTED, the password
is assumed to be encrypted by the method required by the guest OS.

Please note that some hypervisors may require guest agent to
be configured and running in order to be able to run this API. z!virDomainSetUserPassword() failedrq   )r   ZvirDomainSetUserPasswordr   r   )r#   r   ZpasswordrH   rL   r   r   setUserPasswordZvirDomain.setUserPassword  s4     11$''45Q"9BCC
r   c                r   )a  Enables/disables individual vcpus described by @vcpumap in the hypervisor.

Various hypervisor implementations may limit to operate on just 1
hotpluggable entity (which may contain multiple vCPUs on certain platforms).

Note that OSes and hypervisors may require vCPU 0 to stay online. zvirDomainSetVcpu() failedrq   )r   ZvirDomainSetVcpur   r   )r#   Zvcpumaprz  rH   rL   r   r   setVcpuZvirDomain.setVcpu  s4     ))$''75I"9:;;
r   c                r   )aq  Dynamically change the number of virtual CPUs used by the domain.
Note that this call may fail if the underlying virtualization hypervisor
does not support it or if growing the number is arbitrarily limited.
This function may require privileged access to the hypervisor.

Note that if this call is executed before the guest has finished booting,
the guest may fail to process the change.

This command only changes the runtime configuration of the domain,
so can only be called on an active domain.  It is hypervisor-dependent
whether it also affects persistent configuration; for more control,
use virDomainSetVcpusFlags(). zvirDomainSetVcpus() failedrq   )r   ZvirDomainSetVcpusr   r   )r#   nvcpusrL   r   r   setVcpusZvirDomain.setVcpus  s2     **477F;"9;<<
r   c                r   )a`  Dynamically change the number of virtual CPUs used by the domain.
Note that this call may fail if the underlying virtualization hypervisor
does not support it or if growing the number is arbitrarily limited.
This function may require privileged access to the hypervisor.

@flags may include VIR_DOMAIN_AFFECT_LIVE to affect a running
domain (which may fail if domain is not active), or
VIR_DOMAIN_AFFECT_CONFIG to affect the next boot via the XML
description of the domain.  Both flags may be set.
If neither flag is specified (that is, @flags is VIR_DOMAIN_AFFECT_CURRENT),
then an inactive domain modifies persistent setup, while an active domain
is hypervisor-dependent on whether just live or both live and persistent
state is changed.

Note that if this call is executed before the guest has finished booting,
the guest may fail to process the change.

If @flags includes VIR_DOMAIN_VCPU_MAXIMUM, then
VIR_DOMAIN_AFFECT_LIVE must be clear, and only the maximum virtual
CPU limit is altered; generally, this value must be less than or
equal to virConnectGetMaxVcpus().  Otherwise, this call affects the
current virtual CPU limit, which must be less than or equal to the
maximum limit. Note that hypervisors may not allow changing the maximum
vcpu count if processor topology is specified.

If @flags includes VIR_DOMAIN_VCPU_GUEST, then the state of processors is
modified inside the guest instead of the hypervisor. This flag can only
be used with live guests and is incompatible with VIR_DOMAIN_VCPU_MAXIMUM.
The usage of this flag may require a guest agent configured.

Not all hypervisors can support all flag combinations. zvirDomainSetVcpusFlags() failedrq   )r   ZvirDomainSetVcpusFlagsr   r   )r#   r  rH   rL   rM   r   setVcpusFlagsZvirDomain.setVcpusFlags  s3    @ //G"9@AA
r   c                r   )a  Shutdown a domain, the domain object is still usable thereafter, but
the domain OS is being stopped. Note that the guest OS may ignore the
request. Additionally, the hypervisor may check and support the domain
'on_poweroff' XML setting resulting in a domain that reboots instead of
shutting down. For guests that react to a shutdown request, the differences
from virDomainDestroy() are that the guests disk storage will be in a
stable state rather than having the (virtual) power cord pulled, and
this command returns as soon as the shutdown request is issued rather
than blocking until the guest is no longer running.

If the domain is transient and has any snapshot metadata (see
virDomainSnapshotNum()), then that metadata will automatically
be deleted when the domain quits. zvirDomainShutdown() failedrq   )r   ZvirDomainShutdownr   r   r   rQ   r   shutdownZvirDomain.shutdown  s0     **4773"9;<<
r   c                r   )a  Shutdown a domain, the domain object is still usable thereafter but
the domain OS is being stopped. Note that the guest OS may ignore the
request. Additionally, the hypervisor may check and support the domain
'on_poweroff' XML setting resulting in a domain that reboots instead of
shutting down. For guests that react to a shutdown request, the differences
from virDomainDestroy() are that the guest's disk storage will be in a
stable state rather than having the (virtual) power cord pulled, and
this command returns as soon as the shutdown request is issued rather
than blocking until the guest is no longer running.

If the domain is transient and has any snapshot metadata (see
virDomainSnapshotNum()), then that metadata will automatically
be deleted when the domain quits.

If @flags is set to zero, then the hypervisor will choose the
method of shutdown it considers best. To have greater control
pass one or more of the virDomainShutdownFlagValues. The order
in which the hypervisor tries each shutdown method is undefined,
and a hypervisor is not required to support all methods.

To use guest agent (VIR_DOMAIN_SHUTDOWN_GUEST_AGENT) the domain XML
must have <channel> configured. zvirDomainShutdownFlags() failedrq   )r   ZvirDomainShutdownFlagsr   r   r   r   r   shutdownFlagsZvirDomain.shutdownFlags  s2    . //?"9@AA
r   c                r   )a  Creates a new snapshot of a domain based on the snapshot xml
contained in xmlDesc, with a top-level element <domainsnapshot>.

If @flags is 0, the domain can be active, in which case the
snapshot will be a full system snapshot (capturing both disk state,
and runtime VM state such as RAM contents), where reverting to the
snapshot is
the same as resuming from hibernation (TCP connections may have
timed out, but everything else picks up where it left off); or
the domain can be inactive, in which case the snapshot includes
just the disk state prior to booting.  The newly created snapshot
becomes current (see virDomainSnapshotCurrent()), and is a child
of any previous current snapshot.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE, then @xmlDesc
is validated against the <domainsnapshot> XML schema.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE, then this
is a request to reinstate snapshot metadata that was previously
captured from virDomainSnapshotGetXMLDesc() before removing that
metadata, rather than creating a new snapshot.  This can be used to
recreate a snapshot hierarchy on a destination, then remove it on
the source, in order to allow migration (since migration normally
fails if snapshot metadata still remains on the source machine).
Note that while original creation can omit a number of elements
from @xmlDesc (and libvirt will supply sane defaults based on the
domain state at that point in time), a redefinition must supply
more elements (as the domain may have changed in the meantime, so
that libvirt no longer has a way to resupply correct
defaults). When redefining snapshot metadata, the domain's current
snapshot will not be altered unless the
VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT flag is also present.  It is an
error to request the VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT flag
without VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE.  On some hypervisors,
redefining an existing snapshot can be used to alter host-specific
portions of the domain XML to be used during revert (such as
backing filenames associated with disk devices), but must not alter
guest-visible layout.  When redefining a snapshot name that does
not exist, the hypervisor may validate that reverting to the
snapshot appears to be possible (for example, disk images have
snapshot contents by the requested name).  Not all hypervisors
support these flags.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA, then the
domain's disk images are modified according to @xmlDesc, but
libvirt does not track any metadata (similar to immediately calling
virDomainSnapshotDelete() with
VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY).  This flag is
incompatible with VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_HALT, then the domain
will be inactive after the snapshot completes, regardless of whether
it was active before; otherwise, a running domain will still be
running after the snapshot.  This flag is invalid on transient domains,
and is incompatible with VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_LIVE, then the domain
is not paused while creating the snapshot. This increases the size
of the memory dump file, but reduces downtime of the guest while
taking the snapshot. Some hypervisors only support this flag during
external snapshots.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY, then the
snapshot will be limited to the disks described in @xmlDesc, and no
VM state will be saved.  For an active guest, the disk image may be
inconsistent (as if power had been pulled), and specifying this
with the VIR_DOMAIN_SNAPSHOT_CREATE_HALT flag risks data loss.

If @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE, then the
libvirt will attempt to use guest agent to freeze and thaw all
file systems in use within domain OS. However, if the guest agent
is not present, an error is thrown. Moreover, this flag requires
VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY to be passed as well.
For better control and error recovery users should invoke virDomainFSFreeze
manually before taking the snapshot and then virDomainFSThaw to restore the
VM rather than using VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE.

By default, if the snapshot involves external files, and any of the
destination files already exist as a non-empty regular file, the
snapshot is rejected to avoid losing contents of those files.
However, if @flags includes VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT,
then the destination files must be pre-created manually with
the correct image format and metadata including backing store path
(this allows a management app to pre-create files with relative backing
file names, rather than the default of creating with absolute backing
file names). Note that only the file specified in the snapshot XML is
inserted as a snapshot thus setting incorrect metadata in the pre-created
image may lead to the VM being unable to start or other block jobs may fail.

Be aware that although libvirt prefers to report errors up front with
no other effect, some hypervisors have certain types of failures where
the overall command can easily fail even though the guest configuration
was partially altered (for example, if a disk snapshot request for two
disks fails on the second disk, but the first disk alteration cannot be
rolled back).  If this API call fails, it is therefore normally
necessary to follow up with virDomainGetXMLDesc() and check each disk
to determine if any partial changes occurred.  However, if @flags
contains VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC, then libvirt guarantees
that this command will not alter any disks unless the entire set of
changes can be done atomically, making failure recovery simpler (note
that it is still possible to fail after disks have changed, but only
in the much rarer cases of running out of memory or disk space).

Some hypervisors may prevent this operation if there is a current
block copy operation; in that case, use virDomainBlockJobAbort()
to stop the block copy first.

virDomainSnapshotFree should be used to free the resources after the
snapshot object is no longer needed. z#virDomainSnapshotCreateXML() failedrJ   )r   ZvirDomainSnapshotCreateXMLr   r   virDomainSnapshotr   rg   r   snapshotCreateXMLZvirDomain.snapshotCreateXML  s;    \ 33DGGWL;DEE!$1r   c                ~    \         P                  ! V P                  V4      pVf   \        R4      h\	        WR7      pV# )zGet the current snapshot for a domain, if any.

virDomainSnapshotFree should be used to free the resources after the
snapshot object is no longer needed. z!virDomainSnapshotCurrent() failedrJ   )r   ZvirDomainSnapshotCurrentr   r   r  )r#   rH   rL   r   r$   r   snapshotCurrentZvirDomain.snapshotCurrentz  s:    
 11$''5A;BCC!$1r   c                r   )z8collect the list of snapshot names for the given domain z#virDomainSnapshotListNames() failed)r   ZvirDomainSnapshotListNamesr   r   r   r   r   snapshotListNamesZvirDomain.snapshotListNames  rF  r   c                r   )z3Try to lookup a domain snapshot based on its name. z&virDomainSnapshotLookupByName() failedrJ   )r   ZvirDomainSnapshotLookupByNamer   r   r  r   rg   r   snapshotLookupByNameZvirDomain.snapshotLookupByName  s8    66twwL;GHH!$1r   c                r   )a  Provides the number of domain snapshots for this domain.

This function will accept VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL in
@flags only if virDomainSnapshotListNames() can honor it, although
the flag has no other effect here.

By default, this command covers all snapshots. It is also possible
to limit things to just snapshots with no parents, when @flags
includes VIR_DOMAIN_SNAPSHOT_LIST_ROOTS.  Additional filters are
provided via the same @flags values as documented in
virDomainListAllSnapshots(). zvirDomainSnapshotNum() failedrq   )r   ZvirDomainSnapshotNumr   r   r   r   r   snapshotNumZvirDomain.snapshotNum  s2     --dggu="9>??
r   c                r   )zCalculate the current domain's memory dirty rate in next @seconds.
The calculated dirty rate information is available by calling
virConnectGetAllDomainStats. z$virDomainStartDirtyRateCalc() failedrq   )r   ZvirDomainStartDirtyRateCalcr   r   )r#   ZsecondsrH   rL   rM   r   startDirtyRateCalcZvirDomain.startDirtyRateCalc  s2     44TWWgM"9EFF
r   c                r   )zExtract domain state. zvirDomainGetState() failed)r   ZvirDomainGetStater   r   r   r   r   rz  ZvirDomain.state  .    **477E:;;<<
r   c                r   )at  Suspends an active domain, the process is frozen without further access
to CPU resources and I/O but the memory used by the domain at the
hypervisor level will stay allocated. Use virDomainResume() to reactivate
the domain.
This function may require privileged access.
Moreover, suspend may not be supported if domain is in some
special state like VIR_DOMAIN_PMSUSPENDED. zvirDomainSuspend() failedrq   )r   ZvirDomainSuspendr   r   r   rQ   r   suspendZvirDomain.suspend  s0     ))$''2"9:;;
r   c                r   )a  Undefine a domain. If the domain is running, it's converted to
transient domain, without stopping it. If the domain is inactive,
the domain configuration is removed.

If the domain has a managed save image (see
virDomainHasManagedSaveImage()), or if it is inactive and has any
snapshot metadata (see virDomainSnapshotNum()) or checkpoint
metadata (see virDomainListAllCheckpoints()), then the undefine
will fail. See virDomainUndefineFlags() for more control. zvirDomainUndefine() failedrq   )r   ZvirDomainUndefiner   r   r   rQ   r   undefineZvirDomain.undefine  s0     **4773"9;<<
r   c                r   )ac  Undefine a domain. If the domain is running, it's converted to
transient domain, without stopping it. If the domain is inactive,
the domain configuration is removed.

If the domain has a managed save image (see virDomainHasManagedSaveImage()),
then including VIR_DOMAIN_UNDEFINE_MANAGED_SAVE in @flags will also remove
that file, and omitting the flag will cause the undefine process to fail.

If the domain is inactive and has any snapshot metadata (see
virDomainSnapshotNum()), then including
VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA in @flags will also remove
that metadata.  Omitting the flag will cause the undefine of an
inactive domain with snapshots to fail.  Active domains will retain
snapshot metadata until the (now-transient) domain halts,
regardless of whether this flag is present.  On hypervisors that
support snapshots, but where snapshots do not use libvirt metadata,
this flag has no effect.

If the domain is inactive and has any checkpoint metadata (see
virDomainListAllCheckpoints()), then including
VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATA in @flags will also remove
that metadata. Omitting the flag will cause the undefine of an
inactive domain with checkpoints to fail. Active domains will
retain checkpoint metadata until the (now-transient) domain halts,
regardless of whether this flag is present. On hypervisors that
support checkpoints, but where checkpoints do not use libvirt
metadata, this flag has no effect.

If the domain has any nvram specified, the undefine process will fail
unless VIR_DOMAIN_UNDEFINE_KEEP_NVRAM is specified, or if
VIR_DOMAIN_UNDEFINE_NVRAM is specified to remove the nvram file. zvirDomainUndefineFlags() failedrq   )r   ZvirDomainUndefineFlagsr   r   r   r   r   undefineFlagsZvirDomain.undefineFlags  s3    @ //?"9@AA
r   c                r   )a   Change a virtual device on a domain, using the flags parameter
to control how the device is changed.  VIR_DOMAIN_AFFECT_CURRENT
specifies that the device change is made based on current domain
state.  VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
changed on the active domain instance only and is not added to the
persisted domain configuration. VIR_DOMAIN_AFFECT_CONFIG
specifies that the device shall be changed on the persisted domain
configuration only.  Note that the target hypervisor must return an
error if unable to satisfy flags.  E.g. the hypervisor driver will
return failure if LIVE is specified but it only supports modifying the
persisted device allocation.

This method is used for actions such changing CDROM/Floppy device
media, altering the graphics configuration such as password,
reconfiguring the NIC device backend connectivity, etc.

The supplied XML description of the device should contain all
the information that is found in the corresponding domain XML.
Leaving out any piece of information may be treated as a
request for its removal, which may be denied. For instance,
when users want to change CDROM media only for live XML, they
must provide live disk XML as found in the corresponding live
domain XML with only the disk path changed. z#virDomainUpdateDeviceFlags() failedrq   )r   ZvirDomainUpdateDeviceFlagsr   r   r   rM   r   updateDeviceFlagsZvirDomain.updateDeviceFlags
  s2    0 33DGGSH"9DEE
r   c                r   )z=Query the CPU affinity setting of all virtual CPUs of domain z virDomainGetVcpuPinInfo() failed)r   ZvirDomainGetVcpuPinInfor   r   r   r   r   vcpuPinInfoZvirDomain.vcpuPinInfo+  r   r   c                r   )z^Extract information about virtual CPUs of domain, store it in info array and also in cpumaps. zvirDomainGetVcpus() failed)r   ZvirDomainGetVcpusr   r   r   rQ   r   vcpusZvirDomain.vcpus2  ,    **4773;;<<
r   c                r   )a  Query the number of virtual CPUs used by the domain.  Note that
this call may fail if the underlying virtualization hypervisor does
not support it.  This function may require privileged access to the
hypervisor.

If @flags includes VIR_DOMAIN_AFFECT_LIVE, this will query a
running domain (which will fail if domain is not active); if
it includes VIR_DOMAIN_AFFECT_CONFIG, this will query the XML
description of the domain.  It is an error to set both flags.
If neither flag is set (that is, VIR_DOMAIN_AFFECT_CURRENT),
then the configuration queried depends on whether the domain
is currently running.

If @flags includes VIR_DOMAIN_VCPU_MAXIMUM, then the maximum
virtual CPU limit is queried.  Otherwise, this call queries the
current virtual CPU count.

If @flags includes VIR_DOMAIN_VCPU_GUEST, then the state of the processors
is queried in the guest instead of the hypervisor. This flag is only usable
on live domains. Guest agent may be needed for this flag to be available. zvirDomainGetVcpusFlags() failedrq   )r   ZvirDomainGetVcpusFlagsr   r   r   r   r   
vcpusFlagsZvirDomain.vcpusFlags=  s2    * //?"9@AA
r   c                4   < V ^8  d   QhRS[ RS[R,          /# r   rH   r   r  r(   r   r   r   r   r   virDomain.__annotate__Z  s%     J Jc J$7J2K Jr   c                    \         P                  ! V P                  V4      pVf   \        R4      hV Uu. uF  p\	        WR7      NK  	  up# u upi )z9List all snapshots and returns a list of snapshot objectsz"virDomainListAllSnapshots() failedrJ   )r   ZvirDomainListAllSnapshotsr   r   r  r#   rH   rL   Zsnapptrr$   r   listAllSnapshotsZvirDomain.listAllSnapshotsZ  sG    22477EB;CDDEHIS'!$5SIII   Ac                r  r   rH   r   r   r  r   r   r   r   r  b  s%     J J JD9N4O Jr   c                r  )z=List all checkpoints and returns a list of checkpoint objectsz$virDomainListAllCheckpoints() failedrJ   )r   ZvirDomainListAllCheckpointsr   r   r   r#   rH   rL   Zchkptrr$   r   listAllCheckpointsZvirDomain.listAllCheckpointsb  sG    44TWWeD;EFFEHIS6#D6SIIIr  c                s:   < V ^8  d   QhRS[ S[,          RS[RR/# )r   filesrH   r   r   )r   r(   r   r   r   r   r  j  s&     $ $T#Y $s $; $r   c                r   )aD  Launch a defined domain. If the call succeeds the domain moves from the
defined to the running domains pools.

@files provides an array of file descriptors which will be
made available to the 'init' process of the guest. The file
handles exposed to the guest will be renumbered to start
from 3 (ie immediately following stderr). This is only
supported for guests which use container based virtualization
technology.

If the VIR_DOMAIN_START_PAUSED flag is set, or if the guest domain
has a managed save image that requested paused state (see
virDomainManagedSave()) the guest domain will be started, but its
CPUs will remain paused. The CPUs can later be manually started
using virDomainResume().  In all other cases, the guest domain will
be running.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration, save-to-file, or snapshots.

If the VIR_DOMAIN_START_BYPASS_CACHE flag is set, and there is a
managed save file for this domain (created by virDomainManagedSave()),
then libvirt will attempt to bypass the file system cache while restoring
the file, or fail if it cannot do so for the given system; this can allow
less pressure on file system cache, but also risks slowing loads from NFS.

If the VIR_DOMAIN_START_FORCE_BOOT flag is set, then any managed save
file for this domain is discarded, and the domain boots from scratch. z!virDomainCreateWithFiles() failedrq   )r   ZvirDomainCreateWithFilesr   r   )r#   r  rH   rL   rM   r   createWithFilesZvirDomain.createWithFilesj  s3    B 11$''5H"9BCC
r   c                <   < V ^8  d   QhRS[ S[,          RS[RS[/# r   mountpointsrH   r   r   r   r(   r   r   r   r   r    s&      DI S  r   c                r   )z.Freeze specified filesystems within the guest zvirDomainFSFreeze() failedrq   )r   ZvirDomainFSFreezer   r   r#   r  rH   rL   rM   r   fsFreezeZvirDomain.fsFreeze  s0    **477KG"9;<<
r   c                r  r  r  r   r   r   r   r    s&      $s) 3 s r   c                r   )z,Thaw specified filesystems within the guest zvirDomainFSThaw() failedrq   )r   ZvirDomainFSThawr   r   r  rM   r   fsThawZvirDomain.fsThaw  s0    ((+E"99::
r   c                &   < V ^8  d   QhRS[ RS[ /# r   rH   r   r(   r   r   r   r   r    s      S  r   c                r   )z%Extract information about guest time zvirDomainGetTime() failed)r   ZvirDomainGetTimer   r   r   r   r   getTimeZvirDomain.getTime  .    ))$''59;:;;
r   c                ,   < V ^8  d   QhRS[ RS[ RS[ /# )r   timerH   r   r  r   r   r   r   r    s"      C s 3 r   c                r   )zSet guest time to the given value. @time is a dict containing
'seconds' field for seconds and 'nseconds' field for nanoseconds zvirDomainSetTime() failedrq   )r   ZvirDomainSetTimer   r   )r#   r  rH   rL   rM   r   setTimeZvirDomain.setTime  s2     ))$''4?"9:;;
r   c                sB   < V ^8  d   QhRS[ RS[S[,          RS[RS[/# )r   rO   r  rH   r   rI   r   r   r   r   r    s-       DI c # r   c                r   )a=  Associate the array of FDs passed as @fds with the domain object
under @name. The FDs are associated as long as the connection used to
associated exists and are disposed of afterwards. FD may still be kept
open by the hypervisor for as long as it's needed.

Security labelling (e.g. via the selinux) may be applied on the passed
FDs when requiredg for usage by the VM. By default libvirt does not
restore the seclabels on the FDs afterwards to avoid keeping it open
unnecessarily.

Restoring of the security label can be requested by passing either
VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE for a best-effort attempt to
restore the security label after use.  Requesting the restore of
security label will require that the file descriptors are kept open for
the whole time they are used by the hypervisor, or other additional
overhead.

In certain cases usage of the fd group would imply read-only access.
Passing VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLE in @flags ensures
that a writable security label is picked in case when the file
represented by the fds may be used in write mode. zvirDomainFDAssociate() failedrq   )r   ZvirDomainFDAssociater   r   )r#   rO   r  rH   rL   r   r   FDAssociateZvirDomain.FDAssociate  s4    , --dggtEJ"9>??
r   r   r   r   r    Nr    r    r    )r    NNr    )Nr    NNr    )r    Nr    )NNNr    Nr    )r8   r9   r:   r;   r!   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r"  r#  r$  r%  r&  r'  r)  r*  r,  r.  r2  r3  r5  r7  r8  r9  r:  r<  r=  r>  r?  rC  rD  rO   rE  rJ  rK  rM  rN  rP  rQ  rR  rT  rV  rY  rZ  r[  r\  r]  r^  r_  r`  ra  rc  rd  rf  rg  rk  rl  rm  ro  rp  rr  rs  rt  rv  ry  r{  r|  r}  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r<   r=   r>   r?   r   r   r     s    
5
6.* :;z
 ]F&X8#JgRB2h04"H.&.@&.h&"	6(
	$(2		GR.:,<($*4
		!N4:
 "H0
4&8

$#J&@rh	*#JB:J JJ J$ $L      r   c                   s   a  ] tR tRt o RR ltR tR tR tRR ltR t	R	 t
RR
 ltR tR tR tR tR tR tRR ltR tRR ltR tR tR tRR ltR tRR ltRV 3R lR lltRtV tR# ) 
virNetworki  Nc                r   r   r   r   r   r   r!   ZvirNetwork.__init__  r   r   c                r   r   )r   r   ZvirNetworkFreer*   r+   r   r   ZvirNetwork.__del__  s%    77%%dgg.r   c                r   r   r   r*   r+   r   r   ZvirNetwork.connect  r   r   c                r   r   )r   ZvirNetwork_pointerr   r*   r+   r   r   ZvirNetwork.c_pointer      ,,TWW55r   c                r   )zTReturns a list of dhcp leases for interfaces connected to the given virtual network z virNetworkGetDHCPLeases() failed)r   ZvirNetworkGetDHCPLeasesr   r   )r#   ZmacrH   rL   rM   r   
DHCPLeasesZvirNetwork.DHCPLeases  s.    00#E;ABB
r   c                r   )z1Extract the UUID unique Identifier of a network. zvirNetworkGetUUID() failed)r   ZvirNetworkGetUUIDr   r   r   rQ   r   r   ZvirNetwork.UUID  r  r   c                r   )z5Fetch globally unique ID of the network as a string. z virNetworkGetUUIDString() failed)r   ZvirNetworkGetUUIDStringr   r   r   rQ   r   r   ZvirNetwork.UUIDString  ,    009;ABB
r   c                r   )am  Provide an XML description of the network. The description may be reused
later to relaunch the network with virNetworkCreateXML().

Normally, if a network included a physical function, the output includes
all virtual functions tied to that physical interface.  If @flags includes
VIR_NETWORK_XML_INACTIVE, then the expansion of virtual interfaces is
not performed. zvirNetworkGetXMLDesc() failed)r   ZvirNetworkGetXMLDescr   r   r   r   r   r   ZvirNetwork.XMLDesc  s0     --dggu=;>??
r   c                r   )z*Extract the autostart flag for a network. zvirNetworkGetAutostart() failedrq   )r   ZvirNetworkGetAutostartr   r   r   rQ   r   r   ZvirNetwork.autostart
  .    //8"9@AA
r   c                r   )zqProvides a bridge interface name to which a domain may connect
a network interface in order to join the network. z virNetworkGetBridgeName() failed)r   ZvirNetworkGetBridgeNamer   r   r   rQ   r   
bridgeNameZvirNetwork.bridgeName  s.     009;ABB
r   c                r   )zzCreate and start a defined network. If the call succeed the network
moves from the defined to the running networks pools. zvirNetworkCreate() failedrq   )r   ZvirNetworkCreater   r   r   rQ   r   r   ZvirNetwork.create  s0     ))$''2"9:;;
r   c                r   )zDestroy the network object. The running instance is shutdown if not down
already and all resources used by it are given back to the hypervisor. This
does not free the associated virNetworkPtr object.
This function may require privileged access zvirNetworkDestroy() failedrq   )r   ZvirNetworkDestroyr   r   r   rQ   r   r   ZvirNetwork.destroy%  r   r   c                r   )z.Determine if the network is currently running zvirNetworkIsActive() failedrq   )r   ZvirNetworkIsActiver   r   r   rQ   r   r  ZvirNetwork.isActive/  r  r   c                r   )zlDetermine if the network has a persistent configuration
which means it will still exist after shutting down zvirNetworkIsPersistent() failedrq   )r   ZvirNetworkIsPersistentr   r   r   rQ   r   r  ZvirNetwork.isPersistent6  s0     //8"9@AA
r   c                r(  )a(  Retrieves the appropriate network element given by @type.
If VIR_NETWORK_METADATA_ELEMENT is requested parameter @uri
must be set to the name of the namespace the requested elements
belong to, otherwise must be None.

If an element of the network XML is not present, the resulting
error will be VIR_ERR_NO_NETWORK_METADATA.  This method forms
a shortcut for seeing information from virNetworkSetMetadata()
without having to go through virNetworkGetXMLDesc().

@flags controls whether the live network state or persistent
configuration will be queried. zvirNetworkGetMetadata() failed)r   ZvirNetworkGetMetadatar   r   r-  r   r   r.  ZvirNetwork.metadata>  s2     ..tww5I;?@@
r   c                r   )z%Get the public name for that network )r   ZvirNetworkGetNamer   r   rQ   r   rO   ZvirNetwork.nameP  s    **4773
r   c                r   )zCreate a new network port, based on an XML description
similar to the one returned by virNetworkPortGetXMLDesc()

virNetworkPortFree should be used to free the resources after the
network port object is no longer needed. z virNetworkPortCreateXML() failedrJ   )r   ZvirNetworkPortCreateXMLr   r   virNetworkPort)r#   ZxmldescrH   rL   _virNetwork__tmprg   r   portCreateXMLZvirNetwork.portCreateXMLU  s:     00'I;ABBt.r   c                r  )=Try to lookup a port on the given network based on its UUID. z#virNetworkPortLookupByUUID() failedrJ   )r   ZvirNetworkPortLookupByUUIDr   r   r  )r#   uuidrL   r  r$   r   portLookupByUUIDZvirNetwork.portLookupByUUIDe  s8    33DGGTB;DEEt.r   c                r  )r  z)virNetworkPortLookupByUUIDString() failedrJ   )r   Z virNetworkPortLookupByUUIDStringr   r   r  )r#   uuidstrrL   r  r$   r   portLookupByUUIDStringZ!virNetwork.portLookupByUUIDStringq  s8    99$''7K;JKKt.r   c                r   )zOConfigure the network to be automatically started
when the host machine boots. zvirNetworkSetAutostart() failedrq   )r   ZvirNetworkSetAutostartr   r   rq  r   r   rr  ZvirNetwork.setAutostarty  s2     //C"9@AA
r   c                r   )aI  Sets the appropriate network element given by @type to the
value of @metadata.  A @type of VIR_NETWORK_METADATA_DESCRIPTION
is free-form text; VIR_NETWORK_METADATA_TITLE is free-form, but no
newlines are permitted, and should be short (although the length is
not enforced). For these two options @key and @uri are irrelevant and
must be set to None.

For type VIR_NETWORK_METADATA_ELEMENT @metadata must be well-formed
XML belonging to namespace defined by @uri with local name @key.

Passing None for @metadata says to remove that element from the
network XML (passing the empty string leaves the element present).

The resulting metadata will be present in virNetworkGetXMLDesc(),
as well as quick access through virNetworkGetMetadata().

@flags controls whether the live network state, persistent configuration,
or both will be modified. zvirNetworkSetMetadata() failedrq   )r   ZvirNetworkSetMetadatar   r   r  r   r   r  ZvirNetwork.setMetadata  s7    & ..twwRWX"9?@@
r   c                r   )z9Undefine a network but does not stop it if it is running zvirNetworkUndefine() failedrq   )r   ZvirNetworkUndefiner   r   r   rQ   r   r  ZvirNetwork.undefine  r  r   c                r   )ztUpdate the definition of an existing network, either its live
running state, its persistent configuration, or both. zvirNetworkUpdate() failedrq   )r   ZvirNetworkUpdater   r   )r#   ZcommandZsectionZparentIndexr   rH   rL   r   r   updateZvirNetwork.update  s7     ))$''7[W\]"9:;;
r   c                r  )r   rH   r   r  r  r   r   r   r   ZvirNetwork.__annotate__  s%     E E# Ed3C.D Er   c                r  )zHList all ports on the network and returns a list of network port objectszvirNetworkListAllPorts() failedrJ   )r   ZvirNetworkListAllPortsr   r   r  r#   rH   rL   Zdomptrr$   r   listAllPortsZvirNetwork.listAllPorts  sF    //?;@AA@CDft1DDDr  r  r   r  r  )r8   r9   r:   r;   r!   r   r   r   r  r   r   r   r   r  r   r   r  r  r.  rO   r  r  r  rr  r  r  r  r  r<   r=   r>   r?   r   r  r    s     
6"$

 0E E Er   r  c                   s   a  ] tR tRt o RV 3R lR lltR tR tR tR tR	 t	R
 t
RR ltRR ltRR ltRR ltRtV tR# )r  i  Nc                   < V ^8  d   QhRR/# r   r   NrZ   r   r   r   r   ZvirNetworkPort.__annotate__  s      $ r   c                    Wn         VP                  4       V n        \        V4      P                  R9  d   \        R\        V4      ,          4      hW n        R# r   )_netr   r   r   r8   r    r   )r#   netrK   r   r   r!   ZvirNetworkPort.__init__  A    	[[]
:&@@DtDzQRRr   c                r   r   )r   r   ZvirNetworkPortFreer*   r+   r   r   ZvirNetworkPort.__del__  %    77))$''2r   c                r   r   r   r*   r+   r   r   ZvirNetworkPort.connect  r   r   c                r   r   )r  r*   r+   r   networkZvirNetworkPort.network      yyr   c                r   r   )r   ZvirNetworkPort_pointerr   r*   r+   r   r   ZvirNetworkPort.c_pointer      0099r   c                r   )z6Extract the UUID unique Identifier of a network port. zvirNetworkPortGetUUID() failed)r   ZvirNetworkPortGetUUIDr   r   r   rQ   r   r   ZvirNetworkPort.UUID  ,    ..tww7;?@@
r   c                r   )z:Fetch globally unique ID of the network port as a string. z$virNetworkPortGetUUIDString() failed)r   ZvirNetworkPortGetUUIDStringr   r   r   rQ   r   r   ZvirNetworkPort.UUIDString  ,    44TWW=;EFF
r   c                r   )zProvide an XML description of the network port. The description may be reused
later to recreate the port with virNetworkPortCreateXML(). z!virNetworkPortGetXMLDesc() failed)r   ZvirNetworkPortGetXMLDescr   r   r   r   r   r   ZvirNetworkPort.XMLDesc  s0     11$''5A;BCC
r   c                r   )zDelete the network port. This does not free the
associated virNetworkPortPtr object. It is the
caller's responsibility to ensure the port is not
still in use by a virtual machine before deleting
port. zvirNetworkPortDelete() failedrq   )r   ZvirNetworkPortDeleter   r   r   r   r   deleteZvirNetworkPort.delete  s2     --dggu="9>??
r   c                r   )zGet the port parameters z$virNetworkPortGetParameters() failed)r   ZvirNetworkPortGetParametersr   r   r   r   r   
parametersZvirNetworkPort.parameters  r   r   c                r   )zChange the port tunables z$virNetworkPortSetParameters() failedrq   )r   ZvirNetworkPortSetParametersr   r   rb  rM   r   setParametersZvirNetworkPort.setParameters  ru  r   )r   r  r   r   r  )r8   r9   r:   r;   r!   r   r   r  r   r   r   r   r  r  r  r<   r=   r>   r?   r   r  r    sF      
:	 r   r  c                   sr   a  ] tR tRt o RR ltR tR tR tR tRR lt	RR	 lt
RR
 ltR tR tR tRtV tR# )virInterfacei  Nc                r   r   r   r   r   r   r!   ZvirInterface.__init__  r   r   c                r   r   )r   r   ZvirInterfaceFreer*   r+   r   r   ZvirInterface.__del__  s%    77''0r   c                r   r   r   r*   r+   r   r   ZvirInterface.connect  r   r   c                r   r   )r   ZvirInterface_pointerr   r*   r+   r   r   ZvirInterface.c_pointer  s    ..tww77r   c                r   )zTGet the MAC for an interface as string. For more information about
MAC see RFC4122. z!virInterfaceGetMACString() failed)r   ZvirInterfaceGetMACStringr   r   r   rQ   r   	MACStringZvirInterface.MACString  s.     11$'':;BCC
r   c                r   )a   VIR_INTERFACE_XML_INACTIVE - return the static configuration,
                                  suitable for use redefining the
                                  interface via virInterfaceDefineXML()

Provide an XML description of the interface. If
VIR_INTERFACE_XML_INACTIVE is set, the description may be reused
later to redefine the interface with virInterfaceDefineXML(). If it
is not set, the ip address and netmask will be the current live
setting of the interface, not the settings from the config files. zvirInterfaceGetXMLDesc() failed)r   ZvirInterfaceGetXMLDescr   r   r   r   r   r   ZvirInterface.XMLDesc$  s0     //?;@AA
r   c                r   )a#  Activate an interface (i.e. call "ifup").

If there was an open network config transaction at the time this
interface was defined (that is, if virInterfaceChangeBegin() had
been called), the interface will be brought back down (and then
undefined) if virInterfaceChangeRollback() is called. zvirInterfaceCreate() failedrq   )r   ZvirInterfaceCreater   r   r   r   r   r   ZvirInterface.create3  s2     ++DGGU;"9<==
r   c                r   )a  deactivate an interface (ie call "ifdown")
This does not remove the interface from the config, and
does not free the associated virInterfacePtr object.

If there is an open network config transaction at the time this
interface is destroyed (that is, if virInterfaceChangeBegin() had
been called), and if the interface is later undefined and then
virInterfaceChangeRollback() is called, the restoral of the
interface definition will also bring the interface back up. zvirInterfaceDestroy() failedrq   )r   ZvirInterfaceDestroyr   r   r   r   r   r   ZvirInterface.destroy?  s2     ,,TWWe<"9=>>
r   c                r   )z0Determine if the interface is currently running zvirInterfaceIsActive() failedrq   )r   ZvirInterfaceIsActiver   r   r   rQ   r   r  ZvirInterface.isActiveN  .    --dgg6"9>??
r   c                r   )z'Get the public name for that interface )r   ZvirInterfaceGetNamer   r   rQ   r   rO   ZvirInterface.nameU  s    ,,TWW5
r   c                r   )a  Undefine an interface, ie remove it from the config.
This does not free the associated virInterfacePtr object.

Normally this change in the interface configuration is
permanent/persistent, but if virInterfaceChangeBegin() has been
previously called (i.e. if an interface config transaction is
open), the removal of the interface definition will only become
permanent if virInterfaceChangeCommit() is called prior to the next
reboot of the system running libvirtd. Prior to that time, the
definition can be explicitly restored using
virInterfaceChangeRollback(), or will be automatically restored
during the next reboot of the system running libvirtd. zvirInterfaceUndefine() failedrq   )r   ZvirInterfaceUndefiner   r   r   rQ   r   r  ZvirInterface.undefineZ  s0     --dgg6"9>??
r   r  r   r  )r8   r9   r:   r;   r!   r   r   r   r  r   r   r   r  rO   r  r<   r=   r>   r?   r   r  r    sA     
8

 r   r  c                   s   a  ] tR tRt o RR ltR tR tR tR tR t	RR	 lt
R
 tRR ltRR ltRR ltRR ltRR ltR tR tR tR tR tR tR tRR ltR tR tR tRV 3R lR lltRtV tR# ) virStoragePoolil  Nc                r   r   r   r   r   r   r!   ZvirStoragePool.__init__m  r   r   c                r   r   )r   r   ZvirStoragePoolFreer*   r+   r   r   ZvirStoragePool.__del__s  r  r   c                r   r   r   r*   r+   r   r   ZvirStoragePool.connectx  r   r   c                r   r   )r   ZvirStoragePool_pointerr   r*   r+   r   r   ZvirStoragePool.c_pointer{  r  r   c                r   )z6Extract the UUID unique Identifier of a storage pool. zvirStoragePoolGetUUID() failed)r   ZvirStoragePoolGetUUIDr   r   r   rQ   r   r   ZvirStoragePool.UUID  r  r   c                r   )z:Fetch globally unique ID of the storage pool as a string. z$virStoragePoolGetUUIDString() failed)r   ZvirStoragePoolGetUUIDStringr   r   r   rQ   r   r   ZvirStoragePool.UUIDString  r  r   c                r   )zFetch an XML document describing all aspects of the
storage pool. This is suitable for later feeding back
into the virStoragePoolCreateXML method. z!virStoragePoolGetXMLDesc() failed)r   ZvirStoragePoolGetXMLDescr   r   r   r   r   r   ZvirStoragePool.XMLDesc  s0     11$''5A;BCC
r   c                r   )z.Extract the autostart flag for a storage pool z#virStoragePoolGetAutostart() failedrq   )r   ZvirStoragePoolGetAutostartr   r   r   rQ   r   r   ZvirStoragePool.autostart  .    33DGG<"9DEE
r   c                r   )zCurrently only filesystem pool accepts flags VIR_STORAGE_POOL_BUILD_OVERWRITE
and VIR_STORAGE_POOL_BUILD_NO_OVERWRITE.

Build the underlying storage pool zvirStoragePoolBuild() failedrq   )r   ZvirStoragePoolBuildr   r   r   r   r   buildZvirStoragePool.build  s2    
 ,,TWWe<"9=>>
r   c                r   )z Starts an inactive storage pool zvirStoragePoolCreate() failedrq   )r   ZvirStoragePoolCreater   r   r   r   r   r   ZvirStoragePool.create  s0    --dggu="9>??
r   c                s    \         P                  ! V P                  W4      pVf   \        R4      h\	        V P
                  VR7      pV# )a  Create a storage volume within a pool based
on an XML description. Not all pools support
creation of volumes.

Since 1.0.1 VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA
in flags can be used to get higher performance with
qcow2 image files which don't support full preallocation,
by creating a sparse image file with metadata.

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. zvirStorageVolCreateXML() failedrJ   )r   ZvirStorageVolCreateXMLr   r   virStorageVolr   )r#   r   rH   rL   _virStoragePool__tmprg   r   	createXMLZvirStoragePool.createXML  s@     //H;@AAdjjs3r   c                s    Vf   RpMVP                   p\        P                  ! V P                   WV4      pVf   \        R4      h\	        V P
                  VR7      pV# )a  Create a storage volume in the parent pool, using the
'clonevol' volume as input. Information for the new
volume (name, perms)  are passed via a typical volume
XML description.

Since 1.0.1 VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA
in flags can be used to get higher performance with
qcow2 image files which don't support full preallocation,
by creating a sparse image file with metadata.

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. Nz#virStorageVolCreateXMLFrom() failedrJ   )r   r   ZvirStorageVolCreateXMLFromr   r  r   )r#   r   ZclonevolrH   Zclonevol__orL   r  r4  r   createXMLFromZvirStoragePool.createXMLFrom  sW     K"++K33DGGWSXY;DEEdjjs3r   c                r   )z~Delete the underlying pool resources. This is
a non-recoverable operation. The virStoragePoolPtr object
itself is not free'd. zvirStoragePoolDelete() failedrq   )r   ZvirStoragePoolDeleter   r   r   r   r   r  ZvirStoragePool.delete  s2     --dggu="9>??
r   c                r   )a  Destroy an active storage pool. This will deactivate the
pool on the host, but keep any persistent config associated
with it. If it has a persistent config it can later be
restarted with virStoragePoolCreate(). This does not free
the associated virStoragePoolPtr object. zvirStoragePoolDestroy() failedrq   )r   ZvirStoragePoolDestroyr   r   r   rQ   r   r   ZvirStoragePool.destroy  s0     ..tww7"9?@@
r   c                r   )zExtract information about a storage pool. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. zvirStoragePoolGetInfo() failed)r   ZvirStoragePoolGetInfor   r   r   rQ   r   r  ZvirStoragePool.info  r  r   c                r   )z3Determine if the storage pool is currently running zvirStoragePoolIsActive() failedrq   )r   ZvirStoragePoolIsActiver   r   r   rQ   r   r  ZvirStoragePool.isActive
  r  r   c                r   )zqDetermine if the storage pool has a persistent configuration
which means it will still exist after shutting down z#virStoragePoolIsPersistent() failedrq   )r   ZvirStoragePoolIsPersistentr   r   r   rQ   r   r  ZvirStoragePool.isPersistent  s0     33DGG<"9DEE
r   c                r   )zElist the storage volumes, stores the pointers to the names in @names z"virStoragePoolListVolumes() failed)r   ZvirStoragePoolListVolumesr   r   r   rQ   r   listVolumesZvirStoragePool.listVolumes  rh  r   c                r   )z2Fetch the locally unique name of the storage pool )r   ZvirStoragePoolGetNamer   r   rQ   r   rO   ZvirStoragePool.name(  s    ..tww7
r   c                r   )z2Fetch the number of storage volumes within a pool z#virStoragePoolNumOfVolumes() failedrq   )r   ZvirStoragePoolNumOfVolumesr   r   r   rQ   r   numOfVolumesZvirStoragePool.numOfVolumes-  r  r   c                r   )zRequest that the pool refresh its list of volumes. This may
involve communicating with a remote server, and/or initializing
new devices at the OS layer zvirStoragePoolRefresh() failedrq   )r   ZvirStoragePoolRefreshr   r   r   r   r   refreshZvirStoragePool.refresh4  s2     ..tww>"9?@@
r   c                r   )zTConfigure the storage pool to be automatically started
when the host machine boots. z#virStoragePoolSetAutostart() failedrq   )r   ZvirStoragePoolSetAutostartr   r   rq  r   r   rr  ZvirStoragePool.setAutostart=  s2     33DGGYG"9DEE
r   c                    \         P                  ! V P                  V4      pVf   \        R4      h\	        V P
                  VR7      pV# )zFetch a pointer to a storage volume based on its name
within a pool

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. z"virStorageVolLookupByName() failedrJ   )r   ZvirStorageVolLookupByNamer   r   r  r   )r#   rO   rL   r  r$   r   storageVolLookupByNameZ%virStoragePool.storageVolLookupByNameE  s@     22477DA;CDDdjjs3r   c                r   )z"Undefine an inactive storage pool zvirStoragePoolUndefine() failedrq   )r   ZvirStoragePoolUndefiner   r   r   rQ   r   r  ZvirStoragePool.undefineQ  r  r   c                r  )r   rH   r   r  r  r   r   r   r   ZvirStoragePool.__annotate__[  s$     J JC J_0E Jr   c                s    \         P                  ! V P                  V4      pVf   \        R4      hV Uu. uF  p\	        V P
                  VR7      NK  	  up# u upi )zEList all storage volumes and returns a list of storage volume objectsz%virStoragePoolListAllVolumes() failedrJ   )r   ZvirStoragePoolListAllVolumesr   r   r  r   )r#   rH   rL   Zvolptrr$   r   listAllVolumesZvirStoragePool.listAllVolumes[  sL    55dgguE;FGGEHIS6djjv6SIIIs    Ar  r   r  )r8   r9   r:   r;   r!   r   r   r   r   r   r   r   r  r   r  r  r  r   r  r  r  r  rO   r  r  rr  r  r  r  r<   r=   r>   r?   r   r  r  l  s     
:$.	

J J Jr   r  c                   s   a  ] tR tRt o RtRR ltR tR tR tRR lt	RR	 lt
RR
 ltR tRR ltR tR tR tRR ltR tRR ltRR ltRR ltRtV tR# )r  ic  i Nc                r   r   r   r   r   r   r!   ZvirStorageVol.__init__j  r   r   c                r   r   )r   r   ZvirStorageVolFreer*   r+   r   r   ZvirStorageVol.__del__p  %    77((1r   c                r   r   r   r*   r+   r   r   ZvirStorageVol.connectu  r   r   c                r   r   )r   ZvirStorageVol_pointerr   r*   r+   r   r   ZvirStorageVol.c_pointerx      //88r   c                r   )zCFetch an XML document describing all aspects of
the storage volume z virStorageVolGetXMLDesc() failed)r   ZvirStorageVolGetXMLDescr   r   r   r   r   r   ZvirStorageVol.XMLDesc  0     00%@;ABB
r   c                r   )z(Delete the storage volume from the pool zvirStorageVolDelete() failedrq   )r   ZvirStorageVolDeleter   r   r   r   r   r  ZvirStorageVol.delete  0    ,,TWWe<"9=>>
r   c                    Vf   RpMVP                   p\        P                  ! V P                   WRW44      pVR8X  d   \        R4      hV# )a  Download the content of the volume as a stream. If @length
is zero, then the remaining contents of the volume after
@offset will be downloaded. Please note that the stream
transports the volume itself as is, so the downloaded data may
not correspond to guest OS visible state in cases when a
complex storage format such as qcow2 or vmdk is used.

If VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM is set in @flags
effective transmission of holes is enabled. This assumes using
the @stream with combination of virStreamSparseRecvAll() or
virStreamRecvFlags(stream, ..., flags =
VIR_STREAM_RECV_STOP_AT_HOLE) for honouring holes sent by
server.

This call sets up an asynchronous stream; subsequent use of
stream APIs is necessary to transfer the actual data,
determine how much data is successfully transferred, and
detect any errors. The results will be unpredictable if
another active stream is writing to the storage volume. NzvirStorageVolDownload() failedrq   )r   r   ZvirStorageVolDownloadr   r#   ri  r   lengthrH   rj  rL   rd   r   downloadZvirStorageVol.download  sG    ( >I		I..tww	6Y"9?@@
r   c                r   )Extract information about a storage volume. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. zvirStorageVolGetInfo() failed)r   ZvirStorageVolGetInfor   r   r   rQ   r   r  ZvirStorageVol.info  r+  r   c                r   )r  z"virStorageVolGetInfoFlags() failed)r   ZvirStorageVolGetInfoFlagsr   r   r   r   r   	infoFlagsZvirStorageVol.infoFlags  s.    22477EB;CDD
r   c                r   )zFetch the storage volume key. This is globally
unique, so the same volume will have the same
key no matter what host it is accessed from zvirStorageVolGetKey() failed)r   ZvirStorageVolGetKeyr   r   r   rQ   r   r  ZvirStorageVol.key  s.     ,,TWW5;=>>
r   c                r   )zIFetch the storage volume name. This is unique
within the scope of a pool )r   ZvirStorageVolGetNamer   r   rQ   r   rO   ZvirStorageVol.name  s     --dgg6
r   c                r   )zFetch the storage volume path. Depending on the pool
configuration this is either persistent across hosts,
or dynamically assigned at pool startup. Consult
pool documentation for information on getting the
persistent naming zvirStorageVolGetPath() failed)r   ZvirStorageVolGetPathr   r   r   rQ   r   r   ZvirStorageVol.path  s.     --dgg6;>??
r   c                r   )a  Changes the capacity of the storage volume @vol to @capacity. The
operation will fail if the new capacity requires allocation that would
exceed the remaining free space in the parent pool.  The contents of
the new capacity will appear as all zero bytes. The capacity value will
be rounded to the granularity supported by the hypervisor.

Normally, the operation will attempt to affect capacity with a minimum
impact on allocation (that is, the default operation favors a sparse
resize).  If @flags contains VIR_STORAGE_VOL_RESIZE_ALLOCATE, then the
operation will ensure that allocation is sufficient for the new
capacity; this may make the operation take noticeably longer.

Normally, the operation treats @capacity as the new size in bytes;
but if @flags contains VIR_STORAGE_VOL_RESIZE_DELTA, then @capacity
represents the size difference to add to the current size.  It is
up to the storage pool implementation whether unaligned requests are
rounded up to the next valid boundary, or rejected.

Normally, this operation should only be used to enlarge capacity;
but if @flags contains VIR_STORAGE_VOL_RESIZE_SHRINK, it is possible to
attempt a reduction in capacity even though it might cause data loss.
If VIR_STORAGE_VOL_RESIZE_DELTA is also present, then @capacity is
subtracted from the current size; without it, @capacity represents
the absolute new size regardless of whether it is larger or smaller
than the current size. zvirStorageVolResize() failedrq   )r   ZvirStorageVolResizer   r   )r#   ZcapacityrH   rL   rM   r   resizeZvirStorageVol.resize  s2    4 ,,TWWhF"9=>>
r   c                s    \         P                  ! V P                  4      pVf   \        R4      h\	        V P
                  VR7      pV# )zFetch a storage pool which contains a particular volume

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z%virStoragePoolLookupByVolume() failedrJ   )r   ZvirStoragePoolLookupByVolumer   r   r  r   )r#   rL   Z_virStorageVol__tmps   &  r   storagePoolLookupByVolumeZ'virStorageVol.storagePoolLookupByVolume  s>    
 55dgg>;FGGtzz4r   c                r   )a  Upload new content to the volume from a stream. This call
will fail if @offset + @length exceeds the size of the
volume. Otherwise, if @length is non-zero, an error
will be raised if an attempt is made to upload greater
than @length bytes of data. Please note that the stream
transports the volume itself as is, so the downloaded data may
not correspond to guest OS visible state in cases when a
complex storage format such as qcow2 or vmdk is used.

If VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM is set in @flags
effective transmission of holes is enabled. This assumes using
the @stream with combination of virStreamSparseSendAll() or
virStreamSendHole() to preserve source file sparseness.

This call sets up an asynchronous stream; subsequent use of
stream APIs is necessary to transfer the actual data,
determine how much data is successfully transferred, and
detect any errors. The results will be unpredictable if
another active stream is writing to the storage volume.

When the data stream is closed whether the upload is successful
or not an attempt will be made to refresh the target storage pool
if an asynchronous build is not running in order to reflect pool
and volume changes as a result of the upload. Depending on
the target volume storage backend and the source stream type
for a successful upload, the target volume may take on the
characteristics from the source stream such as format type,
capacity, and allocation. NzvirStorageVolUpload() failedrq   )r   r   ZvirStorageVolUploadr   r  rd   r   uploadZvirStorageVol.upload  sG    : >I		I,,TWWiW"9=>>
r   c                r   )aE  Ensure data previously on a volume is not accessible to future reads.

The data to be wiped may include the format and possibly size information,
so non-raw images might become raw with a different size. It is storage
backend dependent whether the format and size information is regenerated
once the initial volume wipe is completed.

Depending on the actual volume representation, this call may not
overwrite the physical location of the volume. For instance, files
stored journaled, log structured, copy-on-write, versioned, and
network file systems are known to be problematic. zvirStorageVolWipe() failedrq   )r   ZvirStorageVolWiper   r   r   r   r   wipeZvirStorageVol.wipe,  s2     **477E:"9;<<
r   c                r   )ac  Similar to virStorageVolWipe, but one can choose between
different wiping algorithms. Also note, that depending on the
actual volume representation, this call may not really
overwrite the physical location of the volume. For instance,
files stored journaled, log structured, copy-on-write,
versioned, and network file systems are known to be
problematic. z!virStorageVolWipePattern() failedrq   )r   ZvirStorageVolWipePatternr   r   )r#   Z	algorithmrH   rL   rM   r   wipePatternZvirStorageVol.wipePattern=  s2     11$''9L"9BCC
r   r  r   r  )r8   r9   r:   r;   streamBufSizer!   r   r   r   r   r  r  r  r  r  rO   r   r  r  r  r	  r
  r<   r=   r>   r?   r   r  r  c  sh     
 M
9B	>	$L" r   r  c                   s*  a  ] tR tRt o RR ltR tRR ltRR ltRR ltRR lt	RR	 lt
RR
 ltR tRR ltRR ltRR ltRR ltR tRR ltRR ltRR ltRR ltRR ltRR ltRR ltR tR tRR ltR tRR ltR tR tR t R  t!RR! lt"RR" lt#RR# lt$R$ t%RR% lt&RR& lt'R' t(R( t)R) t*RR* lt+R+ t,R, t-R- t.R. t/R/ t0R0 t1R1 t2R2 t3R3 t4RR4 lt5R5 t6R6 t7R7 t8R8 t9R9 t:R: t;R; t<R< t=R= t>R> t?R? t@RR@ ltARA tBRRB ltCRC tDRD tERE tFRRF ltGRRG ltHRRH ltIRI tJRRJ ltKRK tLRL tMRM tNRN tORRO ltPRP tQRQ tRRR tSRS tTRT tURU tVRRV ltWRW tXRX tYRRY ltZRZ t[R[ t\R\ t]R] t^RR^ lt_RR_ lt`RR` ltaRRa ltbRRb ltcRc tdRd teRe tfRRf ltgRg thRRh ltiRRi ltjRRj ltkRk tlRl tmRm tnRn toRo tpRp tqRRq ltrRr tsRs ttV 3Rt lRu ltuV 3Rv lRw ltvV 3Rx lRy ltwV 3Rz lR{ ltxV 3R| lR} ltyV 3R~ lR ltzV 3R lR lt{V 3R lR lt|V 3R lR lt}V 3R lR lt~V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltV 3R lR ltV 3R lR ltV 3R lR ltRV 3R lR lltRV 3R lR lltRV 3R lR lltRtV tR# )r   iJ  Nc                s|    \        V4      P                  R9  d   \        R\        V4      ,          4      hWn        R# r   )r   r8   r    r   )r#   rK   rD   r   r!   ZvirConnect.__init__K  s/    :&@@DtDzQRRr   c                r   r   )r   ZvirConnect_pointerr   r*   r+   r   r   ZvirConnect.c_pointerP  r  r   c                r   )z3Allocate or free some pages in the huge pages pool zvirNodeAllocPages() failedrq   )r   ZvirNodeAllocPagesr   r   )r#   pages	startCellZ	cellCountrH   rL   r   r   
allocPagesZvirConnect.allocPagesX  s2    **477EiW"9;<<
r   c                r   )zQComputes the most feature-rich CPU which is compatible with all given host CPUs. zvirConnectBaselineCPU() failed)r   ZvirConnectBaselineCPUr   r   )r#   xmlCPUsrH   rL   rM   r   baselineCPUZvirConnect.baselineCPU_  .    ..twwG;?@@
r   c           	     sj    \         P                  ! V P                  WW4WV4      pVf   \        R4      hV# )z|Computes the most feature-rich CPU which is compatible with all given CPUs and can be provided by the specified hypervisor. z(virConnectBaselineHypervisorCPU() failed)r   ZvirConnectBaselineHypervisorCPUr   r   )r#   emulatorarchmachinevirttyper  rH   rL   rB  r   baselineHypervisorCPUZ virConnect.baselineHypervisorCPUf  s4    88(RYelt;IJJ
r   c                r   )a  This function creates a restore point to which one can return
later by calling virInterfaceChangeRollback(). This function should
be called before any transaction with interface configuration.
Once it is known that a new configuration works, it can be committed via
virInterfaceChangeCommit(), which frees the restore point.

If virInterfaceChangeBegin() is called when a transaction is
already opened, this function will fail, and a
VIR_ERR_INVALID_OPERATION will be logged. z virInterfaceChangeBegin() failedrq   )r   ZvirInterfaceChangeBeginr   r   r   r   r   changeBeginZvirConnect.changeBeginq  s2     00%@"9ABB
r   c                r   )a  This commits the changes made to interfaces and frees the restore point
created by virInterfaceChangeBegin().

If virInterfaceChangeCommit() is called when a transaction is not
opened, this function will fail, and a VIR_ERR_INVALID_OPERATION
will be logged. z!virInterfaceChangeCommit() failedrq   )r   ZvirInterfaceChangeCommitr   r   r   r   r   changeCommitZvirConnect.changeCommit  s2     11$''5A"9BCC
r   c                r   )a	  This cancels changes made to interfaces settings by restoring previous
state created by virInterfaceChangeBegin().

If virInterfaceChangeRollback() is called when a transaction is not
opened, this function will fail, and a VIR_ERR_INVALID_OPERATION
will be logged. z#virInterfaceChangeRollback() failedrq   )r   ZvirInterfaceChangeRollbackr   r   r   r   r   changeRollbackZvirConnect.changeRollback  s2     33DGGUC"9DEE
r   c                sx    \         P                  ! V P                  4      pRV n        VR8X  d   \        R4      hV# )a  This function closes the connection to the Hypervisor. This should
not be called if further interaction with the Hypervisor are needed
especially if there is running domain which need further monitoring by
the application.

Connections are reference counted; the count is explicitly
increased by the initial open (virConnectOpen, virConnectOpenAuth,
and the like) as well as virConnectRef; it is also temporarily
increased by other API that depend on the connection remaining
alive.  The open and every virConnectRef call should have a
matching virConnectClose, and all other references will be released
after the corresponding operation completes. NzvirConnectClose() failedrq   )r   virConnectCloser   r   r   rQ   r   closeZvirConnect.close  s7     ((1"99::
r   c                r   )zCompares the given CPU description with the host CPU.

See virConnectCompareHypervisorCPU() if you want to consider hypervisor
abilities and compare the CPU to the CPU which a hypervisor is able to
provide on the host. zvirConnectCompareCPU() failedrq   )r   ZvirConnectCompareCPUr   r   r#   r   rH   rL   rM   r   
compareCPUZvirConnect.compareCPU  s2     --dggwF"9>??
r   c           	     r@  )a  Compares the given CPU description with the CPU the specified hypervisor is
able to provide on the host. Any of @emulator, @arch, @machine, and
@virttype parameters may be None; libvirt will choose sensible defaults
tailored to the host and its current configuration.

This is different from virConnectCompareCPU() which compares the CPU
definition with the host CPU without considering any specific hypervisor and
its abilities. z'virConnectCompareHypervisorCPU() failedrq   )r   ZvirConnectCompareHypervisorCPUr   r   )r#   r  r  r  r  ZxmlCPUrH   rL   rB  r   compareHypervisorCPUZvirConnect.compareHypervisorCPU  s8     77QXdjr"9HII
r   c                r   )zDeprecated after 0.4.6.
Renamed to virDomainCreateXML() providing identical functionality.
This existing name will be left indefinitely for API compatibility. zvirDomainCreateLinux() failedrJ   )r   ZvirDomainCreateLinuxr   r   r   r#   r   rH   rL   _virConnect__tmprg   r   createLinuxZvirConnect.createLinux  s:     --dggwF;>??$)r   c                r   )av  Launch a new guest domain, based on an XML description similar
to the one returned by virDomainGetXMLDesc()
This function may require privileged access to the hypervisor.
The domain is not persistent, so its definition will disappear when it
is destroyed, or if the host is restarted (see virDomainDefineXML() to
define persistent domains).

If the VIR_DOMAIN_START_PAUSED flag is set, the guest domain
will be started, but its CPUs will remain paused. The CPUs
can later be manually started using virDomainResume.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration. Hypervisors may also block save-to-file,
or snapshots.

If @flags includes VIR_DOMAIN_START_RESET_NVRAM, then libvirt will
discard any existing NVRAM file and re-initialize NVRAM from the
pristine template.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainCreateXML() failedrJ   )r   ZvirDomainCreateXMLr   r   r   r  rg   r   r  ZvirConnect.createXML  s:    4 ++DGGWD;<==$)r   c                r  )aI  Define a domain, but does not start it.
This definition is persistent, until explicitly undefined with
virDomainUndefine(). A previous definition for this domain with the same
UUID and name would be overridden if it already exists.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainDefineXML() failedrJ   )r   ZvirDomainDefineXMLr   r   r   r#   r   rL   r   r$   r   	defineXMLZvirConnect.defineXML  s:     ++DGGS9;<==$)r   c                r   )aJ  Defines a domain, but does not start it.
This definition is persistent, until explicitly undefined with
virDomainUndefine(). A previous definition for this domain with the same
UUID and name would be overridden if it already exists.

virDomainFree should be used to free the resources after the
domain object is no longer needed. z virDomainDefineXMLFlags() failedrJ   )r   ZvirDomainDefineXMLFlagsr   r   r   r#   r   rH   rL   r   rg   r   defineXMLFlagsZvirConnect.defineXMLFlags  s:     00#E;ABB$)r   c                r(  )zReads native configuration data  describing a domain, and
generates libvirt domain XML. The format of the native
data is hypervisor dependent. z&virConnectDomainXMLFromNative() failed)r   ZvirConnectDomainXMLFromNativer   r   )r#   nativeFormatZnativeConfigrH   rL   r   r   domainXMLFromNativeZvirConnect.domainXMLFromNative  s3     66tww\ab;GHH
r   c                r(  )aD  Reads a domain XML configuration document, and generates
a native configuration file describing the domain.
The format of the native data is hypervisor dependent.

Note that certain hypervisor drivers such as the QEMU driver configure many
aspects of the domain dynamically via hypervisor APIs and that may not be
part of the returned native configuration format. Similarly certain resources
are passed to the hypervisor via file descriptors, which are not part of the
native configuration returned by this API. Such configuration is thus not
trivially usable outside of libvirt. z$virConnectDomainXMLToNative() failed)r   ZvirConnectDomainXMLToNativer   r   )r#   r&  Z	domainXmlrH   rL   r   r   domainXMLToNativeZvirConnect.domainXMLToNative  s3     44TWWlW\];EFF
r   c                r(  )a  Talks to a storage backend and attempts to auto-discover the set of
available storage pool sources. e.g. For iSCSI this would be a set of
iSCSI targets. For NFS this would be a list of exported paths.  The
srcSpec (optional for some storage pool types, e.g. local ones) is
an instance of the storage pool's source element specifying where
to look for the pools.

srcSpec is not required for some types (e.g., those querying
local storage resources only) z)virConnectFindStoragePoolSources() failed)r   Z virConnectFindStoragePoolSourcesr   r   )r#   r   ZsrcSpecrH   rL   r   r   findStoragePoolSourcesZ!virConnect.findStoragePoolSources/  s3     99$''4RWX;JKK
r   c                r   )zGet node CPU information zvirNodeGetCPUMap() failed)r   ZvirNodeGetCPUMapr   r   r   r   r   	getCPUMapZvirConnect.getCPUMapB  r  r   c                r   )z&Get the list of supported CPU models. z#virConnectGetCPUModelNames() failed)r   ZvirConnectGetCPUModelNamesr   r   )r#   r  rH   rL   rM   r   getCPUModelNamesZvirConnect.getCPUModelNamesI  s.    33DGGTI;DEE
r   c                r   )zExtract node's CPU statistics. zvirNodeGetCPUStats() failed)r   ZvirNodeGetCPUStatsr   r   )r#   ZcpuNumrH   rL   rM   r   r  ZvirConnect.getCPUStatsP  s.    ++DGGVC;<==
r   c                r   )z2Provides capabilities of the hypervisor / driver. z"virConnectGetCapabilities() failed)r   ZvirConnectGetCapabilitiesr   r   r   rQ   r   getCapabilitiesZvirConnect.getCapabilities[  rh  r   c                r   )z1Returns the available memory for a list of cells z"virNodeGetCellsFreeMemory() failed)r   ZvirNodeGetCellsFreeMemoryr   r   )r#   r  maxCellsrL   rM   r   getCellsFreeMemoryZvirConnect.getCellsFreeMemoryf  s.    22477IP;CDD
r   c                sj    \         P                  ! V P                  WW4V4      pVf   \        R4      hV# )zQuery domain capabilities z(virConnectGetDomainCapabilities() failed)r   ZvirConnectGetDomainCapabilitiesr   r   )r#   Zemulatorbinr  r  r  rH   rL   r   r   getDomainCapabilitiesZ virConnect.getDomainCapabilitiesq  s4    88+U\hmn;IJJ
r   c                r   )zprovides the free memory available on the Node
Note: most libvirt APIs provide memory sizes in kibibytes, but in this
function the returned value is in bytes. Divide by 1024 as necessary. )r   ZvirNodeGetFreeMemoryr   r   rQ   r   getFreeMemoryZvirConnect.getFreeMemory|  s     --dgg6
r   c                r   )zIReturns the number of available pages for a list of cells and page sizes zvirNodeGetFreePages() failed)r   ZvirNodeGetFreePagesr   r   )r#   r  r  r-  rH   rL   r   r   getFreePagesZvirConnect.getFreePages  s0    ,,TWWeX;=>>
r   c                r   )a  This returns a system hostname on which the hypervisor is
running (based on the result of the gethostname system call, but
possibly expanded to a fully-qualified domain name via getaddrinfo).
If we are connected to a remote system, then this returns the
hostname of the remote system. zvirConnectGetHostname() failed)r   ZvirConnectGetHostnamer   r   r   rQ   r   getHostnameZvirConnect.getHostname  s.     ..tww7;?@@
r   c                r   )zjExtract hardware information about the Node. Note that the memory size is reported in MiB instead of KiB. zvirNodeGetInfo() failed)r   ZvirNodeGetInfor   r   r   rQ   r   getInfoZvirConnect.getInfo  s,    ''0;899
r   c                r   )z3Returns the libvirt version of the connection host z virConnectGetLibVersion() failedrq   )r   ZvirConnectGetLibVersionr   r   r   rQ   r   getLibVersionZvirConnect.getLibVersion  .    009"9ABB
r   c                r   )a  Provides the maximum number of virtual CPUs supported for a guest VM of a
specific type. The 'type' parameter here corresponds to the 'type'
attribute in the <domain> element of the XML. This API doesn't take emulator
limits into consideration, hence the returned value is not guaranteed to be
usable. It is recommended to use virConnectGetDomainCapabilities() and look
for "<vcpu max='...'>" in its output instead. zvirConnectGetMaxVcpus() failedrq   )r   ZvirConnectGetMaxVcpusr   r   )r#   r   rL   r   r   getMaxVcpusZvirConnect.getMaxVcpus  s2     ..tww="9?@@
r   c                r   )zGet the node memory parameters z#virNodeGetMemoryParameters() failed)r   ZvirNodeGetMemoryParametersr   r   r   r   r   getMemoryParametersZvirConnect.getMemoryParameters  rF  r   c                r   )z"Extract node's memory statistics. zvirNodeGetMemoryStats() failed)r   ZvirNodeGetMemoryStatsr   r   )r#   ZcellNumrH   rL   rM   r   getMemoryStatsZvirConnect.getMemoryStats  r  r   c                r   )z8Get platform specific information from the SEV firmware zvirNodeGetSEVInfo() failed)r   ZvirNodeGetSEVInfor   r   r   r   r   
getSEVInfoZvirConnect.getSEVInfo  r  r   c                r   )z8Extract information about the hypervisor security model z virNodeGetSecurityModel() failed)r   ZvirNodeGetSecurityModelr   r   r   rQ   r   getSecurityModelZvirConnect.getSecurityModel  r  r   c                r   )zPrior creating a storage pool (for instance via virStoragePoolCreateXML
or virStoragePoolDefineXML) it may be suitable to know what pool types
are supported along with the file/disk formats for each pool. z-virConnectGetStoragePoolCapabilities() failed)r   Z$virConnectGetStoragePoolCapabilitiesr   r   r   r   r   getStoragePoolCapabilitiesZ%virConnect.getStoragePoolCapabilities  s0     ==dgguM;NOO
r   c                r   )a  This returns the XML description of the sysinfo details for the
host on which the hypervisor is running, in the same format as the
<sysinfo> element of a domain XML.  This information is generally
available only for hypervisors running with root privileges. zvirConnectGetSysinfo() failed)r   ZvirConnectGetSysinfor   r   r   r   r   
getSysinfoZvirConnect.getSysinfo  s0    
 --dggu=;>??
r   c                r   )a8  Get the name of the Hypervisor driver used. This is merely the driver
name; for example, both KVM and QEMU guests are serviced by the
driver for the qemu:// URI, so a return of "QEMU" does not indicate
whether KVM acceleration is present.  For more details about the
hypervisor, use virConnectGetCapabilities(). zvirConnectGetType() failed)r   ZvirConnectGetTyper   r   r   rQ   r   getTypeZvirConnect.getType  s.     **4773;;<<
r   c                r   )aj  This returns the URI (name) of the hypervisor connection.
Normally this is the same as or similar to the string passed
to the virConnectOpen/virConnectOpenReadOnly call, but
the driver may make the URI canonical.  If name == None
was passed to virConnectOpen, then the driver will return
a non-None URI which can be used to connect to the same
hypervisor later. zvirConnectGetURI() failed)r   ZvirConnectGetURIr   r   r   rQ   r   getURIZvirConnect.getURI  s.     ))$''2;:;;
r   c                r   )z>Returns the running hypervisor version of the connection host zvirConnectGetVersion() failedrq   )r   ZvirConnectGetVersionr   r   r   rQ   r   rR   ZvirConnect.getVersion  r  r   c                r   )a  Define an inactive persistent physical host interface or modify an existing
persistent one from the XML description.

Normally this change in the interface configuration is immediately
permanent/persistent, but if virInterfaceChangeBegin() has been
previously called (i.e. if an interface config transaction is
open), the new interface definition will only become permanent if
virInterfaceChangeCommit() is called prior to the next reboot of
the system running libvirtd. Prior to that time, it can be
explicitly removed using virInterfaceChangeRollback(), or will be
automatically removed during the next reboot of the system running
libvirtd.

virInterfaceFree should be used to free the resources after the
interface object is no longer needed. zvirInterfaceDefineXML() failedrJ   )r   ZvirInterfaceDefineXMLr   r   r  r$  rg   r   interfaceDefineXMLZvirConnect.interfaceDefineXML!  s:      ..twwC;?@@T,r   c                r  )zTry to lookup an interface on the given hypervisor based on its MAC.

virInterfaceFree should be used to free the resources after the
interface object is no longer needed. z&virInterfaceLookupByMACString() failedrJ   )r   ZvirInterfaceLookupByMACStringr   r   r  )r#   ZmacstrrL   r   r$   r   interfaceLookupByMACStringZ%virConnect.interfaceLookupByMACString7  s:    
 66twwG;GHHT,r   c                r  )zTry to lookup an interface on the given hypervisor based on its name.

virInterfaceFree should be used to free the resources after the
interface object is no longer needed. z!virInterfaceLookupByName() failedrJ   )r   ZvirInterfaceLookupByNamer   r   r  r#   rO   rL   r   r$   r   interfaceLookupByNameZ virConnect.interfaceLookupByNameB  s:    
 11$''4@;BCCT,r   c                r   )zDetermine if the connection to the hypervisor is still alive

A connection will be classed as alive if it is either local, or running
over a channel (TCP or UNIX socket) which is not closed. zvirConnectIsAlive() failedrq   )r   ZvirConnectIsAliver   r   r   rQ   r   isAliveZvirConnect.isAliveQ  r   r   c                r   )z;Determine if the connection to the hypervisor is encrypted zvirConnectIsEncrypted() failedrq   )r   ZvirConnectIsEncryptedr   r   r   rQ   r   isEncryptedZvirConnect.isEncrypted[  r   r   c                r   )zDetermine if the connection to the hypervisor is secure

A connection will be classed as secure if it is either
encrypted, or running over a channel which is not exposed
to eavesdropping (eg a UNIX domain socket, or pipe) zvirConnectIsSecure() failedrq   )r   ZvirConnectIsSecurer   r   r   rQ   r   isSecureZvirConnect.isSecureb  s0     ++DGG4"9<==
r   c                r   )zElist the defined domains, stores the pointers to the names in @names z%virConnectListDefinedDomains() failed)r   ZvirConnectListDefinedDomainsr   r   r   rQ   r   listDefinedDomainsZvirConnect.listDefinedDomainsq  s,    55dgg>;FGG
r   c                r   )zHlist the defined interfaces, stores the pointers to the names in @names z(virConnectListDefinedInterfaces() failed)r   ZvirConnectListDefinedInterfacesr   r   r   rQ   r   listDefinedInterfacesZ virConnect.listDefinedInterfacesx  re  r   c                r   )zFlist the defined networks, stores the pointers to the names in @names z&virConnectListDefinedNetworks() failed)r   ZvirConnectListDefinedNetworksr   r   r   rQ   r   listDefinedNetworksZvirConnect.listDefinedNetworks  rn  r   c                r   )zJlist the defined storage pool, stores the pointers to the names in @names z*virConnectListDefinedStoragePools() failed)r   Z!virConnectListDefinedStoragePoolsr   r   r   rQ   r   listDefinedStoragePoolsZ"virConnect.listDefinedStoragePools  s,    ::477C;KLL
r   c                r   )zlist the node devices zvirNodeListDevices() failed)r   ZvirNodeListDevicesr   r   r#   caprH   rL   rM   r   listDevicesZvirConnect.listDevices  s.    ++DGGS@;<==
r   c                r   )z<Returns the list of the ID of the domains on the hypervisor z virConnectListDomainsID() failed)r   ZvirConnectListDomainsIDr   r   r   rQ   r   listDomainsIDZvirConnect.listDomainsID  r  r   c                r   )zHlist the running interfaces, stores the pointers to the names in @names z!virConnectListInterfaces() failed)r   ZvirConnectListInterfacesr   r   r   rQ   r   listInterfacesZvirConnect.listInterfaces  ,    11$'':;BCC
r   c                r   )z!List the defined network filters z virConnectListNWFilters() failed)r   ZvirConnectListNWFiltersr   r   r   rQ   r   listNWFiltersZvirConnect.listNWFilters  r  r   c                r   )z>list the networks, stores the pointers to the names in @names zvirConnectListNetworks() failed)r   ZvirConnectListNetworksr   r   r   rQ   r   listNetworksZvirConnect.listNetworks  r   r   c                r   )zList the defined secret IDs zvirConnectListSecrets() failed)r   ZvirConnectListSecretsr   r   r   rQ   r   listSecretsZvirConnect.listSecrets  r  r   c                r   )zClist the storage pools, stores the pointers to the names in @names z#virConnectListStoragePools() failed)r   ZvirConnectListStoragePoolsr   r   r   rQ   r   listStoragePoolsZvirConnect.listStoragePools  ,    33DGG<;DEE
r   c                r  )a(  Try to find a domain based on the hypervisor ID number
Note that this won't work for inactive domains which have an ID of -1,
in that case a lookup based on the Name or UUID need to be done instead.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainLookupByID() failedrJ   )r   ZvirDomainLookupByIDr   r   r   )r#   ZidrL   r   r$   r   
lookupByIDZvirConnect.lookupByID  s:     ,,TWWb9;=>>$)r   c                r  )zTry to lookup a domain on the given hypervisor based on its name.

virDomainFree should be used to free the resources after the
domain object is no longer needed. zvirDomainLookupByName() failedrJ   )r   ZvirDomainLookupByNamer   r   r   rA  r$   r   lookupByNameZvirConnect.lookupByName  s:    
 ..tww=;?@@$)r   c                r  )zBTry to lookup a domain on the given hypervisor based on its UUID. zvirDomainLookupByUUID() failedrJ   )r   ZvirDomainLookupByUUIDr   r   r   r#   r  rL   r   r$   r   lookupByUUIDZvirConnect.lookupByUUID  8    ..tww=;?@@$)r   c                r  )zTry to lookup a domain on the given hypervisor based on its UUID.

virDomainFree should be used to free the resources after the
domain object is no longer needed. z$virDomainLookupByUUIDString() failedrJ   )r   ZvirDomainLookupByUUIDStringr   r   r   r#   r  rL   r   r$   r   lookupByUUIDStringZvirConnect.lookupByUUIDString  s:    
 44TWWgF;EFF$)r   c                r  )Create and start a new virtual network, based on an XML description
similar to the one returned by virNetworkGetXMLDesc()

virNetworkFree should be used to free the resources after the
network object is no longer needed. zvirNetworkCreateXML() failedrJ   )r   ZvirNetworkCreateXMLr   r   r  r#   r   rL   r   r$   r   networkCreateXMLZvirConnect.networkCreateXML	  s:     ,,TWWg>;=>>4*r   c                r   )r\  z!virNetworkCreateXMLFlags() failedrJ   )r   ZvirNetworkCreateXMLFlagsr   r   r  r  rg   r   networkCreateXMLFlagsZ virConnect.networkCreateXMLFlags  s:     11$''7J;BCC4*r   c                r  )Define an inactive persistent virtual network or modify an existing
persistent one from the XML description.

virNetworkFree should be used to free the resources after the
network object is no longer needed. zvirNetworkDefineXML() failedrJ   )r   ZvirNetworkDefineXMLr   r   r  r"  r$   r   networkDefineXMLZvirConnect.networkDefineXML!  s:     ,,TWWc:;=>>4*r   c                r   )r`  z!virNetworkDefineXMLFlags() failedrJ   )r   ZvirNetworkDefineXMLFlagsr   r   r  r$  rg   r   networkDefineXMLFlagsZ virConnect.networkDefineXMLFlags-  s:     11$''3F;BCC4*r   c                r  )zTry to lookup a network on the given hypervisor based on its name.

virNetworkFree should be used to free the resources after the
network object is no longer needed. zvirNetworkLookupByName() failedrJ   )r   ZvirNetworkLookupByNamer   r   r  rA  r$   r   networkLookupByNameZvirConnect.networkLookupByName9  s:    
 //>;@AA4*r   c                r  )CTry to lookup a network on the given hypervisor based on its UUID. zvirNetworkLookupByUUID() failedrJ   )r   ZvirNetworkLookupByUUIDr   r   r  rW  r$   r   networkLookupByUUIDZvirConnect.networkLookupByUUIDH  s8    //>;@AA4*r   c                r  )rd  z%virNetworkLookupByUUIDString() failedrJ   )r   ZvirNetworkLookupByUUIDStringr   r   r  rZ  r$   r   networkLookupByUUIDStringZ$virConnect.networkLookupByUUIDStringT  s8    55dggwG;FGG4*r   c                r  )a  Creates a new stream object which can be used to perform
streamed I/O with other public API function.

When no longer needed, a stream object must be released
with virStreamFree. If a data stream has been used,
then the application must call virStreamFinish or
virStreamAbort before free'ing to, in order to notify
the driver of termination.

If a non-blocking data stream is required passed
VIR_STREAM_NONBLOCK for flags, otherwise pass 0. zvirStreamNew() failedrJ   )r   ZvirStreamNewr   r   	virStream)r#   rH   rL   r   r$   r   	newStreamZvirConnect.newStream`  s:     %%dggu5;677$)r   c                r   )zCreate a new device on the VM host machine, for example, virtual
HBAs created using vport_create.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. zvirNodeDeviceCreateXML() failedrJ   )r   ZvirNodeDeviceCreateXMLr   r   virNodeDevicer  rg   r   nodeDeviceCreateXMLZvirConnect.nodeDeviceCreateXMLv  s:     //H;@AAd-r   c                r   )a  Define a new inactive persistent device or modify an existing persistent
one from the XML description on the VM host machine, for example, a mediated
device.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. zvirNodeDeviceDefineXML() failedrJ   )r   ZvirNodeDeviceDefineXMLr   r   ri  r  rg   r   nodeDeviceDefineXMLZvirConnect.nodeDeviceDefineXML  s:     //H;@AAd-r   c                r  )zLookup a node device by its name.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. z"virNodeDeviceLookupByName() failedrJ   )r   ZvirNodeDeviceLookupByNamer   r   ri  rA  r$   r   nodeDeviceLookupByNameZ!virConnect.nodeDeviceLookupByName  s:    
 22477DA;CDDd-r   c                    \         P                  ! V P                  WV4      pVf   \        R4      h\	        WR7      pV# )zLookup SCSI Host which is capable with 'fc_host' by its WWNN and WWPN.

virNodeDeviceFree should be used to free the resources after the
node device object is no longer needed. z)virNodeDeviceLookupSCSIHostByWWN() failedrJ   )r   Z virNodeDeviceLookupSCSIHostByWWNr   r   ri  )r#   ZwwnnZwwpnrH   rL   r   rn   r   nodeDeviceLookupSCSIHostByWWNZ(virConnect.nodeDeviceLookupSCSIHostByWWN  s<    
 99$''4uU;JKKd-r   c                r   )z5Provides the number of defined but inactive domains. z&virConnectNumOfDefinedDomains() failedrq   )r   ZvirConnectNumOfDefinedDomainsr   r   r   rQ   r   numOfDefinedDomainsZvirConnect.numOfDefinedDomains  s.    66tww?"9GHH
r   c                r   )zKProvides the number of defined (inactive) interfaces on the physical host. z)virConnectNumOfDefinedInterfaces() failedrq   )r   Z virConnectNumOfDefinedInterfacesr   r   r   rQ   r   numOfDefinedInterfacesZ!virConnect.numOfDefinedInterfaces  s.    99$''B"9JKK
r   c                r   )z*Provides the number of inactive networks. z'virConnectNumOfDefinedNetworks() failedrq   )r   ZvirConnectNumOfDefinedNetworksr   r   r   rQ   r   numOfDefinedNetworksZvirConnect.numOfDefinedNetworks  s.    77@"9HII
r   c                r   )z.Provides the number of inactive storage pools z+virConnectNumOfDefinedStoragePools() failedrq   )r   Z"virConnectNumOfDefinedStoragePoolsr   r   r   rQ   r   numOfDefinedStoragePoolsZ#virConnect.numOfDefinedStoragePools  s.    ;;DGGD"9LMM
r   c                r   )zProvides the number of node devices.

If the optional 'cap'  argument is non-None, then the count
will be restricted to devices with the specified capability zvirNodeNumOfDevices() failedrq   )r   ZvirNodeNumOfDevicesr   r   rJ  rM   r   numOfDevicesZvirConnect.numOfDevices  s2    
 ,,TWWcA"9=>>
r   c                r   )z'Provides the number of active domains. zvirConnectNumOfDomains() failedrq   )r   ZvirConnectNumOfDomainsr   r   r   rQ   r   numOfDomainsZvirConnect.numOfDomains  r  r   c                r   )z?Provides the number of active interfaces on the physical host. z"virConnectNumOfInterfaces() failedrq   )r   ZvirConnectNumOfInterfacesr   r   r   rQ   r   numOfInterfacesZvirConnect.numOfInterfaces  r   r   c                r   )z"Provides the number of nwfilters. z!virConnectNumOfNWFilters() failedrq   )r   ZvirConnectNumOfNWFiltersr   r   r   rQ   r   numOfNWFiltersZvirConnect.numOfNWFilters  s.    11$'':"9BCC
r   c                r   )z(Provides the number of active networks. z virConnectNumOfNetworks() failedrq   )r   ZvirConnectNumOfNetworksr   r   r   rQ   r   numOfNetworksZvirConnect.numOfNetworks  r5  r   c                r   )z+Fetch number of currently defined secrets. zvirConnectNumOfSecrets() failedrq   )r   ZvirConnectNumOfSecretsr   r   r   rQ   r   numOfSecretsZvirConnect.numOfSecrets  r  r   c                r   )z,Provides the number of active storage pools z$virConnectNumOfStoragePools() failedrq   )r   ZvirConnectNumOfStoragePoolsr   r   r   rQ   r   numOfStoragePoolsZvirConnect.numOfStoragePools  s.    44TWW="9EFF
r   c                r   )ay  Define a new network filter, based on an XML description
similar to the one returned by virNWFilterGetXMLDesc(). This
API may be used to associate a filter with a currently running
guest that does not have a filter defined for a specific network
port. Since the bindings are generally automatically managed by
the hypervisor, using this command to define a filter for a network
port and then starting the guest afterwards may prevent the guest
from starting if it attempts to use the network port and finds a
filter already defined.

virNWFilterFree should be used to free the resources after the
binding object is no longer needed. z$virNWFilterBindingCreateXML() failedrJ   )r   ZvirNWFilterBindingCreateXMLr   r   virNWFilterBindingr$  rg   r   nwfilterBindingCreateXMLZ#virConnect.nwfilterBindingCreateXML%  s:     44TWWcI;EFF"42r   c                r  )zTry to lookup a network filter binding on the given hypervisor based
on network port device name.

virNWFilterBindingFree should be used to free the resources after the
binding object is no longer needed. z*virNWFilterBindingLookupByPortDev() failedrJ   )r   Z!virNWFilterBindingLookupByPortDevr   r   rz  )r#   ZportdevrL   r   r$   r   nwfilterBindingLookupByPortDevZ)virConnect.nwfilterBindingLookupByPortDev8  s:     ::477GL;KLL"42r   c                r  )Define a new network filter, based on an XML description
similar to the one returned by virNWFilterGetXMLDesc()

virNWFilterFree should be used to free the resources after the
nwfilter object is no longer needed. zvirNWFilterDefineXML() failedrJ   )r   ZvirNWFilterDefineXMLr   r   virNWFilterr]  r$   r   nwfilterDefineXMLZvirConnect.nwfilterDefineXMLD  s:     --dggw?;>??D+r   c                r   )r}  z"virNWFilterDefineXMLFlags() failedrJ   )r   ZvirNWFilterDefineXMLFlagsr   r   r~  r  rg   r   nwfilterDefineXMLFlagsZ!virConnect.nwfilterDefineXMLFlagsP  s:     22477GK;CDDD+r   c                r  )zTry to lookup a network filter on the given hypervisor based on its name.

virNWFilterFree should be used to free the resources after the
nwfilter object is no longer needed. z virNWFilterLookupByName() failedrJ   )r   ZvirNWFilterLookupByNamer   r   r~  rA  r$   r   nwfilterLookupByNameZvirConnect.nwfilterLookupByName\  s:    
 00$?;ABBD+r   c                r  )zJTry to lookup a network filter on the given hypervisor based on its UUID. z virNWFilterLookupByUUID() failedrJ   )r   ZvirNWFilterLookupByUUIDr   r   r~  rW  r$   r   nwfilterLookupByUUIDZvirConnect.nwfilterLookupByUUIDk  s8    00$?;ABBD+r   c                r  )zTry to lookup an nwfilter on the given hypervisor based on its UUID.

virNWFilterFree should be used to free the resources after the
nwfilter object is no longer needed. z&virNWFilterLookupByUUIDString() failedrJ   )r   ZvirNWFilterLookupByUUIDStringr   r   r~  rZ  r$   r   nwfilterLookupByUUIDStringZ%virConnect.nwfilterLookupByUUIDStringw  s:    
 66twwH;GHHD+r   c                r   )zsThis method will restore a domain saved to disk by virDomainSave().

See virDomainRestoreFlags() for more control. zvirDomainRestore() failedrq   )r   ZvirDomainRestorer   r   )r#   frmrL   r   r   restoreZvirConnect.restore  s2     ))$''37"9:;;
r   c                r   )al  This method will restore a domain saved to disk by virDomainSave().

If the hypervisor supports it, @dxml can be used to alter
host-specific portions of the domain XML that will be used when
restoring an image.  For example, it is possible to alter the
backing filename that is associated with a disk device, in order to
prepare for file renaming done as part of backing up the disk
device while the domain is stopped.

If @flags includes VIR_DOMAIN_SAVE_BYPASS_CACHE, then libvirt will
attempt to bypass the file system cache while restoring the file, or
fail if it cannot do so for the given system; this can allow less
pressure on file system cache, but also risks slowing restores from NFS.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default read from the file.  These two
flags are mutually exclusive.

If @flags includes VIR_DOMAIN_SAVE_RESET_NVRAM, then libvirt will
discard any existing NVRAM file and re-initialize NVRAM from the
pristine template. zvirDomainRestoreFlags() failedrq   )r   ZvirDomainRestoreFlagsr   r   )r#   r  r!  rH   rL   r   r   restoreFlagsZvirConnect.restoreFlags  s4    0 ..tww5I"9?@@
r   c                r   )z1This method will restore a domain saved to disk. zvirDomainRestoreParams() failedrq   )r   ZvirDomainRestoreParamsr   r   rb  rM   r   restoreParamsZvirConnect.restoreParams  r  r   c                r   )a  This updates the definition of a domain stored in a saved state
file.  @file must be a file created previously by virDomainSave()
or virDomainSaveFlags().

@dxml can be used to alter host-specific portions of the domain XML
that will be used when restoring an image.  For example, it is
possible to alter the backing filename that is associated with a
disk device, to match renaming done as part of backing up the disk
device while the domain is stopped.

Normally, the saved state file will remember whether the domain was
running or paused, and restore defaults to the same state.
Specifying VIR_DOMAIN_SAVE_RUNNING or VIR_DOMAIN_SAVE_PAUSED in
@flags will override the default saved into the file; omitting both
leaves the file's default unchanged.  These two flags are mutually
exclusive. z$virDomainSaveImageDefineXML() failedrq   )r   ZvirDomainSaveImageDefineXMLr   r   )r#   filer!  rH   rL   r   r   saveImageDefineXMLZvirConnect.saveImageDefineXML  s4    " 44TWWd%P"9EFF
r   c                r   )a  This method will extract the XML describing the domain at the time
a saved state file was created.  @file must be a file created
previously by virDomainSave() or virDomainSaveFlags().

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_SAVE_IMAGE_XML_SECURE. z%virDomainSaveImageGetXMLDesc() failed)r   ZvirDomainSaveImageGetXMLDescr   r   )r#   r  rH   rL   rM   r   saveImageGetXMLDescZvirConnect.saveImageGetXMLDesc  s0     55dggtK;FGG
r   c                r   )a  If XML specifies a UUID, locates the specified secret and replaces all
attributes of the secret specified by UUID by attributes specified in xml
(any attributes not specified in xml are discarded).

Otherwise, creates a new secret with an automatically chosen UUID, and
initializes its attributes from xml.

virSecretFree should be used to free the resources after the
secret object is no longer needed. zvirSecretDefineXML() failedrJ   )r   ZvirSecretDefineXMLr   r   	virSecretr$  rg   r   secretDefineXMLZvirConnect.secretDefineXML  s:     ++DGGS@;<==$)r   c                r  )zBTry to lookup a secret on the given hypervisor based on its UUID. zvirSecretLookupByUUID() failedrJ   )r   ZvirSecretLookupByUUIDr   r   r  rW  r$   r   secretLookupByUUIDZvirConnect.secretLookupByUUID  rY  r   c                r  )zTry to lookup a secret on the given hypervisor based on its UUID.
Uses the printable string value to describe the UUID

virSecretFree should be used to free the resources after the
secret object is no longer needed. z$virSecretLookupByUUIDString() failedrJ   )r   ZvirSecretLookupByUUIDStringr   r   r  rZ  r$   r   secretLookupByUUIDStringZ#virConnect.secretLookupByUUIDString  s:     44TWWgF;EFF$)r   c                r   )zTry to lookup a secret on the given hypervisor based on its usage
The usageID is unique within the set of secrets sharing the
same usageType value.

virSecretFree should be used to free the resources after the
secret object is no longer needed. zvirSecretLookupByUsage() failedrJ   )r   ZvirSecretLookupByUsager   r   r  )r#   	usageTypeusageIDrL   r   rg   r   secretLookupByUsageZvirConnect.secretLookupByUsage  s:     //L;@AA$)r   c                r   )zJOverride the default identity information associated with the connection. zvirConnectSetIdentity() failedrq   )r   ZvirConnectSetIdentityr   r   rb  rM   r   setIdentityZvirConnect.setIdentity  s0    ..twwF"9?@@
r   c                r   )a  Start sending keepalive messages after @interval seconds of inactivity and
consider the connection to be broken when no response is received after
@count keepalive messages sent in a row.  In other words, sending count + 1
keepalive message results in closing the connection.  When @interval is
<= 0, no keepalive messages will be sent.  When @count is 0, the connection
will be automatically closed after @interval seconds of inactivity without
sending any keepalive messages.

Note: The client has to implement and run an event loop with
virEventRegisterImpl() or virEventRegisterDefaultImpl() to be able to
use keepalive messages.  Failure to do so may result in connections
being closed unexpectedly.

Note: This API function controls only keepalive messages sent by the client.
If the server is configured to use keepalive you still need to run the event
loop to respond to them, even if you disable keepalives by this function. zvirConnectSetKeepAlive() failedrq   )r   ZvirConnectSetKeepAliver   r   )r#   ZintervalZcountrL   rM   r   setKeepAliveZvirConnect.setKeepAlive%  s2    " //I"9@AA
r   c                r   )z Change the node memory tunables z#virNodeSetMemoryParameters() failedrq   )r   ZvirNodeSetMemoryParametersr   r   rb  rM   r   r  ZvirConnect.setMemoryParameters?  r  r   c                r   )a  Create a new storage based on its XML description. The
pool is not persistent, so its definition will disappear
when it is destroyed, or if the host is restarted

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z virStoragePoolCreateXML() failedrJ   )r   ZvirStoragePoolCreateXMLr   r   r  r  rg   r   storagePoolCreateXMLZvirConnect.storagePoolCreateXMLJ  s:     00'I;ABBt.r   c                r   )zDefine an inactive persistent storage pool or modify an existing persistent
one from the XML description.

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z virStoragePoolDefineXML() failedrJ   )r   ZvirStoragePoolDefineXMLr   r   r  r$  rg   r   storagePoolDefineXMLZvirConnect.storagePoolDefineXMLW  s:     00#E;ABBt.r   c                r  )zFetch a storage pool based on its unique name

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z#virStoragePoolLookupByName() failedrJ   )r   ZvirStoragePoolLookupByNamer   r   r  rA  r$   r   storagePoolLookupByNameZ"virConnect.storagePoolLookupByNamec  :    
 33DGGTB;DEEt.r   c                r  )a  Fetch a storage pool which maps to a particular target directory.
If more than one pool maps to the path, it is undefined which
will be returned first.

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z)virStoragePoolLookupByTargetPath() failedrJ   )r   Z virStoragePoolLookupByTargetPathr   r   r  r#   r   rL   r   r$   r   storagePoolLookupByTargetPathZ(virConnect.storagePoolLookupByTargetPathn  s:     99$''4H;JKKt.r   c                r  )Fetch a storage pool based on its globally unique id

virStoragePoolFree should be used to free the resources after the
storage pool object is no longer needed. z#virStoragePoolLookupByUUID() failedrJ   )r   ZvirStoragePoolLookupByUUIDr   r   r  rW  r$   r   storagePoolLookupByUUIDZ"virConnect.storagePoolLookupByUUID{  r  r   c                r  )r  z)virStoragePoolLookupByUUIDString() failedrJ   )r   Z virStoragePoolLookupByUUIDStringr   r   r  rZ  r$   r   storagePoolLookupByUUIDStringZ(virConnect.storagePoolLookupByUUIDString  s:    
 99$''7K;JKKt.r   c                r  )zFetch a pointer to a storage volume based on its
globally unique key

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. z!virStorageVolLookupByKey() failedrJ   )r   ZvirStorageVolLookupByKeyr   r   r  )r#   r  rL   r   r$   r   storageVolLookupByKeyZ virConnect.storageVolLookupByKey  s:     11$''3?;BCCd-r   c                r  )zFetch a pointer to a storage volume based on its
locally (host) unique path

virStorageVolFree should be used to free the resources after the
storage volume object is no longer needed. z"virStorageVolLookupByPath() failedrJ   )r   ZvirStorageVolLookupByPathr   r   r  r  r$   r   storageVolLookupByPathZ!virConnect.storageVolLookupByPath  s:     22477DA;CDDd-r   c                r   )zAttempt to suspend the node (host machine) for the given duration of
time in the specified state (Suspend-to-RAM, Suspend-to-Disk or
Hybrid-Suspend). Schedule the node's Real-Time-Clock interrupt to
resume the node after the duration is complete. z"virNodeSuspendForDuration() failedrq   )r   ZvirNodeSuspendForDurationr   r   rO  r   r   suspendForDurationZvirConnect.suspendForDuration  s4    
 22477FeT"9CDD
r   c                r   )aY  Provide a pointer to the last error caught on that connection

This method is not protected against access from multiple
threads. In a multi-threaded application, always use the
global virGetLastError() API which is backed by thread
local storage.

If the connection object was discovered to be invalid by
an API call, then the error will be reported against the
global error object.

Since 0.6.0, all errors reported in the per-connection object
are also duplicated in the global error object. As such an
application can always use virGetLastError(). This method
remains for backwards compatibility. )r   virConnGetLastErrorr   r   rQ   r   r  ZvirConnect.virConnGetLastError  s      ,,TWW5
r   c                sF    \         P                  ! V P                  4       R# )zThe error object is kept in thread local storage, so separate
threads can safely access this concurrently.

Reset the last error caught on that connection N)r   virConnResetLastErrorr   r*   r+   r   r  Z virConnect.virConnResetLastError  s    
 	((1r   c                r  r  rZ   r   r   r   r   virConnect.__annotate__  s     
 
 
r   c                s    V P                   P                  4        V = \        P                  ! V P                  V 4       V P                  e!   \        P                  ! V P                  4       R V n        R #   \
         d     LDi ; ir   )domainEventCallbacksZclearr   virConnectDomainEventDeregisterr   AttributeErrorr  r*   r+   r   r   ZvirConnect.__del__  sl    	%%++-)66twwE 77&&tww/  		s   =A6 6BBc                r  r   r   r   rZ   r   r   r   r   r    s      < r   c                s    V # r   rZ   r*   r+   r   	__enter__ZvirConnect.__enter__  s    r   c                sp   < V ^8  d   QhRS[ S[S[,          ,          RS[ S[,          RS[ S[,          RR/# )r   	exc_type_
exc_value_
traceback_r   N)r   r	   BaseExceptionr   r   r   r   r   r    sM      (4+>"? XVcMd rz  |I  sJ   OS r   c                s&    V P                  4        R # r   )r  )r#   r  r  r  s   &&&&r   __exit__ZvirConnect.__exit__  s    

r   c                r   )r   rm   r   N)	_DomainCBr   r   r   r   r    s      	 d r   c                s     V P                   V \        V P                   4      ^ 8X  d8   V = \        P                  ! V P                  V 4      pVR8X  d   \        R4      hR# R#   \         d     R# i ; i)oRemoves a Domain Event Callback. De-registering for a
domain callback will disable delivery of this event type z(virConnectDomainEventDeregister() failedNrq   )r  lenr   r  r   r   r  )r#   rm   rL   r   r   domainEventDeregisterZ virConnect.domainEventDeregister  su    	))"-4,,-2- @@$O"9&'QRR  3
  		s   AA" "A10A1c                s*   < V ^8  d   QhRS[ RS[RR/# )r   rm   rV   r   N)r  r   r   r   r   r   r    s'     	M 	Mi 	M 	M 	Mr   c                s     W P                   V&   R#   \         d@    Y/T n         \        P                  ! T P                  T 4      pTR8X  d   \        R4      h R# i ; i)cAdds a Domain Event Callback. Registering for a domain
callback will enable delivery of the events z&virConnectDomainEventRegister() failedNrq   )r  r  r   ZvirConnectDomainEventRegisterr   r   )r#   rm   rV   rL   rM   r   domainEventRegisterZvirConnect.domainEventRegister  s_    	M,2%%b) 	M)+D%::477DICby"#KLL 	Ms    AAAc                s.   < V ^8  d   QhRRRS[ RS[ RR/# )r   domr   rU   detailr   Nr  r   r   r   r   r    s+       S RU Z^ r   c           	     s     V P                   P                  4        F  w  rEV! V \        WR7      W#V4       K  	  R#   \         d     R# i ; i)z@Dispatches events to python user domain event callbacks
        rJ   N)r  Zitemsr   r  )r#   r  rU   r  rm   rV   rn   r   _dispatchDomainEventCallbacksZ(virConnect._dispatchDomainEventCallbacks  sH    	"77==?
442E6J @ 		s   8< A
Ac          
      L   < V ^8  d   QhRRRS[ RS[ RS[S[S[3,          RS[ /# )r   r  r   rU   r  rj   r   rk   r   r   r   r   r    s?       S Z] gkloqtltgu z} r   c                T    VR,          pVR,          pV! V \        WR7      W#V4       ^ # )zJDispatches events to python user domain lifecycle event callbacks
        rm   rV   rJ   r   )r#   r  rU   r  rj   rm   rV   rd   r   %_dispatchDomainEventLifecycleCallbackZ0virConnect._dispatchDomainEventLifecycleCallback  s-     D\!
44*E6Br   c                @   < V ^8  d   QhRRRS[ S[S[3,          RS[/# )r   r  r   rj   r   r   r   r   r(   r   r   r   r   r    s.      { DQTVYQYN _b r   c                R    VR,          pVR,          pV! V \        WR7      V4       ^ # )zHDispatches events to python user domain generic event callbacks
        rm   rV   rJ   r  )r#   r  rj   rm   rV   rg   r   #_dispatchDomainEventGenericCallbackZ.virConnect._dispatchDomainEventGenericCallback  s+     D\!
44*F3r   c                F   < V ^8  d   QhRRRS[ RS[S[S[3,          RS[ /# )r   r  r   r   rj   r   rk   r   r   r   r   r    7       c [_`ceh`h[i nq r   c                R    VR,          pVR,          pV! V \        WR7      W%4       ^ # )zKDispatches events to python user domain RTC change event callbacks
        rm   rV   rJ   r  )r#   r  r   rj   rm   rV   rn   r   %_dispatchDomainEventRTCChangeCallbackZ0virConnect._dispatchDomainEventRTCChangeCallback  +     D\!
44*F;r   c                r  )r   r  r   r  rj   r   rk   r   r   r   r   r  &  7       S Z^_bdg_gZh mp r   c                r  )zIDispatches events to python user domain watchdog event callbacks
        rm   rV   rJ   r  )r#   r  r  rj   rm   rV   rn   r   $_dispatchDomainEventWatchdogCallbackZ/virConnect._dispatchDomainEventWatchdogCallback&  r  r   c                sR   < V ^8  d   QhRRRS[ RS[ RS[RS[S[ S[3,          RS[/# )r   r  r   srcPathdevAliasr  rj   r   r   r(   r   r   r   r   r   r   r  /  sW      { S \_ il vz{~  AD  |D  wE   JM r   c                T    VR,          pVR,          pV! V \        WR7      W#WG4       ^ # zIDispatches events to python user domain IO error event callbacks
        rm   rV   rJ   r  )r#   r  r  r  r  rj   rm   rV      &&&&&&  r   #_dispatchDomainEventIOErrorCallbackZ.virConnect._dispatchDomainEventIOErrorCallback/  s-     D\!
44*GvNr   c                X   < V ^8  d   QhRRRS[ RS[ RS[RS[RS[S[ S[3,          RS[/# )	r   r  r   r  r  r  reasonrj   r   r  r   r   r   r   r  8  sh      [ SV be or |   JN  OR  TW  OW  JX   ]` r   c           	     sV    VR,          pVR,          pV! V \        WR7      W#VWX4       ^ # r  r  )	r#   r  r  r  r  r  rj   rm   rV   	   &&&&&&&  r   )_dispatchDomainEventIOErrorReasonCallbackZ4virConnect._dispatchDomainEventIOErrorReasonCallback8  s2     D\!
44*Gv	r   c                s^   < V ^8  d   QhRRRS[ RS[RS[RS[RS[RS[S[S[3,          R	S[ /# )
r   r  r   phase	localAddr
remoteAddr
authSchemesubjectrj   r   )r(   r   r   r   r   r   r   r   r  B  sw       C \_ mp   B   MP   Z^  _b  dg  _g  Zh   mp r   c           
     sX    VR,          pVR,          p	V! V \        WR7      W#VWVV	4       ^ # )zIDispatches events to python user domain graphics event callbacks
        rm   rV   rJ   r  )
r#   r  r  r  r  r  r  rj   rm   rV   s
   &&&&&&&&  r   $_dispatchDomainEventGraphicsCallbackZ/virConnect._dispatchDomainEventGraphicsCallbackB  s4     D\!
44*Ej	(r   c                sP   < V ^8  d   QhRRRS[ RS[RS[RS[S[ S[3,          RR/# )	r   r  r   r   r   statusrj   r   Nr  r   r   r   r   r  L  sK     	 	 	3 	VY 	cf 	ptuxz}u}p~ 	  DH 	r   c                sz     VR,          pVR,          pV! V \        WR7      W#WG4       R#   \         d     R# i ; i)zSDispatches events to python user domain blockJob/blockJob2 event callbacks
        rm   rV   rJ   N)r   r  )r#   r  r   r   r  rj   rm   rV   r  r   $_dispatchDomainEventBlockJobCallbackZ/virConnect._dispatchDomainEventBlockJobCallbackL  s?    	BH%FtYt.FK 		s   '+ ::c                sX   < V ^8  d   QhRRRS[ RS[ RS[ RS[RS[S[ S[3,          RS[/# )	r   r  r   
oldSrcPath
newSrcPathr  r  rj   r   r  r   r   r   r   r  W  sl      + SV dg sv   AD   NR  SV  X[  S[  N\   ad r   c           	     V    VR,          pVR,          pV! V \        WR7      W#WEV4       ^ # )zJDispatches event to python user domain diskChange event callbacks
        rm   rV   rJ   r  )	r#   r  r  r  r  r  rj   rm   rV   r  r   &_dispatchDomainEventDiskChangeCallbackZ1virConnect._dispatchDomainEventDiskChangeCallbackW  s0     D\!
44*JHV\]r   c          
      L   < V ^8  d   QhRRRS[ RS[RS[S[ S[3,          RS[/# )r   r  r   r  r  rj   r   r  r   r   r   r   r  `  sD      + QT ^a kopsuxpxky   B r   c                r  )zJDispatches event to python user domain trayChange event callbacks
        rm   rV   rJ   r  )r#   r  r  r  rj   rm   rV   rd   r   &_dispatchDomainEventTrayChangeCallbackZ1virConnect._dispatchDomainEventTrayChangeCallback`  s-     D\!
44*HfEr   c                r  r   r  r   r  rj   r   rk   r   r   r   r   r  i  r  r   c                r  )zHDispatches event to python user domain pmwakeup event callbacks
        rm   rV   rJ   r  r#   r  r  rj   rm   rV   rn   r   $_dispatchDomainEventPMWakeupCallbackZ/virConnect._dispatchDomainEventPMWakeupCallbacki  r  r   c                r  r  rk   r   r   r   r   r  r  r  r   c                r  )zIDispatches event to python user domain pmsuspend event callbacks
        rm   rV   rJ   r  r  rn   r   %_dispatchDomainEventPMSuspendCallbackZ0virConnect._dispatchDomainEventPMSuspendCallbackr  r  r   c                r  )r   r  r   actualrj   r   rk   r   r   r   r   r  {  8      [ RU _cdgildl_m ru r   c                r  )zODispatches events to python user domain balloon change event callbacks
        rm   rV   rJ   r  )r#   r  r  rj   rm   rV   rn   r   )_dispatchDomainEventBalloonChangeCallbackZ4virConnect._dispatchDomainEventBalloonChangeCallback{  r  r   c                r  r  rk   r   r   r   r   r    r  r   c                r  )zNDispatches event to python user domain pmsuspend-disk event callbacks
        rm   rV   rJ   r  r  rn   r   )_dispatchDomainEventPMSuspendDiskCallbackZ4virConnect._dispatchDomainEventPMSuspendDiskCallback  r  r   c                F   < V ^8  d   QhRRRS[ RS[S[ S[3,          RS[/# r   r  r   r  rj   r   r   r   r   r(   r   r   r   r   r    s8      [ TW aefiknfnao tw r   c                r  )zNDispatches event to python user domain device removed event callbacks
        rm   rV   rJ   r  r#   r  r  rj   rm   rV   rn   r   )_dispatchDomainEventDeviceRemovedCallbackZ4virConnect._dispatchDomainEventDeviceRemovedCallback  +     D\!
44*H=r   c                sF   < V ^8  d   QhRRRS[ RS[S[S[ 3,          RS[/# r   r  r   r   rj   r   )r   r   r   r(   r   r   r   r   r    s7      { C Y]^acf^fYg lo r   c                r  )zGDispatches event to python user domain tunable event callbacks
        rm   rV   rJ   r  r#   r  r   rj   rm   rV   rn   r   #_dispatchDomainEventTunableCallbackZ.virConnect._dispatchDomainEventTunableCallback  r  r   c          
      r  )r   r  r   rz  r  rj   r   rk   r   r   r   r   r    sD      k RU _b lpqtvyqylz   @C r   c                r  )zNDispatches event to python user domain agent lifecycle event callback
        rm   rV   rJ   r  )r#   r  rz  r  rj   rm   rV   rd   r   *_dispatchDomainEventAgentLifecycleCallbackZ5virConnect._dispatchDomainEventAgentLifecycleCallback  s-     D\!
44*E6Br   c                r  r  r  r   r   r   r   r    s8      ; RU _cdgildl_m ru r   c                r  )zLDispatches event to python user domain device added event callbacks
        rm   rV   rJ   r  r  rn   r   '_dispatchDomainEventDeviceAddedCallbackZ2virConnect._dispatchDomainEventDeviceAddedCallback  r  r   c                r  )r   r  r   	iterationrj   r   rk   r   r   r   r   r    s8      + Z] gkloqtltgu z} r   c                r  )zSDispatches event to python user domain migration iteration event callbacks
        rm   rV   rJ   r  )r#   r  r  rj   rm   rV   rn   r   ._dispatchDomainEventMigrationIterationCallbackZ9virConnect._dispatchDomainEventMigrationIterationCallback  s+     D\!
44*I>r   c                s\   < V ^8  d   QhRRRS[ S[S[3,          RS[ S[S[3,          RS[/# r  r  r   r   r   r   r    sD      K QUVY[^V^Q_ imnqsvnviw | r   c                r  )zGDispatches event to python user domain job completed callbacks
        rm   rV   rJ   r  r  rn   r   (_dispatchDomainEventJobCompletedCallbackZ3virConnect._dispatchDomainEventJobCompletedCallback  r  r   c                r  r  r  r   r   r   r   r    s8      ; Z] gkloqtltgu z} r   c                r  )zUDispatches event to python user domain device removal failed event callbacks
        rm   rV   rJ   r  r  rn   r   /_dispatchDomainEventDeviceRemovalFailedCallbackZ:virConnect._dispatchDomainEventDeviceRemovalFailedCallback  r  r   c          
      L   < V ^8  d   QhRRRS[ RS[RS[S[S[3,          RS[ /# )r   r  r   mtypensurirj   r   r(   r   r   r   r   r   r   r   r    sD      k RU ^a kopsuxpxky   B r   c                r  )zODispatches event to python user domain metadata change event callbacks
        rm   rV   rJ   r  r#   r  r  r  rj   rm   rV   rd   r   *_dispatchDomainEventMetadataChangeCallbackZ5virConnect._dispatchDomainEventMetadataChangeCallback  s-     D\!
44*E&Ar   c                r  )	r   r  r   rw  r   rx  excessrj   r   r  r   r   r   r   r    sh      k PS [^ kn x{   FJ  KN  PS  KS  FT   Y\ r   c           	     r  )zVDispatches event to python user domain block device threshold event callbacks
        rm   rV   rJ   r  )	r#   r  rw  r   rx  r  rj   rm   rV   r  r   *_dispatchDomainEventBlockThresholdCallbackZ5virConnect._dispatchDomainEventBlockThresholdCallback  s/     D\!
44*Cy&Qr   c                sR   < V ^8  d   QhRRRS[ RS[ RS[ RS[S[S[3,          RS[ /# )r   r  r   	recipientr  rH   rj   r   rk   r   r   r   r   r    s\      [ UX be nq {  AD  FI  AI  |J   OR r   c                r  )zNDispatches event to python user domain memory failure event callbacks
        rm   rV   rJ   r  )r#   r  r  r  rH   rj   rm   rV   r  r   )_dispatchDomainEventMemoryFailureCallbackZ4virConnect._dispatchDomainEventMemoryFailureCallback  s-     D\!
44*IuMr   c          
      r  )r   r  r   r   r   rj   r   r  r   r   r   r   r    sH      k Z] eh rvwz|w  sA   FI r   c                r  )zYDispatches event to python user domain memory device size change event callbacks
        rm   rV   rJ   r  )r#   r  r   r   rj   rm   rV   rd   r   2_dispatchDomainEventMemoryDeviceSizeChangeCallbackZ=virConnect._dispatchDomainEventMemoryDeviceSizeChangeCallback  s-     D\!
44*E@r   c                sR   < V ^8  d   QhRRRS[ RS[ RS[ RS[S[ S[3,          RS[/# )r   r  r   r   oldMACnewMACrj   r   r  r   r   r   r   r    sX      K PS ]` jm w{|  BE  }E  xF   KN r   c                r  )zNDispatches event to python user domain NIC MAC change event callbacks
        rm   rV   rJ   r  )r#   r  r   r   r  rj   rm   rV   r  r   (_dispatchDomainEventNICMACChangeCallbackZ3virConnect._dispatchDomainEventNICMACChangeCallback  s-     D\!
44*E6Jr   c                r   r   
callbackIDr   Nr  r   r   r   r   r         	 	3 	4 	r   c                     \         P                  ! V P                  V4      pVR8X  d   \        R4      hV P                  V R#   \
         d     R# i ; i)r  z+virConnectDomainEventDeregisterAny() failedNrq   )r   Z"virConnectDomainEventDeregisterAnyr   r   domainEventCallbackIDr  r#   r  rL   r   r   domainEventDeregisterAnyZ#virConnect.domainEventDeregisterAny  P    	??TCby"#PQQ**:6 		   A A AAc          
      r  )r   r  r  rU   r  rj   r   rk   r   r   r   r   r    s?      , s \_ imnqsvnviw | r   c                r  )zKDispatches events to python user network lifecycle event callbacks
        rm   rV   rJ   r  )r#   r  rU   r  rj   rm   rV   rd   r   &_dispatchNetworkEventLifecycleCallbackZ1virConnect._dispatchNetworkEventLifecycleCallback  s-     D\!
4D+UFCr   c          
      r  )r   r  r  r  r  rj   r   r  r   r   r   r   r    sD      | TW `c mqruwzrzm{   AD r   c                r  )zPDispatches event to python user network metadata change event callbacks
        rm   rV   rJ   r  r  rd   r   +_dispatchNetworkEventMetadataChangeCallbackZ6virConnect._dispatchNetworkEventMetadataChangeCallback  s-     D\!
4D+U6Br   c                r   r  r  r   r   r   r   r    s     	 	C 	D 	r   c                r  )zpRemoves a Network Event Callback. De-registering for a
network callback will disable delivery of this event typez,virConnectNetworkEventDeregisterAny() failedNrq   )r   Z#virConnectNetworkEventDeregisterAnyr   r   networkEventCallbackIDr  r  r   r   networkEventDeregisterAnyZ$virConnect.networkEventDeregisterAny  sP    	@@*UCby"#QRR++J7 		r  c          
      F   < V ^8  d   QhRS[ R,          RS[RS[RS[RS[/# )r   r  r  eventIDrm   rV   r   r   r(   r   r   r   r   r   r   r  "  s8      8L+A C U] gi nq r   c                .   \        V R4      '       g   / V n        RVRV RV/pVf$   \        P                  ! V P                  RW%4      pM,\        P                  ! V P                  VP                  W%4      pVR8X  d   \        R4      hW@P                  V&   V# )zdAdds a Network Event Callback. Registering for a network
callback will enable delivery of the eventsr  rm   r   rV   Nz*virConnectNetworkEventRegisterAny() failedrq   )hasattrr  r   Z!virConnectNetworkEventRegisterAnyr   r   )r#   r  r  rm   rV   rj   rL   rd   r   networkEventRegisterAnyZ"virConnect.networkEventRegisterAny"  s     t566*,D'FD(F;;>>twwg^C>>twwPW`C"9KLL+1##C(
r   c          
      r  )r   r  r   r  rm   rV   r   r  r   r   r   r   r  1  s8      (;*? # S[ eg lo r   c                r  )r  r  rm   r   rV   Nz)virConnectDomainEventRegisterAny() failedrq   )r  r  r   Z virConnectDomainEventRegisterAnyr   r   )r#   r  r  rm   rV   rj   rL   rd   r   domainEventRegisterAnyZ!virConnect.domainEventRegisterAny1  s     t455)+D&FD(F;;==dggtW]C==dggsvvw_C"9JKK*0""3'
r   c          
      r  )r   poolr  rU   r  rj   r   rk   r   r   r   r   r  @  sI      ?O X[ eh rvwz|w  sA   FI r   c                r  )zHDispatches events to python user storage pool
lifecycle event callbacks
rm   rV   rJ   r  )r#   r  rU   r  rj   rm   rV   rd   r   *_dispatchStoragePoolEventLifecycleCallbackZ5virConnect._dispatchStoragePoolEventLifecycleCallback@  s-     D\!
40%Hr   c                r  )r   r  r  rj   r   r  r   r   r   r   r  J  s1      =M W[\_ad\dWe jm r   c                r  )zFDispatches events to python user storage pool
generic event callbacks
rm   rV   rJ   r  )r#   r  rj   rm   rV   rg   r   (_dispatchStoragePoolEventGenericCallbackZ3virConnect._dispatchStoragePoolEventGenericCallbackJ  s+     D\!
40&9r   c                r   r  r  r   r   r   r   r  T  s     	 	 	 	r   c                r  )zzRemoves a Storage Pool Event Callback. De-registering for a
storage pool callback will disable delivery of this event typez0virConnectStoragePoolEventDeregisterAny() failedNrq   )r   Z'virConnectStoragePoolEventDeregisterAnyr   r   storagePoolEventCallbackIDr  r  r   r   storagePoolEventDeregisterAnyZ(virConnect.storagePoolEventDeregisterAnyT  sP    	DDTWWjYCby"#UVV//
; 		r  c          
      r  )r   r  r  r  rm   rV   r   r  r   r   r   r   r  _  s:      9I0J UX ^f pr wz r   c                r  )znAdds a Storage Pool Event Callback. Registering for a storage pool
callback will enable delivery of the eventsr  rm   r   rV   Nz.virConnectStoragePoolEventRegisterAny() failedrq   )r  r  r   Z%virConnectStoragePoolEventRegisterAnyr   r   )r#   r  r  rm   rV   rj   rL   rd   r   storagePoolEventRegisterAnyZ&virConnect.storagePoolEventRegisterAny_  s     t9::.0D+FD(F;<BB477DRYbCBB477DGGU\eC"9OPP/5'',
r   c          
      r  )r   rw  ri  rU   r  rj   r   rk   r   r   r   r   r  n  sD      _ UX be ostwy|t|o}   CF r   c                r  )zGDispatches events to python user node device
lifecycle event callbacks
rm   rV   rJ   ri  )r#   rw  rU   r  rj   rm   rV   rd   r   )_dispatchNodeDeviceEventLifecycleCallbackZ4virConnect._dispatchNodeDeviceEventLifecycleCallbackn  s-     D\!
4t.vFr   c                r  )r   rw  ri  rj   r   r  r   r   r   r   r  x  s0      ? TXY\^aYaTb gj r   c                r  )zEDispatches events to python user node device
generic event callbacks
rm   rV   rJ   r  )r#   rw  rj   rm   rV   rg   r   '_dispatchNodeDeviceEventGenericCallbackZ2virConnect._dispatchNodeDeviceEventGenericCallbackx  s+     D\!
4t.7r   c                r   r  r  r   r   r   r   r    s     	 	s 	t 	r   c                r  )zxRemoves a Node Device Event Callback. De-registering for a
node device callback will disable delivery of this event typez/virConnectNodeDeviceEventDeregisterAny() failedNrq   )r   Z&virConnectNodeDeviceEventDeregisterAnyr   r   nodeDeviceEventCallbackIDr  r  r   r   nodeDeviceEventDeregisterAnyZ'virConnect.nodeDeviceEventDeregisterAny  sP    	CCDGGZXCby"#TUU..z: 		r  c          
      r  )r   rw  ri  r  rm   rV   r   r  r   r   r   r   r    s9      h.G RU [c mo tw r   c                r  )zlAdds a Node Device Event Callback. Registering for a node device
callback will enable delivery of the eventsr"  rm   r   rV   Nz-virConnectNodeDeviceEventRegisterAny() failedrq   )r  r"  r   Z$virConnectNodeDeviceEventRegisterAnyr   r   )r#   rw  r  rm   rV   rj   rL   rd   r   nodeDeviceEventRegisterAnyZ%virConnect.nodeDeviceEventRegisterAny  s     t899-/D*FD(F;;AA$''4QXaCAA$''366SZcC"9NOO.4&&s+
r   c          
      r  )r   secretr  rU   r  rj   r   rk   r   r   r   r   r    sD      K PS ]` jnortwowjx   ~A r   c                r  )zJDispatches events to python user secret lifecycle event callbacks
        rm   rV   rJ   r  )r#   r%  rU   r  rj   rm   rV   rd   r   %_dispatchSecretEventLifecycleCallbackZ0virConnect._dispatchSecretEventLifecycleCallback  s-     D\!
44-ufEr   c                r  )r   r%  r  rj   r   r  r   r   r   r   r    s.      + tTWY\T\~ be r   c                r  )zHDispatches events to python user secret generic event callbacks
        rm   rV   rJ   r&  )r#   r%  rj   rm   rV   rg   r   #_dispatchSecretEventGenericCallbackZ.virConnect._dispatchSecretEventGenericCallback  s+     D\!
44-v6r   c                r   r  r  r   r   r   r   r    r  r   c                r  )znRemoves a Secret Event Callback. De-registering for a
secret callback will disable delivery of this event typez+virConnectSecretEventDeregisterAny() failedNrq   )r   Z"virConnectSecretEventDeregisterAnyr   r   secretEventCallbackIDr  r  r   r   secretEventDeregisterAnyZ#virConnect.secretEventDeregisterAny  r
  r  c          
      r  )r   r%  r  r  rm   rV   r   r  r   r   r   r   r    s8      Xk-B S V^ hj or r   c                r  )zbAdds a Secret Event Callback. Registering for a secret
callback will enable delivery of the eventsr)  rm   r   rV   Nz)virConnectSecretEventRegisterAny() failedrq   )r  r)  r   Z virConnectSecretEventRegisterAnyr   r   )r#   r%  r  rm   rV   rj   rL   rd   r   secretEventRegisterAnyZ!virConnect.secretEventRegisterAny  s     t455)+D&FD(F;>==dggtW]C==dggvyyRYbC"9JKK*0""3'
r   c                r  )r   rH   r   r   r  r   r   r   r   r    s$     @ @C @[0A @r   c                r  )z5List all domains and returns a list of domain objectsz!virConnectListAllDomains() failedrJ   )r   ZvirConnectListAllDomainsr   r   r   r  r$   r   listAllDomainsZvirConnect.listAllDomains  sF    11$''5A;BCC;>?3	$,3???r  c                r  )r   rH   r   r  r  r   r   r   r   r    s%     G G GT:J5K Gr   c                r  )z&Returns a list of storage pool objectsz&virConnectListAllStoragePools() failedrJ   )r   ZvirConnectListAllStoragePoolsr   r   r  )r#   rH   rL   Zpoolptrr$   r   listAllStoragePoolsZvirConnect.listAllStoragePools  sF    66twwF;GHHBEF#wt2#FFFr  c                r  )r   rH   r   r  r  r   r   r   r   r    s$     A AS Al1C Ar   c                r  )z!Returns a list of network objectsz"virConnectListAllNetworks() failedrJ   )r   ZvirConnectListAllNetworksr   r   r  )r#   rH   rL   Znetptrr$   r   listAllNetworksZvirConnect.listAllNetworks  sF    22477EB;CDD<?@C&
4-C@@@r  c                r  )r   rH   r   r  r  r   r   r   r   r    s$     G Gs G43G Gr   c                r  )z#Returns a list of interface objectsz$virConnectListAllInterfaces() failedrJ   )r   ZvirConnectListAllInterfacesr   r   r  )r#   rH   rL   Zifaceptrr$   r   listAllInterfacesZvirConnect.listAllInterfaces  sF    44TWWeD;EFFBEF#hT1#FFFr  c                r  )r   rH   r   ri  r  r   r   r   r   r    s$     D DC D_0E Dr   c                r  )z*Returns a list of host node device objectsz%virConnectListAllNodeDevices() failedrJ   )r   ZvirConnectListAllNodeDevicesr   r   ri  )r#   rH   rL   Zdevptrr$   r   listAllDevicesZvirConnect.listAllDevices  sF    55dgguE;FGG?BCsVd0sCCCr  c                r  )r   rH   r   r~  r  r   r   r   r   r    s$     J Jc J$}2E Jr   c                r  )z(Returns a list of network filter objectsz#virConnectListAllNWFilters() failedrJ   )r   ZvirConnectListAllNWFiltersr   r   r~  r#   rH   rL   Z
filter_ptrr$   r   listAllNWFiltersZvirConnect.listAllNWFilters  sF    33DGGUC;DEEEHISzD2SIIIr  c                r  )r   rH   r   rz  r  r   r   r   r   r    s%     Q QS Q>R9S Qr   c                r  )z0Returns a list of network filter binding objectsz*virConnectListAllNWFilterBindings() failedrJ   )r   Z!virConnectListAllNWFilterBindingsr   r   rz  r1  r$   r   listAllNWFilterBindingsZ"virConnect.listAllNWFilterBindings  sG    ::477EJ;KLLLOPCj"49CPPPr  c                r  )r   rH   r   r  r  r   r   r   r   r     s$     H HC H[0A Hr   c                r  )z Returns a list of secret objectsz!virConnectListAllSecrets() failedrJ   )r   ZvirConnectListAllSecretsr   r   r  )r#   rH   rL   Z
secret_ptrr$   r   listAllSecretsZvirConnect.listAllSecrets   sF    11$''5A;BCCCFG3Z	$03GGGr  c                B   < V ^8  d   QhRS[ RS[S[S[3,          RS[ /# )r   r  rj   r   rk   r   r   r   r   r    s*      S $sCx. S r   c                <    VR,          pVR,          pV! WV4       ^ # )z/Dispatches events to python user close callbackrm   rV   rZ   )r#   r  rj   rm   rV   rg   r   _dispatchCloseCallbackZ!virConnect._dispatchCloseCallback  s"    D\!
4 r   c                r  r  rZ   r   r   r   r   r    s     M M Mr   c                sj    \         P                  ! V P                  4      pVR8X  d   \        R4      hR# )zRemoves a close event callbackz*virConnectUnregisterCloseCallback() failedNrq   )r   Z!virConnectUnregisterCloseCallbackr   r   r   rQ   r   unregisterCloseCallbackZ"virConnect.unregisterCloseCallback  s.    ::477C"9KLL r   c                s,   < V ^8  d   QhRS[ RS[RS[/# )r   rm   rV   r   )r   r   r(   r   r   r   r   r    s"       "  r   c                s|    RVRV RV/p\         P                  ! V P                  V4      pVR8X  d   \        R4      hV# )zVAdds a close event callback, providing a notification
when a connection fails / closesrm   r   rV   z(virConnectRegisterCloseCallback() failedrq   )r   ZvirConnectRegisterCloseCallbackr   r   )r#   rm   rV   rj   rL   rg   r   registerCloseCallbackZ virConnect.registerCloseCallback  sD     FD(F;88&I"9IJJ
r   c                s@   < V ^8  d   QhRS[ RS[S[,          RS[RR/# )r   r   r  rH   r   r   rI   r   r   r   r   r    s.      # d3i  T_ r   c                rm  )a  Launch a new guest domain, based on an XML description similar
to the one returned by virDomainGetXMLDesc()
This function may require privileged access to the hypervisor.
The domain is not persistent, so its definition will disappear when it
is destroyed, or if the host is restarted (see virDomainDefineXML() to
define persistent domains).

@files provides an array of file descriptors which will be
made available to the 'init' process of the guest. The file
handles exposed to the guest will be renumbered to start
from 3 (ie immediately following stderr). This is only
supported for guests which use container based virtualization
technology.

If the VIR_DOMAIN_START_PAUSED flag is set, the guest domain
will be started, but its CPUs will remain paused. The CPUs
can later be manually started using virDomainResume.

If the VIR_DOMAIN_START_AUTODESTROY flag is set, the guest
domain will be automatically destroyed when the virConnectPtr
object is finally released. This will also happen if the
client application crashes / loses its connection to the
libvirtd daemon. Any domains marked for auto destroy will
block attempts at migration, save-to-file, or snapshots. z$virDomainCreateXMLWithFiles() failedrJ   )r   ZvirDomainCreateXMLWithFilesr   r   r   )r#   r   r  rH   rL   r   rn   r   createXMLWithFilesZvirConnect.createXMLWithFiles  s<    2 44TWWgeT;EFF$)r   c                sf   < V ^8  d   QhRS[ RS[ RS[S[RS[S[S[3,          3,          ,          /# )r   statsrH   r   r   )r(   r   r   r   r   r   r   r   r   r   r  >  sC     .J .Js .Js .J4k[_`ceh`h[iNiHjCk .Jr   c                s    \         P                  ! V P                  W4      pVf   \        R4      hV Uu. uF  p\	        W^ ,          R7      V^,          3NK!  	  up# u upi )a  Query statistics for all domains on a given connection.

Report statistics of various parameters for a running VM according to @stats
field. The statistics are returned as an array of structures for each queried
domain. The structure contains an array of typed parameters containing the
individual statistics. The typed parameter name for each statistic field
consists of a dot-separated string containing name of the requested group
followed by a group specific description of the statistic value.

The statistic groups are enabled using the @stats parameter which is a
binary-OR of enum virDomainStatsTypes. The following groups are available
(although not necessarily implemented for each hypervisor):

VIR_DOMAIN_STATS_STATE: Return domain state and reason for entering that
state. The typed parameter keys are in this format:
"state.state" - state of the VM, returned as int from virDomainState enum
"state.reason" - reason for entering given state, returned as int from
                 virDomain*Reason enum corresponding to given state.

Using 0 for @stats returns all stats groups supported by the given
hypervisor.

Specifying VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS as @flags makes
the function return error in case some of the stat types in @stats were
not recognized by the daemon.

Similarly to virConnectListAllDomains, @flags can contain various flags to
filter the list of domains to provide stats for.

VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE selects online domains while
VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE selects offline ones.

VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT and
VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT allow to filter the list
according to their persistence.

To filter the list of VMs by domain state @flags can contain
VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING,
VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED,
VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF and/or
VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER for all other states. z$virConnectGetAllDomainStats() failedrJ   )r   ZvirConnectGetAllDomainStatsr   r   r   )r#   r;  rH   rL   elemrg   r   getAllDomainStatsZvirConnect.getAllDomainStats>  sV    T 44TWWeK;EFFEHIST41g.Q8SIIIs   %Ac                sz   < V ^8  d   QhRS[ R,          RS[RS[RS[ S[RS[S[S[3,          3,          ,          /# )r   domsr   r;  rH   r   )r   r(   r   r   r   r   r   r   r   r   r  n  sl     (J (JtK'8 (J (JQT (J]abghsuyz}  @C  {C  vD  iD  cE  ^F (Jr   c                sd   \        4       pV F?  p\        V\        4      '       g   \        R4      hVP	                  VP
                  4       KA  	  \        P                  ! V P
                  WBV4      pVf   \        R4      hV Uu. uF  p\        W^ ,          R7      V^,          3NK!  	  up# u upi )ay  Query statistics for given domains.

Report statistics of various parameters for a running VM according to @stats
field. The statistics are returned as an array of structures for each queried
domain. The structure contains an array of typed parameters containing the
individual statistics. The typed parameter name for each statistic field
consists of a dot-separated string containing name of the requested group
followed by a group specific description of the statistic value.

The statistic groups are enabled using the @stats parameter which is a
binary-OR of enum virDomainStatsTypes. The following groups are available
(although not necessarily implemented for each hypervisor):

VIR_DOMAIN_STATS_STATE: Return domain state and reason for entering that
state. The typed parameter keys are in this format:
"state.state" - state of the VM, returned as int from virDomainState enum
"state.reason" - reason for entering given state, returned as int from
                 virDomain*Reason enum corresponding to given state.

Using 0 for @stats returns all stats groups supported by the given
hypervisor.

Specifying VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS as @flags makes
the function return error in case some of the stat types in @stats were
not recognized by the daemon.

Get statistics about domains provided as a list in @doms. @stats is
a bit field selecting requested statistics types.z(domain list contains non-domain elementszvirDomainListGetStats() failedrJ   )Zlistr`   r   r   Zappendr   r   ZvirDomainListGetStats)r#   r>  r;  rH   Zdomlistr  rL   r<  s   &&&&    r   domainListGetStatsZvirConnect.domainListGetStatsn  s    : &Cc9--"#MNNNN366"	  ..twwN;?@@EHIST41g.Q8SIIIs   %B-)r   r  r  r  r"  r)  r  r   )r    r    r    r  )NNNNr    r  r  )r8   r9   r:   r;   r!   r   r  r  r  r  r  r  r  r  r  r!  r  r#  r%  r'  r(  r)  r*  r+  r  r,  r.  r/  r0  r1  r2  r3  r4  r6  r7  r8  r9  r:  r;  r<  r=  r>  rR   r?  r@  rB  rC  rD  rE  rF  rG  rH  rI  rL  rM  rN  rP  rQ  rR  rS  rU  rV  rX  r[  r^  r_  ra  rb  rc  re  rf  rh  rj  rk  rl  rn  ro  rp  rq  rr  rs  rt  ru  rv  rw  rx  ry  r{  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r  r  r  r  r  r  r  r  r   r!  r#  r$  r'  r(  r*  r+  r,  r-  r.  r/  r0  r2  r3  r4  r7  r8  r9  r:  r=  r?  r<   r=   r>   r?   r   r   r   J  s    
6

 &	$@(&	
 	",					



	,
		&


		B,
 (
"4
			

 &2
 
   	M 	M        	 	                  	 	  	 	    	 	   	 	   	 	 @ @G GA AG GD DJ JQ QH H M M  >.J .J`(J (J (Jr   c                   s   a  ] tR tRt o RR ltR tR tR tRR ltR t	RR	 lt
R
 tRR ltR tR tR tR tR tR tR tR tR tR tRR ltRR ltRtV tR# )ri  i  Nc                r   r   r   r   r   r   r!   ZvirNodeDevice.__init__  r   r   c                r   r   )r   r   ZvirNodeDeviceFreer*   r+   r   r   ZvirNodeDevice.__del__  r  r   c                r   r   r   r*   r+   r   r   ZvirNodeDevice.connect  r   r   c                r   r   )r   ZvirNodeDevice_pointerr   r*   r+   r   r   ZvirNodeDevice.c_pointer  r  r   c                r   )z<Fetch an XML document describing all aspects of
the device. z virNodeDeviceGetXMLDesc() failed)r   ZvirNodeDeviceGetXMLDescr   r   r   r   r   r   ZvirNodeDevice.XMLDesc  r  r   c                r   )z.Extract the autostart flag for a node device. z"virNodeDeviceGetAutostart() failedrq   )r   ZvirNodeDeviceGetAutostartr   r   r   rQ   r   r   ZvirNodeDevice.autostart  r   r   c                r   )zStart a defined node device: zvirNodeDeviceCreate() failedrq   )r   ZvirNodeDeviceCreater   r   r   r   r   r   ZvirNodeDevice.create  r  r   c                r   )zDestroy the device object. The virtual device (only works for vHBA
currently) is removed from the host operating system.  This function
may require privileged access. zvirNodeDeviceDestroy() failedrq   )r   ZvirNodeDeviceDestroyr   r   r   rQ   r   r   ZvirNodeDevice.destroy  s0     --dgg6"9>??
r   c                r   )a  Detach the node device from the node itself so that it may be
assigned to a guest domain.

Depending on the hypervisor, this may involve operations such as
unbinding any device drivers from the device, binding the device to
a dummy device driver and resetting the device. Different backend
drivers expect the device to be bound to different dummy
devices. For example, QEMU's "kvm" backend driver (the default)
expects the device to be bound to "pci-stub", but its "vfio"
backend driver expects the device to be bound to "vfio-pci".

If the device is currently in use by the node, this method may
fail.

Once the device is not assigned to any guest, it may be re-attached
to the node using the virNodeDeviceReAttach() method. z!virNodeDeviceDetachFlags() failedrq   )r   ZvirNodeDeviceDetachFlagsr   r   )r#   Z
driverNamerH   rL   rM   r   detachFlagsZvirNodeDevice.detachFlags  s2    " 11$'':M"9BCC
r   c                r   )a  Detach the node device from the node itself so that it may be
assigned to a guest domain.

Depending on the hypervisor, this may involve operations such
as unbinding any device drivers from the device, binding the
device to a dummy device driver and resetting the device.

If the device is currently in use by the node, this method may
fail.

Once the device is not assigned to any guest, it may be re-attached
to the node using the virNodeDeviceReattach() method.

If the caller needs control over which backend driver will be used
during PCI device assignment (to use something other than the
default, for example VFIO), the newer virNodeDeviceDetachFlags()
API should be used instead. zvirNodeDeviceDettach() failedrq   )r   ZvirNodeDeviceDettachr   r   r   rQ   r   dettachZvirNodeDevice.dettach  s0    $ --dgg6"9>??
r   c                r   )z1Determine if the node device is currently active zvirNodeDeviceIsActive() failedrq   )r   ZvirNodeDeviceIsActiver   r   r   rQ   r   r  ZvirNodeDevice.isActive  r   r   c                r   )zpDetermine if the node device has a persistent configuration
which means it will still exist after shutting down z"virNodeDeviceIsPersistent() failedrq   )r   ZvirNodeDeviceIsPersistentr   r   r   rQ   r   r  ZvirNodeDevice.isPersistent
  s0     22477;"9CDD
r   c                r   )z$list the node device's capabilities zvirNodeDeviceListCaps() failed)r   ZvirNodeDeviceListCapsr   r   r   rQ   r   listCapsZvirNodeDevice.listCaps  r  r   c                r   )zJust return the device name )r   ZvirNodeDeviceGetNamer   r   rQ   r   rO   ZvirNodeDevice.name!  s    --dgg6
r   c                r   )zAAccessor for the number of capabilities supported by the device. zvirNodeDeviceNumOfCaps() failedrq   )r   ZvirNodeDeviceNumOfCapsr   r   r   rQ   r   	numOfCapsZvirNodeDevice.numOfCaps&  r  r   c                r   )z&Accessor for the parent of the device )r   ZvirNodeDeviceGetParentr   r   rQ   r   parentZvirNodeDevice.parent-  s    //8
r   c                r   )aQ  Re-attach a previously detached node device to the node so that it
may be used by the node again.

Depending on the hypervisor, this may involve operations such
as resetting the device, unbinding it from a dummy device driver
and binding it to its appropriate driver.

If the device is currently in use by a guest, this method may fail. zvirNodeDeviceReAttach() failedrq   )r   ZvirNodeDeviceReAttachr   r   r   rQ   r   reAttachZvirNodeDevice.reAttach2  s0     ..tww7"9?@@
r   c                r   )a  Reset a previously detached node device to the node before or
after assigning it to a guest.

The exact reset semantics depends on the hypervisor and device
type but, for example, KVM will attempt to reset PCI devices with
a Function Level Reset, Secondary Bus Reset or a Power Management
D-State reset.

If the reset will affect other devices which are currently in use,
this function may fail. zvirNodeDeviceReset() failedrq   )r   ZvirNodeDeviceResetr   r   r   rQ   r   r]  ZvirNodeDevice.reset@  s0     ++DGG4"9<==
r   c                r   )zzConfigure the node device to be automatically started when the host machine
boots or the parent device becomes available. z"virNodeDeviceSetAutostart() failedrq   )r   ZvirNodeDeviceSetAutostartr   r   rq  r   r   rr  ZvirNodeDevice.setAutostartP  s2     22477IF"9CDD
r   c                r   )zUndefine the device object. The virtual device  is removed from the host
operating system.  This function may require privileged access. zvirNodeDeviceUndefine() failedrq   )r   ZvirNodeDeviceUndefiner   r   r   r   r   r  ZvirNodeDevice.undefineX  s2     ..tww>"9?@@
r   c                r   )zUpdate the definition of an existing node device, either its live running
configuration, its persistent configuration, or both. zvirNodeDeviceUpdate() failedrq   )r   ZvirNodeDeviceUpdater   r   r  rM   r   r  ZvirNodeDevice.update`  s2     ,,TWWgE"9=>>
r   r  r   r  )r8   r9   r:   r;   r!   r   r   r   r   r   r   r   r@  rA  r  r  rB  rO   rC  rD  rE  r]  rr  r  r  r<   r=   r>   r?   r   ri  ri    ss     
9,.

  r   ri  c                   sx   a  ] tR tRt o RR ltR tR tR tR tR t	RR	 lt
RR
 ltR tR tR tRR ltRtV tR# )r  ih  Nc                r   r   r   r   r   r   r!   ZvirSecret.__init__i  r   r   c                r   r   )r   r   ZvirSecretFreer*   r+   r   r   ZvirSecret.__del__o  r   r   c                r   r   r   r*   r+   r   r   ZvirSecret.connectt  r   r   c                r   r   )r   ZvirSecret_pointerr   r*   r+   r   r   ZvirSecret.c_pointerw  r   r   c                r   )z0Extract the UUID unique Identifier of a secret. zvirSecretGetUUID() failed)r   ZvirSecretGetUUIDr   r   r   rQ   r   r   ZvirSecret.UUID  r   r   c                r   )z4Fetch globally unique ID of the secret as a string. zvirSecretGetUUIDString() failed)r   ZvirSecretGetUUIDStringr   r   r   rQ   r   r   ZvirSecret.UUIDString  r   r   c                r   )z=Fetches an XML document describing attributes of the secret. zvirSecretGetXMLDesc() failed)r   ZvirSecretGetXMLDescr   r   r   r   r   r   ZvirSecret.XMLDesc  s.    ,,TWWe<;=>>
r   c                r   )z"Associates a value with a secret. zvirSecretSetValue() failedrq   )r   ZvirSecretSetValuer   r   )r#   valuerH   rL   rM   r   setValueZvirSecret.setValue  s0    **477EA"9;<<
r   c                r   )zVDeletes the specified secret.  This does not free the associated
virSecretPtr object. zvirSecretUndefine() failedrq   )r   ZvirSecretUndefiner   r   r   rQ   r   r  ZvirSecret.undefine  s0     **4773"9;<<
r   c                r   )a  Get the unique identifier of the object with which this
secret is to be used. The format of the identifier is
dependent on the usage type of the secret. For a secret
with a usage type of VIR_SECRET_USAGE_TYPE_VOLUME the
identifier will be a fully qualified path name. The
identifiers are intended to be unique within the set of
all secrets sharing the same usage type. ie, there shall
only ever be one secret for each volume path. )r   ZvirSecretGetUsageIDr   r   rQ   r   r  ZvirSecret.usageID  s     ,,TWW5
r   c                r   )a  Get the type of object which uses this secret. The returned
value is one of the constants defined in the virSecretUsageType
enumeration. More values may be added to this enumeration in
the future, so callers should expect to see usage types they
do not explicitly know about. )r   ZvirSecretGetUsageTyper   r   rQ   r   r  ZvirSecret.usageType  s     ..tww7
r   c                r   )z,Fetches the value associated with a secret. zvirSecretGetValue() failed)r   ZvirSecretGetValuer   r   r   r   r   rF  ZvirSecret.value  r  r   r  r   r  )r8   r9   r:   r;   r!   r   r   r   r   r   r   rG  r  r  r  rF  r<   r=   r>   r?   r   r  r  h  sF     
5
 r   r  c                   s^   a  ] tR tRt o RR ltR tR tR tR tR t	RR	 lt
R
 tR tRtV tR# )r~  i  Nc                r   r   r   r   r   r   r!   ZvirNWFilter.__init__  r   r   c                r   r   )r   r   ZvirNWFilterFreer*   r+   r   r   ZvirNWFilter.__del__  s%    77&&tww/r   c                r   r   r   r*   r+   r   r   ZvirNWFilter.connect  r   r   c                r   r   )r   ZvirNWFilter_pointerr   r*   r+   r   r   ZvirNWFilter.c_pointer  s    --dgg66r   c                r   )z8Extract the UUID unique Identifier of a network filter. zvirNWFilterGetUUID() failed)r   ZvirNWFilterGetUUIDr   r   r   rQ   r   r   ZvirNWFilter.UUID  r   r   c                r   )z<Fetch globally unique ID of the network filter as a string. z!virNWFilterGetUUIDString() failed)r   ZvirNWFilterGetUUIDStringr   r   r   rQ   r   r   ZvirNWFilter.UUIDString  rO  r   c                r   )Provide an XML description of the network filter. The description may be
reused later to redefine the network filter with virNWFilterCreateXML(). zvirNWFilterGetXMLDesc() failed)r   ZvirNWFilterGetXMLDescr   r   r   r   r   r   ZvirNWFilter.XMLDesc  s0     ..tww>;?@@
r   c                r   )z+Get the public name for the network filter )r   ZvirNWFilterGetNamer   r   rQ   r   rO   ZvirNWFilter.name   s    ++DGG4
r   c                r   )zUndefine the nwfilter object. This call will not succeed if
a running VM is referencing the filter. This does not free the
associated virNWFilterPtr object. zvirNWFilterUndefine() failedrq   )r   ZvirNWFilterUndefiner   r   r   rQ   r   r  ZvirNWFilter.undefine  s0     ,,TWW5"9=>>
r   r  r   r  )r8   r9   r:   r;   r!   r   r   r   r   r   r   rO   r  r<   r=   r>   r?   r   r~  r~    s7     
7
 r   r~  c                   sX   a  ] tR tRt o RR ltR tR tR tRR ltR t	R	 t
R
 tRtV tR# )rz  i  Nc                r   r   r   r   r   r   r!   ZvirNWFilterBinding.__init__  r   r   c                r   r   )r   r   ZvirNWFilterBindingFreer*   r+   r   r   ZvirNWFilterBinding.__del__  s%    77--dgg6r   c                r   r   r   r*   r+   r   r   ZvirNWFilterBinding.connect  r   r   c                r   r   )r   ZvirNWFilterBinding_pointerr   r*   r+   r   r   ZvirNWFilterBinding.c_pointer  s    44TWW==r   c                r   )rH  z%virNWFilterBindingGetXMLDesc() failed)r   ZvirNWFilterBindingGetXMLDescr   r   r   r   r   r   ZvirNWFilterBinding.XMLDesc%  s0     55dgguE;FGG
r   c                r   )av  Delete the binding object. This does not free the
associated virNWFilterBindingPtr object. This API
may be used to remove the network port binding filter
currently in use for the guest while the guest is
running without needing to restart the guest. Restoring
the network port binding filter for the running guest
would be accomplished by using virNWFilterBindingCreateXML. z!virNWFilterBindingDelete() failedrq   )r   ZvirNWFilterBindingDeleter   r   r   rQ   r   r  ZvirNWFilterBinding.delete-  s0     11$'':"9BCC
r   c                r   )z3Get the filter name for the network filter binding )r   ZvirNWFilterBindingGetFilterNamer   r   rQ   r   
filterNameZvirNWFilterBinding.filterName:  s    88A
r   c                r   )z5Get the port dev name for the network filter binding )r   ZvirNWFilterBindingGetPortDevr   r   rQ   r   portDevZvirNWFilterBinding.portDev?  s    55dgg>
r   r  r   r  )r8   r9   r:   r;   r!   r   r   r   r   r  rI  rJ  r<   r=   r>   r?   r   rz  rz    s2     
>
 r   rz  c                   s2  a  ] tR tRt o R#R ltR tR tR tR tR t	R	 t
V 3R
 lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltR$V 3R lR lltR$V 3R lR lltR$V 3R lR lltV 3R lR ltV 3R  lR! ltR"tV tR# )%rg  iD  Nc                r   r   r   r   r   r   r!   ZvirStream.__init__E  r   r   c                r   r   r   r*   r+   r   r   ZvirStream.connectK  r   r   c                r   r   )r   ZvirStream_pointerr   r*   r+   r   r   ZvirStream.c_pointerN  r   r   c                r   )ay  Request that the in progress data transfer be cancelled
abnormally before the end of the stream has been reached.
For output streams this can be used to inform the driver
that the stream is being terminated early. For input
streams this can be used to inform the driver that it
should stop sending data.

If the stream is non-blocking, any callback must be removed
beforehand. zvirStreamAbort() failedrq   )r   ZvirStreamAbortr   r   r   rQ   r   abortZvirStream.abortV  s0     ''0"9899
r   c                r   )z)Remove an event callback from the stream z%virStreamEventRemoveCallback() failedrq   )r   virStreamEventRemoveCallbackr   r   r   rQ   r   eventRemoveCallbackZvirStream.eventRemoveCallbacke  s.    55dgg>"9FGG
r   c                r   )zChanges the set of events to monitor for a stream. This allows
for event notification to be changed without having to
unregister & register the callback completely. This method
is guaranteed to succeed if a callback is already registered z%virStreamEventUpdateCallback() failedrq   )r   ZvirStreamEventUpdateCallbackr   r   )r#   ri   rL   r   r   eventUpdateCallbackZvirStream.eventUpdateCallbackl  s2    
 55dggvF"9FGG
r   c                r   )a  Indicate that there is no further data to be transmitted
on the stream. For output streams this should be called once
all data has been written. For input streams this should be
called once virStreamRecv returns end-of-file.

This method is a synchronization point for all asynchronous
errors, so if this returns a success code the application can
be sure that all data has been successfully processed.

If the stream is non-blocking, any callback must be removed
beforehand. zvirStreamFinish() failedrq   )r   ZvirStreamFinishr   r   r   rQ   r   finishZvirStream.finishv  s0     ((1"99::
r   c                r  r  rZ   r   r   r   r   virStream.__annotate__  s     	 	 	r   c                s     V P                   '       d!   \        P                  ! V P                  4       T P                  e!   \        P
                  ! T P                  4       R T n        R #   \         d     LDi ; ir   )rm   r   rL  r   r  ZvirStreamFreer*   r+   r   r   ZvirStream.__del__  s[    	www77@ 77$$TWW-  		s   A+  A+ +A98A9c                r5  )r   ri   rj   r   rk   r   r   r   r   rP    s+      3 S#X SV r   c                r6  )z;
Dispatches events to python user's stream event callbacks
rm   rV   rZ   )r#   ri   rj   rm   rV   rg   r   _dispatchStreamEventCallbackZ&virStream._dispatchStreamEventCallback  s$     D\!
4 r   c                sL   < V ^8  d   QhRS[ RS[RS[ S[.R3,          RS[RR/# )r   ri   rm   rg  NrV   r   )r(   r   r   r   r   r   r   rP    sC     E Es E+sB9OQU9U0V E`b Egk Er   c                s    W n         R V RVRV/p\        P                  ! V P                  W4      pVR8X  d   \	        R4      hR# )ri  rm   rV   z"virStreamEventAddCallback() failedNrq   )rm   r   ZvirStreamEventAddCallbackr   r   )r#   ri   rm   rV   rj   rL   rn   r   eventAddCallbackZvirStream.eventAddCallback  sG    D$Hf=22477FK"9CDD r   c                H   < V ^8  d   QhRS[ RS[S[.S[3,          RS[RR/# r   handlerrg  rV   r   N)r   bytesr   r(   r   r   r   r   rP    s5      xeR(@#(EF PR W[ r   c                sh    V P                  \        P                  4      pVR8X  d   \        R4      h\	        V4      ^ 8X  d   R#  V! WV4      p\        V\        4      '       d   V^ 8  d   \        RV,          4      hK  K    \         d%     T P                  4        h   \         d     h i ; ii ; i)a  Receive the entire data stream, sending the data to the
requested data sink. This is simply a convenient alternative
to virStreamRecv, for apps that do blocking-I/O.

A hypothetical handler function looks like:

    def handler(stream, # virStream instance
                buf,    # string containing received data
                opaque): # extra data passed to recvAll as opaque
        fd = opaque
        return os.write(fd, buf)
z*cannot use recvAll with nonblocking streamzrecvAll handler returned %dN)recvr  r  r   r  r`   r(   RuntimeErrorr  rK  r    r#   rU  rV   gotrL   rg   r   recvAllZvirStream.recvAll  s     ))M778Cby" $8 9 93x1}	d0c3''C!G&'Ds'JKK -4'  JJL  ! s0   8B B1BB1B-*B1,B--B1c                rS  rT  )r   r(   r   rV  r   r   r   r   rP    s5     9 9xc2(>(EF 9PR 9W[ 9r   c                s      V! V \         P                  V4      pT'       g   R# T P                  T4      pTR8X  g   K>  \        R4      h  \         d%     T P                  4        h   \         d     h i ; ii ; i)a  
Send the entire data stream, reading the data from the
requested data source. This is simply a convenient alternative
to virStreamSend, for apps that do blocking-I/O.

A hypothetical handler function looks like:

    def handler(stream, # virStream instance
                nbytes, # int amt of data to read
                opaque): # extra data passed to recvAll as opaque
        fd = opaque
        return os.read(fd, nbytes)
z*cannot use sendAll with nonblocking streamNrW  )r  r  r  rK  r    sendr   rZ  rg   r   sendAllZvirStream.sendAll  s     dM$?$?H ))C.Cby" $8 9 9 ! JJL  ! s/   A
 
A9A'&A9'A52A94A55A9c                &   < V ^8  d   QhRS[ RS[/# )r   nbytesr   )r(   rV  r   r   r   r   rP    s      3 5 r   c                r   )a  Reads a series of bytes from the stream. This method may
block the calling application for an arbitrary amount
of time.

Errors are not guaranteed to be reported synchronously
with the call, but may instead be delayed until a
subsequent call.

On success, the received data is returned. On failure, an
exception is raised. If the stream is a NONBLOCK stream and
the request would block, integer -2 is returned.
zvirStreamRecv() failed)r   ZvirStreamRecvr   r   )r#   r`  rL   r   r   rX  ZvirStream.recv  s0     &&tww7;788
r   c                r_  )r   datar   )rV  r(   r   r   r   r   rP    s       3 r   c                r   )a  Write a series of bytes to the stream. This method may
block the calling application for an arbitrary amount
of time. Once an application has finished sending data
it should call virStreamFinish to wait for successful
confirmation from the driver, or detect any error

This method may not be used if a stream source has been
registered

Errors are not guaranteed to be reported synchronously
with the call, but may instead be delayed until a
subsequent call.
zvirStreamSend() failedrq   )r   ZvirStreamSendr   r   )r#   ra  rL   r   r   r]  ZvirStream.send  s2     &&tww5"9788
r   c                r  r  r  r   r   r   r   rP    s     	 	c 	# 	r   c                r   )zThis method is used to determine the length in bytes
of the empty space to be created in a stream's target
file when uploading or downloading sparsely populated
files. This is the counterpart to sendHole.
zvirStreamRecvHole() failed)r   ZvirStreamRecvHoler   r   r   r   r   recvHoleZvirStream.recvHole  s0     **477E:;;<<
r   c                r  )r   r  rH   r   r  r   r   r   r   rP    s"     
 
s 
3 
s 
r   c                r   )zRather than transmitting empty file space, this method
directs the stream target to create length bytes of empty
space.  This method would be used when uploading or
downloading sparsely populated files to avoid the
needless copy of empty file space.
zvirStreamSendHole() failedrq   )r   ZvirStreamSendHoler   r   )r#   r  rH   rL   rM   r   sendHoleZvirStream.sendHole  s2     **477FB"9;<<
r   c                sB   < V ^8  d   QhRS[ RS[ RS[S[S[ 3,          /# )r   r`  rH   r   )r(   r   rV  r   r   r   r   rP  "  s+       C eSj8I r   c                r   )a  Reads a series of bytes from the stream. This method may
block the calling application for an arbitrary amount
of time. This is just like recv except it has flags
argument.

Errors are not guaranteed to be reported synchronously
with the call, but may instead be delayed until a
subsequent call.

On success, the received data is returned. On failure, an
exception is raised. If the stream is a NONBLOCK stream and
the request would block, integer -2 is returned.
zvirStreamRecvFlags() failed)r   ZvirStreamRecvFlagsr   r   )r#   r`  rH   rL   rM   r   	recvFlagsZvirStream.recvFlags"  s0     ++DGGVC;<==
r   c                s   < V ^8  d   QhRS[ RS[S[.S[S[S[3,          3,          RS[ RS[S[.S[S[,          3,          RS[RR/# )r   rU  rg  holeHandlerrV   r   N)r   rV  r   r   r(   r   r   r   r   r   rP  5  s     2S 2SX{E2.FeUXjHY.Y%Z 2Siqs~  AD  FH  sI  KS  TW  KX  sX  jY 2S  ce 2S  jn 2Sr   c                s    \         P                  pV P                  V\        4      pVR8X  d   \	        R4      hVR8X  dz   V P                  4       pVf   V P                  4        \        R4      hV! WV4      p\        V\        4      '       d*   V^ 8  d#   V P                  4        \        RV,          4      hK  \        V\        4      '       d   \        V4      h\        V\        4      '       g   \        \        V4      4      h\        V4      ^ 8X  d   R# V! WV4      p\        V\        4      '       g   EK8  V^ 8  g   EKB  V P                  4        \        RV,          4      h)a  Receive the entire data stream, sending the data to
the requested data sink handler and calling the skip
holeHandler to generate holes for sparse stream targets.
This is simply a convenient alternative to recvFlags, for
apps that do blocking-I/O and want to preserve sparseness.

Hypothetical callbacks can look like this:

    def handler(stream, # virStream instance
                buf,    # string containing received data
                opaque): # extra data passed to sparseRecvAll as opaque
        fd = opaque
        return os.write(fd, buf)

    def holeHandler(stream, # virStream instance
                    length, # number of bytes to skip
                    opaque): # extra data passed to sparseRecvAll as opaque
        fd = opaque
        cur = os.lseek(fd, length, os.SEEK_CUR)
        return os.ftruncate(fd, cur) # take this extra step to
                                     # actually allocate the hole
z0cannot use sparseRecvAll with nonblocking streamNzrecvHole handler failedzholeHandler handler returned %dz!sparseRecvAll handler returned %drW  i)r  r  rd  VIR_STREAM_RECV_STOP_AT_HOLEr   rb  rK  rY  r`   r(   Z
ValueErrorrV  Z	TypeErrorr   r  )	r#   rU  re  rV   wantr[  r  Zret_holeZret_datas	   &&&&     r   sparseRecvAllZvirStream.sparseRecvAll5  s   .  ..D..'CDCby" $8 9 9>JJL&'@AA&tV<h,,AJJL&'H8'STTC%% o%U++S	**3x1}t&1H(C((X\

"#F#QRRr   c          
      s   < V ^8  d   QhRS[ RS[S[.S[S[S[3,          3,          RS[ RS[.S[S[S[3,          3,          RS[ RS[S[.S[3,          RS[RR/# )r   rU  rg  re  skipHandlerrV   r   N)r   r(   r   r   rV  r   Zboolr   r   r   r   rP  i  s     69 69X{C.DeESVJFW.W%X 69goq|  A  qB  DI  JN  PS  JS  DT  qT  hU 69  dl  ny  {~  @B  mC  EH  mH  dI 69  SU 69  Z^ 69r   c                s    V! W4      w  rVV'       g>   V^ 8  d7   V P                  V4      ^ 8  g   V! WV4      ^ 8  d   V P                  4        KP  \        P                  pWv8  d   TpV! WV4      p\	        V\
        4      '       d*   V^ 8  d#   V P                  4        \        RV,          4      hV'       g   R# \	        V\        4      '       g   Q hV P                  V4      p	V	R8X  g   K  \        R4      h)aS  Send the entire data stream, reading the data from the
requested data source. This is simply a convenient
alternative to virStreamSend, for apps that do
blocking-I/O and want to preserve sparseness.

Hypothetical callbacks can look like this:

    def handler(stream, # virStream instance
                nbytes, # int amt of data to read
                opaque): # extra data passed to sparseSendAll as opaque
        fd = opaque
        return os.read(fd, nbytes)

    def holeHandler(stream, # virStream instance
                    opaque): # extra data passed to sparseSendAll as opaque
        fd = opaque
        cur = os.lseek(fd, 0, os.SEEK_CUR)
        # ... find out current section and its boundaries
        # and set inData = True/False and sectionLen correspondingly
        os.lseek(fd, cur, os.SEEK_SET)
        return [inData, sectionLen]

    def skipHandler(stream, # virStream instance
                    length, # number of bytes to skip
                    opaque): # extra data passed to sparseSendAll as opaque
        fd = opaque
        return os.lseek(fd, length, os.SEEK_CUR)

z!sparseSendAll handler returned %dz0cannot use sparseSendAll with nonblocking streamNrW  )
rc  rK  r  r  r`   r(   rY  rV  r]  r   )
r#   rU  re  ri  rV   ZinDataZ
sectionLenrg  r[  rL   s
   &&&&&     r   sparseSendAllZvirStream.sparseSendAlli  s    < #.t#< Vj1nMM*-1#Df=AJJL ..D!!$f-C#s##a

"#F#LMMc5))))))C.Cby" $8 9 9r   )r   r   rm   r   r  )r8   r9   r:   r;   r!   r   r   rK  rM  rN  rO  r   rQ  rR  r\  r^  rX  r]  rb  rc  rd  rh  rj  r<   r=   r>   r?   r   rg  rg  D  s     5(	 	 E E @9 9@ $ &	 	
 
 &2S 2Sh69 69r   rg  c                   s   a  ] tR tRt o RR ltR tR tR tR tRR lt	R	 t
RR
 ltRR ltV 3R lR ltV 3R lR ltRV 3R lR lltRtV tR# )r   i  Nc                r  r   _domr   r   r   r8   r    r   r#   r  rK   r   r   r!   ZvirDomainCheckpoint.__init__  r  r   c                r   r   )r   r   ZvirDomainCheckpointFreer*   r+   r   r   ZvirDomainCheckpoint.__del__  s%    77..tww7r   c                r   r   r   r*   r+   r   r   ZvirDomainCheckpoint.connect  r   r   c                r   r   rl  r*   r+   r   domainZvirDomainCheckpoint.domain  r  r   c                r   r   )r   ZvirDomainCheckpoint_pointerr   r*   r+   r   r   ZvirDomainCheckpoint.c_pointer  s    55dgg>>r   c                r   )a  Removes a checkpoint from the domain.

When removing a checkpoint, the record of which portions of the
disk were dirtied after the checkpoint will be merged into the
record tracked by the parent checkpoint, if any.

If @flags includes VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN, then any
descendant checkpoints are also deleted. If @flags includes
VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY, then any descendant
checkepoints are deleted, but this checkpoint remains. These two
flags are mutually exclusive.

If @flags includes VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY, then
any checkpoint metadata tracked by libvirt is removed while keeping
the checkpoint contents intact; if a hypervisor does not require
any libvirt metadata to track checkpoints, then this flag is
silently ignored. z"virDomainCheckpointDelete() failedrq   )r   ZvirDomainCheckpointDeleter   r   r   r   r   r  ZvirDomainCheckpoint.delete  s2    $ 22477EB"9CDD
r   c                r   )z(Get the public name for that checkpoint z#virDomainCheckpointGetName() failed)r   ZvirDomainCheckpointGetNamer   r   r   rQ   r   getNameZvirDomainCheckpoint.getName  rT  r   c                r  )zGet the parent checkpoint for @checkpoint, if any.

virDomainCheckpointFree should be used to free the resources after the
checkpoint object is no longer needed. z%virDomainCheckpointGetParent() failedrJ   )r   ZvirDomainCheckpointGetParentr   r   r   rl  )r#   rH   rL   Z_virDomainCheckpoint__tmpr$   r   	getParentZvirDomainCheckpoint.getParent  s@    
 55dgguE;FGG#DIIC8r   c                r   )a  Provide an XML description of the domain checkpoint.

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_CHECKPOINT_XML_SECURE; this flag is rejected on read-only
connections.

Normally, the XML description includes an element giving a full
description of the domain at the time the checkpoint was created; to
reduce parsing time, it will be suppressed when @flags contains
VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN.

By default, the XML description contains only static information that
does not change over time. However, when @flags contains
VIR_DOMAIN_CHECKPOINT_XML_SIZE, each <disk> listing adds an additional
attribute that shows an estimate of the current size in bytes that
have been dirtied between the time the checkpoint was created and the
current point in time. Note that updating the size may be expensive and
data will be inaccurate once guest OS writes to the disk. Also note that
hypervisors may require that the domain associated with @checkpoint is
running when VIR_DOMAIN_CHECKPOINT_XML_SIZE is used. z&virDomainCheckpointGetXMLDesc() failed)r   ZvirDomainCheckpointGetXMLDescr   r   r   r   r   
getXMLDescZvirDomainCheckpoint.getXMLDesc  s0    * 66twwF;GHH
r   c                r  r  rZ   r   r   r   r    virDomainCheckpoint.__annotate__        L r   c                "    V P                  4       # )zIGet the connection that owns the domain that a checkpoint was created forr   r*   r+   r   
getConnectZvirDomainCheckpoint.getConnect      ||~r   c                r  r   r   r   rZ   r   r   r   r   rs          ; r   c                ru  )z0Get the domain that a checkpoint was created forro  r*   r+   r   	getDomainZvirDomainCheckpoint.getDomain      {{}r   c                r  r  r  r   r   r   r   rs  
  s%     S SS S6K1L Sr   c                    \         P                  ! V P                  V4      pVf   \        R4      hV Uu. uF  p\	        V P                  4       VR7      NK   	  up# u upi )zCList all child checkpoints and returns a list of checkpoint objectsz+virDomainCheckpointListAllChildren() failedrJ   )r   Z"virDomainCheckpointListAllChildrenr   r   r   ro  r  r$   r   listAllChildrenZ#virDomainCheckpoint.listAllChildren
  sO    ;;DGGUK;LMMNQRcF#DKKM?cRRR   $Ar   rl  r   r   r  )r8   r9   r:   r;   r!   r   r   ro  r   r  rp  rq  rr  rw  r|  r  r<   r=   r>   r?   r   r   r     sX     
?.	:  S S Sr   r   c                   s   a  ] tR tRt o RR ltR tR tR tR tRR lt	R	 t
RR
 ltRR ltRR ltRR ltRR ltRR ltV 3R lR ltV 3R lR ltRV 3R lR lltRtV tR# )r  i  Nc                r  r   rk  rm  r   r   r!   ZvirDomainSnapshot.__init__  r  r   c                r   r   )r   r   ZvirDomainSnapshotFreer*   r+   r   r   ZvirDomainSnapshot.__del__  s%    77,,TWW5r   c                r   r   r   r*   r+   r   r   ZvirDomainSnapshot.connect  r   r   c                r   r   rn  r*   r+   r   ro  ZvirDomainSnapshot.domain"  r  r   c                r   r   )r   ZvirDomainSnapshot_pointerr   r*   r+   r   r   ZvirDomainSnapshot.c_pointer%  s    33DGG<<r   c                r   )a7  Delete the snapshot.

If @flags is 0, then just this snapshot is deleted, and changes
from this snapshot are automatically merged into children
snapshots.  If @flags includes VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN,
then this snapshot and any descendant snapshots are deleted.  If
@flags includes VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY, then any
descendant snapshots are deleted, but this snapshot remains.  These
two flags are mutually exclusive.

If @flags includes VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY, then
any snapshot metadata tracked by libvirt is removed while keeping
the snapshot contents intact; if a hypervisor does not require any
libvirt metadata to track snapshots, then this flag is silently
ignored.

Since libvirt 9.0.0 deletion of external snapshots is supported
for QEMU driver. Using @flags VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN
and VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY is not supported with
external snapshots. In case that daemon process is terminated
while the snapshot delete is in process the operation will be
aborted when the daemon starts again. z virDomainSnapshotDelete() failedrq   )r   ZvirDomainSnapshotDeleter   r   r   r   r   r  ZvirDomainSnapshot.delete-  s2    . 00%@"9ABB
r   c                r   )z&Get the public name for that snapshot z!virDomainSnapshotGetName() failed)r   ZvirDomainSnapshotGetNamer   r   r   rQ   r   rp  ZvirDomainSnapshot.getNameI  rO  r   c                r  )zGet the parent snapshot for @snapshot, if any.

virDomainSnapshotFree should be used to free the resources after the
snapshot object is no longer needed. z#virDomainSnapshotGetParent() failedrJ   )r   ZvirDomainSnapshotGetParentr   r   r  rl  )r#   rH   rL   Z_virDomainSnapshot__tmpr$   r   rq  ZvirDomainSnapshot.getParentP  s@    
 33DGGUC;DEE!$))#6r   c                r   )zProvide an XML description of the domain snapshot, with a top-level
element of <domainsnapshot>.

No security-sensitive data will be included unless @flags contains
VIR_DOMAIN_SNAPSHOT_XML_SECURE; this flag is rejected on read-only
connections. z$virDomainSnapshotGetXMLDesc() failed)r   ZvirDomainSnapshotGetXMLDescr   r   r   r   r   rr  ZvirDomainSnapshot.getXMLDesc[  s0     44TWWeD;EFF
r   c                r   )zsDetermine if the given snapshot is associated with libvirt metadata
that would prevent the deletion of the domain. z%virDomainSnapshotHasMetadata() failedrq   )r   ZvirDomainSnapshotHasMetadatar   r   r   r   r   hasMetadataZvirDomainSnapshot.hasMetadatag  s2     55dgguE"9FGG
r   c                r   )zkDetermine if the given snapshot is the domain's current snapshot.  See
also virDomainHasCurrentSnapshot(). z#virDomainSnapshotIsCurrent() failedrq   )r   ZvirDomainSnapshotIsCurrentr   r   r   r   r   	isCurrentZvirDomainSnapshot.isCurrento  s2     33DGGUC"9DEE
r   c                r   )z@collect the list of child snapshot names for the given snapshot z+virDomainSnapshotListChildrenNames() failed)r   Z"virDomainSnapshotListChildrenNamesr   r   r   r   r   listChildrenNamesZ#virDomainSnapshot.listChildrenNames{  s.    ;;DGGUK;LMM
r   c                r   )a  Provides the number of child snapshots for this domain snapshot.

This function will accept VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL in
@flags only if virDomainSnapshotListChildrenNames() can honor it,
although the flag has no other effect here.

By default, this command covers only direct children. It is also
possible to expand things to cover all descendants, when @flags
includes VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS. Additional filters
are provided via the same @flags values as documented in
virDomainSnapshotListAllChildren(). z%virDomainSnapshotNumChildren() failedrq   )r   ZvirDomainSnapshotNumChildrenr   r   r   r   r   numChildrenZvirDomainSnapshot.numChildren  s2     55dgguE"9FGG
r   c                r  r  rZ   r   r   r   r   virDomainSnapshot.__annotate__  rt  r   c                ru  )zGGet the connection that owns the domain that a snapshot was created forrv  r*   r+   r   rw  ZvirDomainSnapshot.getConnect  rx  r   c                r  ry  rZ   r   r   r   r   r    rz  r   c                ru  )z.Get the domain that a snapshot was created forr{  r*   r+   r   r|  ZvirDomainSnapshot.getDomain  r}  r   c                r  r  r  r   r   r   r   r    s%     S SS S6I1J Sr   c                r~  )z?List all child snapshots and returns a list of snapshot objectsz)virDomainSnapshotListAllChildren() failedrJ   )r   Z virDomainSnapshotListAllChildrenr   r   r  ro  r  r$   r   r  Z!virDomainSnapshot.listAllChildren  sO    99$''5I;JKKNQRc7!$++-g>cRRRr  r  r   r  )r8   r9   r:   r;   r!   r   r   ro  r   r  rp  rq  rr  r  r  r  r  rw  r|  r  r<   r=   r>   r?   r   r  r    sl     
=8	
(  S S Sr   r  i    i   @l        i   i   i   i   i   i    i @  i   i   i   i   i   i   i    i  @ i   i   z
group-namez
process-idzprocess-timezsasl-user-namezselinux-contextzunix-group-idzunix-user-idz	user-namezx509-distinguished-namezinbound.averagezinbound.burstzinbound.floorzinbound.peakzoutbound.averagezoutbound.burstzoutbound.peakZdevice_read_bytes_secZdevice_read_iops_secZdevice_weightZdevice_write_bytes_secZdevice_write_iops_secZweightr   zbuf-sizeZgranularityZ
group_nameZread_bytes_secZread_bytes_sec_maxZread_bytes_sec_max_lengthZread_iops_secZread_iops_sec_maxZread_iops_sec_max_lengthZsize_iops_secZtotal_bytes_secZtotal_bytes_sec_maxZtotal_bytes_sec_max_lengthZtotal_iops_secZtotal_iops_sec_maxZtotal_iops_sec_max_lengthZwrite_bytes_secZwrite_bytes_sec_maxZwrite_bytes_sec_max_lengthZwrite_iops_secZwrite_iops_sec_maxZwrite_iops_sec_max_lengthZerrsZflush_operationsZflush_total_timesZrd_bytesZrd_operationsZrd_total_timesZwr_bytesZwr_operationsZwr_total_timesZcpu_timeZsystem_timeZ	user_timeZ	vcpu_timez
disk.countzdisk.z.aliasz.dependency.countz.dependency.z.namez.guest_aliasz
.guest_busz
.partitionz.serialzfs.countzfs.z.disk.countz.disk.z.devicez.fstypez.mountpointz.total-bytesz.used-bytesr  zif.countzif.z.addr.countz.addr.z.addrz.prefixz.typez.hwaddrzload.15mzload.1mzload.5mzos.idzos.kernel-releasezos.kernel-versionz
os.machinezos.namezos.pretty-namez
os.variantzos.variant-idz
os.versionzos.version-idztimezone.nameztimezone.offsetz
user.countzuser.z.domainz.login-timeZ	poll_growZpoll_max_nsZpoll_shrinkZthread_pool_maxZthread_pool_minZauto_converge_throttleZcompression_bytesZcompression_cacheZcompression_cache_missesZcompression_overflowZcompression_pagesZdata_processedZdata_remainingZ
data_totalZdisk_bpsZdisk_processedZdisk_remainingZdisk_temp_totalZdisk_temp_usedZ
disk_totalr;  Zdowntime_netZerrmsgZ
memory_bpsZmemory_constantZmemory_dirty_rateZmemory_iterationZmemory_normalZmemory_normal_bytesZmemory_page_sizeZmemory_postcopy_requestsZmemory_processedZmemory_remainingZmemory_totalZ	operationZ
setup_timeZsuccessZtime_elapsedZtime_elapsed_netZtime_remainingZvfio_data_transferredzsev-api-majorzsev-api-minorzsev-build-idzsev-measurementz
sev-policyz
sev-secretzsev-secret-headerzsev-secret-set-addresszsev-snp-policyZ
hard_limitZmin_guaranteeZ
soft_limitZswap_hard_limitZ	numa_modeZnuma_nodesetr!  r  Zimage_formatzparallel.channelsrK  Z
cpu_sharesZemulator_periodZemulator_quotaZglobal_periodZglobal_quotaZiothread_periodZiothread_quotaZlimitZreservationZsharesZvcpu_periodZ
vcpu_quotazballoon.availablezballoon.currentzballoon.disk_cacheszballoon.hugetlb_pgalloczballoon.hugetlb_pgfailzballoon.last-updatezballoon.major_faultzballoon.maximumzballoon.minor_faultzballoon.rsszballoon.swap_inzballoon.swap_outzballoon.unusedzballoon.usablezblock.countzblock.z.allocationz.backingIndexz	.capacityz.errorsz.fl.reqsz	.fl.timesz.pathz	.physicalz	.rd.bytesz.rd.reqsz	.rd.timesz
.thresholdz	.wr.bytesz.wr.reqsz	.wr.timeszcpu.cache.monitor.countzcpu.cache.monitor.z.bank.countz.bank.z.bytesz.idz.vcpuszcpu.haltpoll.fail.timezcpu.haltpoll.success.timez
cpu.systemzcpu.timezcpu.userz.curz.maxz.sumzdirtyrate.calc_modezdirtyrate.calc_periodzdirtyrate.calc_start_timezdirtyrate.calc_statuszdirtyrate.megabytes_per_secondzdirtyrate.vcpu.z.megabytes_per_secondziothread.countz	iothread.z
.poll-growz.poll-max-nsz.poll-shrinkzmemory.bandwidth.monitor.countzmemory.bandwidth.monitor.z.node.countz.node.z.bytes.localz.bytes.totalz	net.countznet.z	.rx.bytesz.rx.dropz.rx.errsz.rx.pktsz	.tx.bytesz.tx.dropz.tx.errsz.tx.pktszperf.alignment_faultszperf.branch_instructionszperf.branch_misseszperf.bus_cycleszperf.cache_misseszperf.cache_referenceszperf.cmtzperf.context_switcheszperf.cpu_clockzperf.cpu_cycleszperf.cpu_migrationszperf.emulation_faultszperf.instructionsz	perf.mbmlz	perf.mbmtzperf.page_faultszperf.page_faults_majzperf.page_faults_minzperf.ref_cpu_cycleszperf.stalled_cycles_backendzperf.stalled_cycles_frontendzperf.task_clockzstate.reasonzstate.statezvcpu.currentzvcpu.maximumzvcpu.z.delayz.haltedz.statez.timez.waitzvm.zblkdeviotune.diskzblkdeviotune.group_namezblkdeviotune.read_bytes_seczblkdeviotune.read_bytes_sec_maxz&blkdeviotune.read_bytes_sec_max_lengthzblkdeviotune.read_iops_seczblkdeviotune.read_iops_sec_maxz%blkdeviotune.read_iops_sec_max_lengthzblkdeviotune.size_iops_seczblkdeviotune.total_bytes_secz blkdeviotune.total_bytes_sec_maxz'blkdeviotune.total_bytes_sec_max_lengthzblkdeviotune.total_iops_seczblkdeviotune.total_iops_sec_maxz&blkdeviotune.total_iops_sec_max_lengthzblkdeviotune.write_bytes_secz blkdeviotune.write_bytes_sec_maxz'blkdeviotune.write_bytes_sec_max_lengthzblkdeviotune.write_iops_seczblkdeviotune.write_iops_sec_maxz&blkdeviotune.write_iops_sec_max_lengthzcputune.cpu_shareszcputune.emulatorpinzcputune.emulator_periodzcputune.emulator_quotazcputune.global_periodzcputune.global_quotazcputune.iothreadpin%uzcputune.iothread_periodzcputune.iothread_quotazcputune.vcpupin%uzcputune.vcpu_periodzcputune.vcpu_quotazauto_converge.incrementzauto_converge.initialzbandwidth.avail.switchoverzbandwidth.postcopyZcompressionzcompression.mt.dthreadszcompression.mt.levelzcompression.mt.threadszcompression.xbzrle.cachezcompression.zlib.levelzcompression.zstd.levelZdestination_nameZdestination_xmlZ
disks_portZ	disks_uriZgraphics_uriZlisten_addressZmigrate_disksZmigrate_disks_detect_zeroeszparallel.connectionsZpersistent_xmlztls.destinationZmigrate_uriZidleZintrZiowaitZkernelr   ZutilizationZshm_full_scansZshm_merge_across_nodesZshm_pages_sharedZshm_pages_sharingZshm_pages_to_scanZshm_pages_unsharedZshm_pages_volatileZshm_sleep_millisecsZbuffersZcachedZfreer  Zcbitposz
cert-chainzcpu0-idzmax-es-guestsz
max-guestsZpdhzreduced-phys-bitsZalignment_faultsZbranch_instructionsZbranch_missesZ
bus_cyclesZcache_missesZcache_referencesZcmtZcontext_switchesZ	cpu_clockZ
cpu_cyclesZcpu_migrationsZemulation_faultsZinstructionsZmbmlZmbmtZpage_faultsZpage_faults_majZpage_faults_minZref_cpu_cyclesZstalled_cycles_backendZstalled_cycles_frontendZ
task_clockr  r   rq   rW  (  r   ZImportErrorZlib_eZ
cygvirtmodZcyg_er   r	  r   Ztypingr   r   r   r   r   r   r   r	   r
   r   r   r(   rX   Z_EventAddHandleFuncZ_EventUpdateHandleFuncZ_EventRemoveHandleFuncrf   Z_EventAddTimeoutFuncZ_EventUpdateTimeoutFuncZ_EventRemoveTimeoutFuncr  Z_BlkioParameterZ_MemoryParameterZ_SchedParameterZ_TypedParameterr    r   rE   rN   rR   r]   rh   ro   rp   rr   rt   ru   rw   rx   rz   r}   r   r   r   r   r   r   r   r   r   r   r   Zobjectr   r  r  r  r  r  r   ri  r  r~  rz  rg  r   r  ZVIR_DOMAIN_BLKIO_PARAM_INTZVIR_DOMAIN_BLKIO_PARAM_UINTZVIR_DOMAIN_BLKIO_PARAM_LLONGZVIR_DOMAIN_BLKIO_PARAM_ULLONGZVIR_DOMAIN_BLKIO_PARAM_DOUBLEZVIR_DOMAIN_BLKIO_PARAM_BOOLEANZVIR_CPU_COMPARE_ERRORZVIR_CPU_COMPARE_INCOMPATIBLEZVIR_CPU_COMPARE_IDENTICALZVIR_CPU_COMPARE_SUPERSETZ(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURESZ#VIR_CONNECT_BASELINE_CPU_MIGRATABLEZ$VIR_CONNECT_BASELINE_CPU_IGNORE_HOSTZVIR_CONNECT_CLOSE_REASON_ERRORZVIR_CONNECT_CLOSE_REASON_EOFZ"VIR_CONNECT_CLOSE_REASON_KEEPALIVEZVIR_CONNECT_CLOSE_REASON_CLIENTZ)VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLEZ$VIR_CONNECT_COMPARE_CPU_VALIDATE_XMLZVIR_CRED_USERNAMEZVIR_CRED_AUTHNAMEZVIR_CRED_LANGUAGEZVIR_CRED_CNONCEZVIR_CRED_PASSPHRASEZVIR_CRED_ECHOPROMPTZVIR_CRED_NOECHOPROMPTZVIR_CRED_REALMZVIR_CRED_EXTERNALZ7VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_UNKNOWNZ>VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_DOMAIN_STARTEDZ7VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNELZ8VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_CONNECTEDZ;VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_DISCONNECTEDZVIR_DOMAIN_BLOCK_JOB_COMPLETEDZVIR_DOMAIN_BLOCK_JOB_FAILEDZVIR_DOMAIN_BLOCK_JOB_CANCELEDZVIR_DOMAIN_BLOCK_JOB_READYZ-VIR_DOMAIN_EVENT_DISK_CHANGE_MISSING_ON_STARTZ+VIR_DOMAIN_EVENT_DISK_DROP_MISSING_ON_STARTZVIR_CONNECT_ROZVIR_CONNECT_NO_ALIASESZ(VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVEZ*VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVEZ,VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENTZ+VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENTZ)VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNINGZ(VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSEDZ)VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFFZ'VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHERZ(VIR_CONNECT_GET_ALL_DOMAINS_STATS_NOWAITZ)VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKINGZ/VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATSZ?VIR_CONNECT_GET_DOMAIN_CAPABILITIES_DISABLE_DEPRECATED_FEATURESZVIR_CONNECT_LIST_DOMAINS_ACTIVEZ!VIR_CONNECT_LIST_DOMAINS_INACTIVEZ#VIR_CONNECT_LIST_DOMAINS_PERSISTENTZ"VIR_CONNECT_LIST_DOMAINS_TRANSIENTZ VIR_CONNECT_LIST_DOMAINS_RUNNINGZVIR_CONNECT_LIST_DOMAINS_PAUSEDZ VIR_CONNECT_LIST_DOMAINS_SHUTOFFZVIR_CONNECT_LIST_DOMAINS_OTHERZ$VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVEZ'VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVEZ"VIR_CONNECT_LIST_DOMAINS_AUTOSTARTZ%VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTARTZ%VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOTZ$VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOTZ'VIR_CONNECT_LIST_DOMAINS_HAS_CHECKPOINTZ&VIR_CONNECT_LIST_DOMAINS_NO_CHECKPOINTZ$VIR_CONNECT_LIST_INTERFACES_INACTIVEZ"VIR_CONNECT_LIST_INTERFACES_ACTIVEZ"VIR_CONNECT_LIST_NETWORKS_INACTIVEZ VIR_CONNECT_LIST_NETWORKS_ACTIVEZ$VIR_CONNECT_LIST_NETWORKS_PERSISTENTZ#VIR_CONNECT_LIST_NETWORKS_TRANSIENTZ#VIR_CONNECT_LIST_NETWORKS_AUTOSTARTZ&VIR_CONNECT_LIST_NETWORKS_NO_AUTOSTARTZ(VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEMZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEVZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEVZ/VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACEZ%VIR_CONNECT_LIST_NODE_DEVICES_CAP_NETZ+VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOSTZ-VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGETZ&VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSIZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGEZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOSTZ(VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTSZ.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERICZ%VIR_CONNECT_LIST_NODE_DEVICES_CAP_DRMZ,VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV_TYPESZ&VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEVZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCW_DEVZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEVZ&VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPAZ)VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARDZ*VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUEZ+VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIXZ%VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPDZ.VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCWGROUP_DEVZ1VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCWGROUP_MEMBERZ(VIR_CONNECT_LIST_NODE_DEVICES_PERSISTENTZ'VIR_CONNECT_LIST_NODE_DEVICES_TRANSIENTZ&VIR_CONNECT_LIST_NODE_DEVICES_INACTIVEZ$VIR_CONNECT_LIST_NODE_DEVICES_ACTIVEZ"VIR_CONNECT_LIST_SECRETS_EPHEMERALZ%VIR_CONNECT_LIST_SECRETS_NO_EPHEMERALZ VIR_CONNECT_LIST_SECRETS_PRIVATEZ#VIR_CONNECT_LIST_SECRETS_NO_PRIVATEZ'VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVEZ%VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVEZ)VIR_CONNECT_LIST_STORAGE_POOLS_PERSISTENTZ(VIR_CONNECT_LIST_STORAGE_POOLS_TRANSIENTZ(VIR_CONNECT_LIST_STORAGE_POOLS_AUTOSTARTZ+VIR_CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTARTZ"VIR_CONNECT_LIST_STORAGE_POOLS_DIRZ!VIR_CONNECT_LIST_STORAGE_POOLS_FSZ$VIR_CONNECT_LIST_STORAGE_POOLS_NETFSZ&VIR_CONNECT_LIST_STORAGE_POOLS_LOGICALZ#VIR_CONNECT_LIST_STORAGE_POOLS_DISKZ$VIR_CONNECT_LIST_STORAGE_POOLS_ISCSIZ#VIR_CONNECT_LIST_STORAGE_POOLS_SCSIZ$VIR_CONNECT_LIST_STORAGE_POOLS_MPATHZ"VIR_CONNECT_LIST_STORAGE_POOLS_RBDZ'VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOGZ&VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTERZ"VIR_CONNECT_LIST_STORAGE_POOLS_ZFSZ'VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGEZ+VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI_DIRECTZVIR_DOMAIN_ABORT_JOB_POSTCOPYZ'VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCKZ)VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULTZ(VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAITZ)VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPENDZ)VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVEZ&VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNALZVIR_DOMAIN_BLOCK_COMMIT_SHALLOWZVIR_DOMAIN_BLOCK_COMMIT_DELETEZVIR_DOMAIN_BLOCK_COMMIT_ACTIVEZ VIR_DOMAIN_BLOCK_COMMIT_RELATIVEZ'VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTESZVIR_DOMAIN_B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N_CHECKPOINT_DELETE_CHILDREN_ONLYZ&VIR_DOMAIN_CHECKPOINT_LIST_DESCENDANTSZ VIR_DOMAIN_CHECKPOINT_LIST_ROOTSZ&VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICALZ!VIR_DOMAIN_CHECKPOINT_LIST_LEAVESZ$VIR_DOMAIN_CHECKPOINT_LIST_NO_LEAVESZ VIR_DOMAIN_CHECKPOINT_XML_SECUREZ#VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAINZVIR_DOMAIN_CHECKPOINT_XML_SIZEZVIR_DOMAIN_CONSOLE_FORCEZVIR_DOMAIN_CONSOLE_SAFEZ$VIR_DOMAIN_CONTROL_ERROR_REASON_NONEZ'VIR_DOMAIN_CONTROL_ERROR_REASON_UNKNOWNZ'VIR_DOMAIN_CONTROL_ERROR_REASON_MONITORZ(VIR_DOMAIN_CONTROL_ERROR_REASON_INTERNALZVIR_DOMAIN_CONTROL_OKZVIR_DOMAIN_CONTROL_JOBZVIR_DOMAIN_CONTROL_OCCUPIEDZVIR_DOMAIN_CONTROL_ERRORZVIR_DUMP_CRASHZVIR_DUMP_LIVEZVIR_DUMP_BYPASS_CACHEZVIR_DUMP_RESETZVIR_DUMP_MEMORY_ONLYZVIR_DOMAIN_CORE_DUMP_FORMAT_RAWZ&VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_ZLIBZ%VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_LZOZ(VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPYZ#VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMPZVIR_DOMAIN_CRASHED_UNKNOWNZVIR_DOMAIN_CRASHED_PANICKEDZVIR_DOMAIN_NONEZVIR_DOMAIN_START_PAUSEDZVIR_DOMAIN_START_AUTODESTROYZVIR_DOMAIN_START_BYPASS_CACHEZVIR_DOMAIN_START_FORCE_BOOTZVIR_DOMAIN_START_VALIDATEZVIR_DOMAIN_START_RESET_NVRAMZVIR_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RESUMED_POSTCOPYZ(VIR_DOMAIN_EVENT_RESUMED_POSTCOPY_FAILEDZ"VIR_DOMAIN_EVENT_SHUTDOWN_FINISHEDZVIR_DOMAIN_EVENT_SHUTDOWN_GUESTZVIR_DOMAIN_EVENT_SHUTDOWN_HOSTZVIR_DOMAIN_EVENT_STARTED_BOOTEDZ!VIR_DOMAIN_EVENT_STARTED_MIGRATEDZ!VIR_DOMAIN_EVENT_STARTED_RESTOREDZ&VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOTZVIR_DOMAIN_EVENT_STARTED_WAKEUPZ"VIR_DOMAIN_EVENT_STARTED_RECREATEDZ!VIR_DOMAIN_EVENT_STOPPED_SHUTDOWNZ"VIR_DOMAIN_EVENT_STOPPED_DESTROYEDZ VIR_DOMAIN_EVENT_STOPPED_CRASHEDZ!VIR_DOMAIN_EVENT_STOPPED_MIGRATEDZVIR_DOMAIN_EVENT_STOPPED_SAVEDZVIR_DOMAIN_EVENT_STOPPED_FAILEDZ&VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOTZ"VIR_DOMAIN_EVENT_STOPPED_RECREATEDZ!VIR_DOMAIN_EVENT_SUSPENDED_PAUSEDZ#VIR_DOMAIN_EVENT_SUSPENDED_MIGRATEDZ"VIR_DOMAIN_EVENT_SUSPENDED_IOERRORZ#VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOGZ#VIR_DOMAIN_EVENT_SUSPENDED_RESTOREDZ(VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOTZ$VIR_DOMAIN_EVENT_SUSPENDED_API_ERRORZ#VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPYZ*VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILEDZ!VIR_DOMAIN_EVENT_TRAY_CHANGE_OPENZ"VIR_DOMAIN_EVENT_TRAY_CHANGE_CLOSEZVIR_DOMAIN_EVENT_DEFINEDZVIR_DOMAIN_EVENT_UNDEFINEDZVIR_DOMAIN_EVENT_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R_DOMAIN_JOB_OPERATION_UNKNOWNZVIR_DOMAIN_JOB_OPERATION_STARTZVIR_DOMAIN_JOB_OPERATION_SAVEZ VIR_DOMAIN_JOB_OPERATION_RESTOREZ%VIR_DOMAIN_JOB_OPERATION_MIGRATION_INZ&VIR_DOMAIN_JOB_OPERATION_MIGRATION_OUTZ!VIR_DOMAIN_JOB_OPERATION_SNAPSHOTZ(VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_REVERTZVIR_DOMAIN_JOB_OPERATION_DUMPZVIR_DOMAIN_JOB_OPERATION_BACKUPZ(VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETEZVIR_DOMAIN_JOB_NONEZVIR_DOMAIN_JOB_BOUNDEDZVIR_DOMAIN_JOB_UNBOUNDEDZVIR_DOMAIN_JOB_COMPLETEDZVIR_DOMAIN_JOB_FAILEDZVIR_DOMAIN_JOB_CANCELLEDZVIR_DOMAIN_LIFECYCLE_POWEROFFZVIR_DOMAIN_LIFECYCLE_REBOOTZVIR_DOMAIN_LIFECYCLE_CRASHZ#VIR_DOMAIN_LIFECYCLE_ACTION_DESTROYZ#VIR_DOMAIN_LIFECYCLE_ACTION_RESTARTZ*VIR_DOMAIN_LIFECYCLE_ACTION_RESTART_RENAMEZ$VIR_DOMAIN_LIFECYCLE_ACTION_PRESERVEZ,VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_DESTROYZ,VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_RESTARTZ-VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_IGNOREZ-VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_INJECTZ,VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_FATALZ,VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_RESETZ)VIR_DOMAIN_MEMORY_FAILURE_ACTION_REQUIREDZ#VIR_DOMAIN_MEMORY_FAILURE_RECURSIVEZ4VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_HYPERVISORZ/VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_GUESTZVIR_MEMORY_VIRTUALZVIR_MEMORY_PHYSICALZVIR_DOMAIN_MEM_CURRENTZVIR_DOMAIN_MEM_LIVEZVIR_DOMAIN_MEM_CONFIGZVIR_DOMAIN_MEM_MAXIMUMZVIR_DOMAIN_MEMORY_STAT_SWAP_INZVIR_DOMAIN_MEMORY_STAT_SWAP_OUTZ"VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULTZ"VIR_DOMAIN_MEMORY_STAT_MINOR_FAULTZVIR_DOMAIN_MEMORY_STAT_UNUSEDZ VIR_DOMAIN_MEMORY_STAT_AVAILABLEZ%VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOONZVIR_DOMAIN_MEMORY_STAT_RSSZVIR_DOMAIN_MEMORY_STAT_USABLEZ"VIR_DOMAIN_MEMORY_STAT_LAST_UPDATEZ"VIR_DOMAIN_MEMORY_STAT_DISK_CACHESZ&VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOCZ%VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAILZVIR_DOMAIN_MEMORY_STAT_LASTZVIR_DOMAIN_MEMORY_STAT_NRZVIR_DOMAIN_MESSAGE_DEPRECATIONZVIR_DOMAIN_MESSAGE_TAINTINGZVIR_DOMAIN_MESSAGE_IOERRORSZVIR_DOMAIN_METADATA_DESCRIPTIONZVIR_DOMAIN_METADATA_TITLEZVIR_DOMAIN_METADATA_ELEMENTZVIR_MIGRATE_LIVEZVIR_MIGRATE_PEER2PEERZVIR_MIGRATE_TUNNELLEDZVIR_MIGRATE_PERSIST_DESTZVIR_MIGRATE_UNDEFINE_SOURCEZVIR_MIGRATE_PAUSEDZVIR_MIGRATE_NON_SHARED_DISKZVIR_MIGRATE_NON_SHARED_INCZVIR_MIGRATE_CHANGE_PROTECTIONZVIR_MIGRATE_UNSAFEZVIR_MIGRATE_OFFLINEZVIR_MIGRATE_COMPRESSEDZV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CPU_TOTALZVIR_DOMAIN_STATS_BALLOONZVIR_DOMAIN_STATS_VCPUZVIR_DOMAIN_STATS_INTERFACEZVIR_DOMAIN_STATS_BLOCKZVIR_DOMAIN_STATS_PERFZVIR_DOMAIN_STATS_IOTHREADZVIR_DOMAIN_STATS_MEMORYZVIR_DOMAIN_STATS_DIRTYRATEZVIR_DOMAIN_STATS_VMZ VIR_DOMAIN_UNDEFINE_MANAGED_SAVEZ&VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATAZVIR_DOMAIN_UNDEFINE_NVRAMZVIR_DOMAIN_UNDEFINE_KEEP_NVRAMZ(VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATAZVIR_DOMAIN_UNDEFINE_TPMZVIR_DOMAIN_UNDEFINE_KEEP_TPMZVIR_DOMAIN_VCPU_CURRENTZVIR_DOMAIN_VCPU_LIVEZVIR_DOMAIN_VCPU_CONFIGZVIR_DOMAIN_VCPU_MAXIMUMZVIR_DOMAIN_VCPU_GUESTZVIR_DOMAIN_VCPU_HOTPLUGGABLEZVIR_DOMAIN_XML_SECUREZVIR_DOMAIN_XML_INACTIVEZVIR_DOMAIN_XML_UPDATE_CPUZVIR_DOMAIN_XML_MIGRATABLEZVIR_FROM_NONEZVIR_FROM_XENZVIR_FROM_XENDZVIR_FROM_XENSTOREZVIR_FROM_SEXPRZVIR_FROM_XMLZVIR_FROM_DOMZVIR_FROM_RPCZVIR_FROM_PROXYZVIR_FROM_CONFZVIR_FROM_QEMUZVIR_FROM_NETZVIR_FROM_TESTZVIR_FROM_REMOTEZVIR_FROM_OPENVZZVIR_FROM_XENXMZVIR_FROM_STATS_LINUXZVIR_FROM_LXCZVIR_FROM_STORAGEZVIR_FROM_NETWORKZVIR_FROM_DOMAINZVIR_FROM_UMLZVIR_FROM_NODEDEVZVIR_FROM_XEN_INOTIFYZVIR_FROM_SECURITYZVIR_FROM_VBOXZVIR_FROM_INTERFACEZVIR_FROM_ONEZVIR_FROM_ESXZVIR_FROM_PHYPZVIR_FROM_SECRETZVIR_FROM_CPUZVIR_FROM_XENAPIZVIR_FROM_NWFILTERZVIR_FROM_HOOKZVIR_FROM_DOMAIN_SNAPSHOTZVIR_FROM_AUDITZVIR_FROM_SYSINFOZVIR_FROM_STREAMSZVIR_FROM_VMWAREZVIR_FROM_EVENTZVIR_FROM_LIBXLZVIR_FROM_LOCKINGZVIR_FROM_HYPERVZVIR_FROM_CAPABILITIESZVIR_FROM_URIZVIR_FROM_AUTHZVIR_FROM_DBUSZVIR_FROM_PARALLELSZVIR_FROM_DEVICEZVIR_FROM_SSHZVIR_FROM_LOCKSPACEZVIR_FROM_INITCTLZVIR_FROM_IDENTITYZVIR_FROM_CGROUPZVIR_FROM_ACCESSZVIR_FROM_SYSTEMDZVIR_FROM_BHYVEZVIR_FROM_CRYPTOZVIR_FROM_FIREWALLZVIR_FROM_POLKITZVIR_FROM_THREADZVIR_FROM_ADMINZVIR_FROM_LOGGINGZVIR_FROM_XENXLZVIR_FROM_PERFZVIR_FROM_LIBSSHZVIR_FROM_RESCTRLZVIR_FROM_FIREWALLDZVIR_FROM_DOMAIN_CHECKPOINTZVIR_FROM_TPMZVIR_FROM_BPFZVIR_FROM_CHZVIR_ERR_NONEZVIR_ERR_WARNINGZVIR_ERR_ERRORZ
VIR_ERR_OKZVIR_ERR_INTERNAL_ERRORZVIR_ERR_NO_MEMORYZVIR_ERR_NO_SUPPORTZVIR_ERR_UNKNOWN_HOSTZVIR_ERR_NO_CONNECTZVIR_ERR_INVALID_CONNZVIR_ERR_INVALID_DOMAINZVIR_ERR_INVALID_ARGZVIR_ERR_OPERATION_FAILEDZVIR_ERR_GET_FAILEDZVIR_ERR_POST_FAILEDZVIR_ERR_HTTP_ERRORZVIR_ERR_SEXPR_SERIALZVIR_ERR_NO_XENZVIR_ERR_XEN_CALLZVIR_ERR_OS_TYPEZVIR_ERR_NO_KERNELZVIR_ERR_NO_ROOTZVIR_ERR_NO_SOURCEZVIR_ERR_NO_TARGETZVIR_ERR_NO_NAMEZVIR_ERR_NO_OSZVIR_ERR_NO_DEVICEZVIR_ERR_NO_XENSTOREZVIR_ERR_DRIVER_FULLZVIR_ERR_CALL_FAILEDZVIR_ERR_XML_ERRORZVIR_ERR_DOM_EXISTZVIR_ERR_OPERATION_DENIEDZVIR_ERR_OPEN_FAILEDZVIR_ERR_READ_FAILEDZVIR_ERR_PARSE_FAILEDZVIR_ERR_CONF_SYNTAXZVIR_ERR_WRITE_FAILEDZVIR_ERR_XML_DETAILZVIR_ERR_INVALID_NETWORKZVIR_ERR_NETWORK_EXISTZVIR_ERR_SYSTEM_ERRORZVIR_ERR_RPCZVIR_ERR_GNUTLS_ERRORZVIR_WAR_NO_NETWORKZVIR_ERR_NO_DOMAINZVIR_ERR_NO_NETWORKZVIR_ERR_INVALID_MACZVIR_ERR_AUTH_FAILEDZVIR_ERR_INVALID_STORAGE_POOLZVIR_ERR_INVALID_STORAGE_VOLZVIR_WAR_NO_STORAGEZVIR_ERR_NO_STORAGE_POOLZVIR_ERR_NO_STORAGE_VOLZVIR_WAR_NO_NODEZVIR_ERR_INVALID_NODE_DEVICEZVIR_ERR_NO_NODE_DEVICEZVIR_ERR_NO_SECURITY_MODELZVIR_ERR_OPERATION_INVALIDZVIR_WAR_NO_INTERFACEZVIR_ERR_NO_INTERFACEZVIR_ERR_INVALID_INTERFACEZVIR_ERR_MULTIPLE_INTERFACESZVIR_WAR_NO_NWFILTERZVIR_ERR_INVALID_NWFILTERZVIR_ERR_NO_NWFILTERZVIR_ERR_BUILD_FIREWALLZVIR_WAR_NO_SECRETZVIR_ERR_INVALID_SECRETZVIR_ERR_NO_SECRETZVIR_ERR_CONFIG_UNSUPPORTEDZVIR_ERR_OPERATION_TIMEOUTZVIR_ERR_MIGRATE_PERSIST_FAILEDZVIR_ERR_HOOK_SCRIPT_FAILEDZVIR_ERR_INVALID_DOMAIN_SNAPSHOTZVIR_ERR_NO_DOMAIN_SNAPSHOTZVIR_ERR_INVALID_STREAMZVIR_ERR_ARGUMENT_UNSUPPORTEDZVIR_ERR_STORAGE_PROBE_FAILEDZVIR_ERR_STORAGE_POOL_BUILTZVIR_ERR_SNAPSHOT_REVERT_RISKYZVIR_ERR_OPERATION_ABORTEDZVIR_ERR_AUTH_CANCELLEDZVIR_ERR_NO_DOMAIN_METADATAZVIR_ERR_MIGRATE_UNSAFEZVIR_ERR_OVERFLOWZVIR_ERR_BLOCK_COPY_ACTIVEZVIR_ERR_OPERATION_UNSUPPORTEDZVIR_ERR_SSHZVIR_ERR_AGENT_UNRESPONSIVEZVIR_ERR_RESOURCE_BUSYZVIR_ERR_ACCESS_DENIEDZVIR_ERR_DBUS_SERVICEZVIR_ERR_STORAGE_VOL_EXISTZVIR_ERR_CPU_INCOMPATIBLEZVIR_ERR_XML_INVALID_SCHEMAZVIR_ERR_MIGRATE_FINISH_OKZVIR_ERR_AUTH_UNAVAILABLEZVIR_ERR_NO_SERVERZVIR_ERR_NO_CLIENTZVIR_ERR_AGENT_UNSYNCEDZVIR_ERR_LIBSSHZVIR_ERR_DEVICE_MISSINGZ VIR_ERR_INVALID_NWFILTER_BINDINGZVIR_ERR_NO_NWFILTER_BINDINGZ!VIR_ERR_INVALID_DOMAIN_CHECKPOINTZVIR_ERR_NO_DOMAIN_CHECKPOINTZVIR_ERR_NO_DOMAIN_BACKUPZVIR_ERR_INVALID_NETWORK_PORTZVIR_ERR_NETWORK_PORT_EXISTZVIR_ERR_NO_NETWORK_PORTZVIR_ERR_NO_HOSTNAMEZVIR_ERR_CHECKPOINT_INCONSISTENTZVIR_ERR_MULTIPLE_DOMAINSZVIR_ERR_NO_NETWORK_METADATAZVIR_ERR_AGENT_COMMAND_TIMEOUTZVIR_ERR_AGENT_COMMAND_FAILEDZVIR_EVENT_HANDLE_READABLEZVIR_EVENT_HANDLE_WRITABLEZVIR_EVENT_HANDLE_ERRORZVIR_EVENT_HANDLE_HANGUPZVIR_IP_ADDR_TYPE_IPV4ZVIR_IP_ADDR_TYPE_IPV6ZVIR_INTERFACE_DEFINE_VALIDATEZVIR_INTERFACE_XML_INACTIVEZVIR_KEYCODE_SET_LINUXZVIR_KEYCODE_SET_XTZVIR_KEYCODE_SET_ATSET1ZVIR_KEYCODE_SET_ATSET2ZVIR_KEYCODE_SET_ATSET3ZVIR_KEYCODE_SET_OSXZVIR_KEYCODE_SET_XT_KBDZVIR_KEYCODE_SET_USBZVIR_KEYCODE_SET_WIN32ZVIR_KEYCODE_SET_QNUMZVIR_DOMAIN_MEMORY_PARAM_INTZVIR_DOMAIN_MEMORY_PARAM_UINTZVIR_DOMAIN_MEMORY_PARAM_LLONGZVIR_DOMAIN_MEMORY_PARAM_ULLONGZVIR_DOMAIN_MEMORY_PARAM_DOUBLEZVIR_DOMAIN_MEMORY_PARAM_BOOLEANZ$VIR_NWFILTER_BINDING_CREATE_VALIDATEZVIR_NWFILTER_DEFINE_VALIDATEZVIR_NETWORK_CREATE_VALIDATEZVIR_NETWORK_DEFINE_VALIDATEZVIR_NETWORK_EVENT_ID_LIFECYCLEZ$VIR_NETWORK_EVENT_ID_METADATA_CHANGEZVIR_NETWORK_EVENT_DEFINEDZVIR_NETWORK_EVENT_UNDEFINEDZVIR_NETWORK_EVENT_STARTEDZVIR_NETWORK_EVENT_STOPPEDZ VIR_NETWORK_METADATA_DESCRIPTIONZVIR_NETWORK_METADATA_TITLEZVIR_NETWORK_METADATA_ELEMENTZVIR_NETWORK_PORT_CREATE_RECLAIMZ VIR_NETWORK_PORT_CREATE_VALIDATEZVIR_NETWORK_UPDATE_COMMAND_NONEZ!VIR_NETWORK_UPDATE_COMMAND_MODIFYZ!VIR_NETWORK_UPDATE_COMMAND_DELETEZ#VIR_NETWORK_UPDATE_COMMAND_ADD_LASTZ$VIR_NETWORK_UPDATE_COMMAND_ADD_FIRSTZ!VIR_NETWORK_UPDATE_AFFECT_CURRENTZVIR_NETWORK_UPDATE_AFFECT_LIVEZ VIR_NETWORK_UPDATE_AFFECT_CONFIGZVIR_NETWORK_SECTION_NONEZVIR_NETWORK_SECTION_BRIDGEZVIR_NETWORK_SECTION_DOMAINZVIR_NETWORK_SECTION_IPZ VIR_NETWORK_SECTION_IP_DHCP_HOSTZ!VIR_NETWORK_SECTION_IP_DHCP_RANGEZVIR_NETWORK_SECTION_FORWARDZ%VIR_NETWORK_SECTION_FORWARD_INTERFACEZVIR_NETWORK_SECTION_FORWARD_PFZVIR_NETWORK_SECTION_PORTGROUPZVIR_NETWORK_SECTION_DNS_HOSTZVIR_NETWORK_SECTION_DNS_TXTZVIR_NETWORK_SECTION_DNS_SRVZVIR_NETWORK_XML_INACTIVEZVIR_NODE_ALLOC_PAGES_ADDZVIR_NODE_ALLOC_PAGES_SETZ#VIR_NODE_DEVICE_CREATE_XML_VALIDATEZ#VIR_NODE_DEVICE_DEFINE_XML_VALIDATEZ"VIR_NODE_DEVICE_EVENT_ID_LIFECYCLEZVIR_NODE_DEVICE_EVENT_ID_UPDATEZVIR_NODE_DEVICE_EVENT_CREATEDZVIR_NODE_DEVICE_EVENT_DELETEDZVIR_NODE_DEVICE_EVENT_DEFINEDZVIR_NODE_DEVICE_EVENT_UNDEFINEDZ%VIR_NODE_DEVICE_UPDATE_AFFECT_CURRENTZ"VIR_NODE_DEVICE_UPDATE_AFFECT_LIVEZ$VIR_NODE_DEVICE_UPDATE_AFFECT_CONFIGZVIR_NODE_DEVICE_XML_INACTIVEZVIR_NODE_CPU_STATS_ALL_CPUSZVIR_NODE_MEMORY_STATS_ALL_CELLSZVIR_NODE_SUSPEND_TARGET_MEMZVIR_NODE_SUSPEND_TARGET_DISKZVIR_NODE_SUSPEND_TARGET_HYBRIDZVIR_DOMAIN_SCHED_FIELD_INTZVIR_DOMAIN_SCHED_FIELD_UINTZVIR_DOMAIN_SCHED_FIELD_LLONGZVIR_DOMAIN_SCHED_FIELD_ULLONGZVIR_DOMAIN_SCHED_FIELD_DOUBLEZVIR_DOMAIN_SCHED_FIELD_BOOLEANZVIR_SECRET_DEFINE_VALIDATEZVIR_SECRET_EVENT_ID_LIFECYCLEZ!VIR_SECRET_EVENT_ID_VALUE_CHANGEDZVIR_SECRET_EVENT_DEFINEDZVIR_SECRET_EVENT_UNDEFINEDZVIR_SECRET_USAGE_TYPE_NONEZVIR_SECRET_USAGE_TYPE_VOLUMEZVIR_SECRET_USAGE_TYPE_CEPHZVIR_SECRET_USAGE_TYPE_ISCSIZVIR_SECRET_USAGE_TYPE_TLSZVIR_SECRET_USAGE_TYPE_VTPMZVIR_STORAGE_POOL_BUILD_NEWZVIR_STORAGE_POOL_BUILD_REPAIRZVIR_STORAGE_POOL_BUILD_RESIZEZ#VIR_STORAGE_POOL_BUILD_NO_OVERWRITEZ VIR_STORAGE_POOL_BUILD_OVERWRITEZVIR_STORAGE_POOL_CREATE_NORMALZ"VIR_STORAGE_POOL_CREATE_WITH_BUILDZ,VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITEZ/VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITEZ VIR_STORAGE_POOL_DEFINE_VALIDATEZVIR_STORAGE_POOL_DELETE_NORMALZVIR_STORAGE_POOL_DELETE_ZEROEDZ#VIR_STORAGE_POOL_EVENT_ID_LIFECYCLEZ!VIR_STORAGE_POOL_EVENT_ID_REFRESHZVIR_STORAGE_POOL_EVENT_DEFINEDZ VIR_STORAGE_POOL_EVENT_UNDEFINEDZVIR_STORAGE_POOL_EVENT_STARTEDZVIR_STORAGE_POOL_EVENT_STOPPEDZVIR_STORAGE_POOL_EVENT_CREATEDZVIR_STORAGE_POOL_EVENT_DELETEDZVIR_STORAGE_POOL_INACTIVEZVIR_STORAGE_POOL_BUILDINGZVIR_STORAGE_POOL_RUNNINGZVIR_STORAGE_POOL_DEGRADEDZVIR_STORAGE_POOL_INACCESSIBLEZ(VIR_STORAGE_VOL_CREATE_PREALLOC_METADATAZVIR_STORAGE_VOL_CREATE_REFLINKZVIR_STORAGE_VOL_CREATE_VALIDATEZVIR_STORAGE_VOL_DELETE_NORMALZVIR_STORAGE_VOL_DELETE_ZEROEDZ%VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTSZ&VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAMZVIR_STORAGE_VOL_USE_ALLOCATIONZVIR_STORAGE_VOL_GET_PHYSICALZVIR_STORAGE_VOL_RESIZE_ALLOCATEZVIR_STORAGE_VOL_RESIZE_DELTAZVIR_STORAGE_VOL_RESIZE_SHRINKZVIR_STORAGE_VOL_FILEZVIR_STORAGE_VOL_BLOCKZVIR_STORAGE_VOL_DIRZVIR_STORAGE_VOL_NETWORKZVIR_STORAGE_VOL_NETDIRZVIR_STORAGE_VOL_PLOOPZ$VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAMZVIR_STORAGE_VOL_WIPE_ALG_ZEROZVIR_STORAGE_VOL_WIPE_ALG_NNSAZVIR_STORAGE_VOL_WIPE_ALG_DODZVIR_STORAGE_VOL_WIPE_ALG_BSIZ VIR_STORAGE_VOL_WIPE_ALG_GUTMANNZ!VIR_STORAGE_VOL_WIPE_ALG_SCHNEIERZ"VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7Z#VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33ZVIR_STORAGE_VOL_WIPE_ALG_RANDOMZVIR_STORAGE_VOL_WIPE_ALG_TRIMZVIR_STORAGE_XML_INACTIVEZVIR_STREAM_EVENT_READABLEZVIR_STREAM_EVENT_WRITABLEZVIR_STREAM_EVENT_ERRORZVIR_STREAM_EVENT_HANGUPZVIR_STREAM_NONBLOCKrf  ZVIR_TYPED_PARAM_STRING_OKAYZVIR_TYPED_PARAM_INTZVIR_TYPED_PARAM_UINTZVIR_TYPED_PARAM_LLONGZVIR_TYPED_PARAM_ULLONGZVIR_TYPED_PARAM_DOUBLEZVIR_TYPED_PARAM_BOOLEANZVIR_TYPED_PARAM_STRINGZVIR_VCPU_INFO_CPU_UNAVAILABLEZVIR_VCPU_INFO_CPU_OFFLINEZVIR_VCPU_OFFLINEZVIR_VCPU_RUNNING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ELAPSED_NETZVIR_DOMAIN_JOB_TIME_REMAININGZ$VIR_DOMAIN_JOB_VFIO_DATA_TRANSFERREDZ(VIR_DOMAIN_LAUNCH_SECURITY_SEV_API_MAJORZ(VIR_DOMAIN_LAUNCH_SECURITY_SEV_API_MINORZ'VIR_DOMAIN_LAUNCH_SECURITY_SEV_BUILD_IDZ*VIR_DOMAIN_LAUNCH_SECURITY_SEV_MEASUREMENTZ%VIR_DOMAIN_LAUNCH_SECURITY_SEV_POLICYZ%VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRETZ,VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_HEADERZ1VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_SET_ADDRESSZ)VIR_DOMAIN_LAUNCH_SECURITY_SEV_SNP_POLICYZVIR_DOMAIN_MEMORY_HARD_LIMITZVIR_DOMAIN_MEMORY_MIN_GUARANTEEZVIR_DOMAIN_MEMORY_SOFT_LIMITZ!VIR_DOMAIN_MEMORY_SWAP_HARD_LIMITZVIR_DOMAIN_NUMA_MODEZVIR_DOMAIN_NUMA_NODESETZVIR_DOMAIN_SAVE_PARAM_DXMLZVIR_DOMAIN_SAVE_PARAM_FILEZ"VIR_DOMAIN_SAVE_PARAM_IMAGE_FORMATZ'VIR_DOMAIN_SAVE_PARAM_PARALLEL_CHANNELSZVIR_DOMAIN_SCHEDULER_CAPZVIR_DOMAIN_SCHEDULER_CPU_SHARESZ$VIR_DOMAIN_SCHEDULER_EMULATOR_PERIODZ#VIR_DOMAIN_SCHEDULER_EMULATOR_QUOTAZ"VIR_DOMAIN_SCHEDULER_GLOBAL_PERIODZ!VIR_DOMAIN_SCHEDULER_GLOBAL_QUOTAZ$VIR_DOMAIN_SCHEDULER_IOTHREAD_PERIODZ#VIR_DOMAIN_SCHEDULER_IOTHREAD_QUOTAZVIR_DOMAIN_SCHEDULER_LIMITZ VIR_DOMAIN_SCHEDULER_RESERVATIONZVIR_DOMAIN_SCHEDULER_SHARESZ VIR_DOMAIN_SCHEDULER_VCPU_PERIODZVIR_DOMAIN_SCHEDULER_VCPU_QUOTAZVIR_DOMAIN_SCHEDULER_WEIGHTZ"VIR_DOMAIN_STATS_BALLOON_AVAILABLEZ VIR_DOMAIN_STATS_BALLOON_CURRENTZ$VIR_DOMAIN_STATS_BALLOON_DISK_CACHESZ(VIR_DOMAIN_STATS_BALLOON_HUGETLB_PGALLOCZ'VIR_DOMAIN_STATS_BALLOON_HUGETLB_PGFAILZ$VIR_DOMAIN_STATS_BALLOON_LAST_UPDATEZ$VIR_DOMAIN_STATS_BALLOON_MAJOR_FAULTZ VIR_DOMAIN_STATS_BALLOON_MAXIMUMZ$VIR_DOMAIN_STATS_BALLOON_MINOR_FAULTZVIR_DOMAIN_STATS_BALLOON_RSSZ VIR_DOMAIN_STATS_BALLOON_SWAP_INZ!VIR_DOMAIN_STATS_BALLOON_SWAP_OUTZVIR_DOMAIN_STATS_BALLOON_UNUSEDZVIR_DOMAIN_STATS_BALLOON_USABLEZVIR_DOMAIN_STATS_BLOCK_COUNTZVIR_DOMAIN_STATS_BLOCK_PREFIXZ(VIR_DOMAIN_STATS_BLOCK_SUFFIX_ALLOCATIONZ*VIR_DOMAIN_STATS_BLOCK_SUFFIX_BACKINGINDEXZ&VIR_DOMAIN_STATS_BLOCK_SUFFIX_CAPACITYZ$VIR_DOMAIN_STATS_BLOCK_SUFFIX_ERRORSZ%VIR_DOMAIN_STATS_BLOCK_SUFFIX_FL_REQSZ&VIR_DOMAIN_STATS_BLOCK_SUFFIX_FL_TIMESZ"VIR_DOMAIN_STATS_BLOCK_SUFFIX_NAMEZ"VIR_DOMAIN_STATS_BLOCK_SUFFIX_PATHZ&VIR_DOMAIN_STATS_BLOCK_SUFFIX_PHYSICALZ&VIR_DOMAIN_STATS_BLOCK_SUFFIX_RD_BYTESZ%VIR_DOMAIN_STATS_BLOCK_SUFFIX_RD_REQSZ&VIR_DOMAIN_STATS_BLOCK_SUFFIX_RD_TIMESZ'VIR_D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TYRATE_VCPU_SUFFIX_MEGABYTES_PER_SECONDZVIR_DOMAIN_STATS_IOTHREAD_COUNTZ VIR_DOMAIN_STATS_IOTHREAD_PREFIXZ*VIR_DOMAIN_STATS_IOTHREAD_SUFFIX_POLL_GROWZ,VIR_DOMAIN_STATS_IOTHREAD_SUFFIX_POLL_MAX_NSZ,VIR_DOMAIN_STATS_IOTHREAD_SUFFIX_POLL_SHRINKZ/VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_COUNTZ0VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_PREFIXZ5VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NAMEZ;VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_COUNTZ<VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_PREFIXZHVIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_SUFFIX_BYTES_LOCALZHVIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_SUFFIX_BYTES_TOTALZ?VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_NODE_SUFFIX_IDZ6VIR_DOMAIN_STATS_MEMORY_BANDWIDTH_MONITOR_SUFFIX_VCPUSZVIR_DOMAIN_STATS_NET_COUNTZVIR_DOMAIN_STATS_NET_PREFIXZ VIR_DOMAIN_STATS_NET_SUFFIX_NAMEZ$VIR_DOMAIN_STATS_NET_SUFFIX_RX_BYTESZ#VIR_DOMAIN_STATS_NET_SUFFIX_RX_DROPZ#VIR_DOMAIN_STATS_NET_SUFFIX_RX_ERRSZ#VIR_DOMAIN_STATS_NET_SUFFIX_RX_PKTSZ$VIR_DOMAIN_STATS_NET_SUFFIX_TX_BYTESZ#VIR_DOMAIN_STATS_NET_SUFFIX_TX_DROPZ#VIR_DOMAIN_STATS_NET_SUFFIX_TX_ERRSZ#VIR_DOMAIN_STATS_NET_SUFFIX_TX_PKTSZ&VIR_DOMAIN_STATS_PERF_ALIGNMENT_FAULTSZ)VIR_DOMAIN_STATS_PERF_BRANCH_INSTRUCTIONSZ#VIR_DOMAIN_STATS_PERF_BRANCH_MISSESZ VIR_DOMAIN_STATS_PERF_BUS_CYCLESZ"VIR_DOMAIN_STATS_PERF_CACHE_MISSESZ&VIR_DOMAIN_STATS_PERF_CACHE_REFERENCESZVIR_DOMAIN_STATS_PERF_CMTZ&VIR_DOMAIN_STATS_PERF_CONTEXT_SWITCHESZVIR_DOMAIN_STATS_PERF_CPU_CLOCKZ VIR_DOMAIN_STATS_PERF_CPU_CYCLESZ$VIR_DOMAIN_STATS_PERF_CPU_MIGRATIONSZ&VIR_DOMAIN_STATS_PERF_EMULATION_FAULTSZ"VIR_DOMAIN_STATS_PERF_INSTRUCTIONSZVIR_DOMAIN_STATS_PERF_MBMLZVIR_DOMAIN_STATS_PERF_MBMTZ!VIR_DOMAIN_STATS_PERF_PAGE_FAULTSZ%VIR_DOMAIN_STATS_PERF_PAGE_FAULTS_MAJZ%VIR_DOMAIN_STATS_PERF_PAGE_FAULTS_MINZ$VIR_DOMAIN_STATS_PERF_REF_CPU_CYCLESZ,VIR_DOMAIN_STATS_PERF_STALLED_CYCLES_BACKENDZ-VIR_DOMAIN_STATS_PERF_STALLED_CYCLES_FRONTENDZ VIR_DOMAIN_STATS_PERF_TASK_CLOCKZVIR_DOMAIN_STATS_STATE_REASONZVIR_DOMAIN_STATS_STATE_STATEZVIR_DOMAIN_STATS_VCPU_CURRENTZVIR_DOMAIN_STATS_VCPU_MAXIMUMZVIR_DOMAIN_STATS_VCPU_PREFIXZ"VIR_DOMAIN_STATS_VCPU_SUFFIX_DELAYZ#VIR_DOMAIN_STATS_VCPU_SUFFIX_HALTEDZ"VIR_DOMAIN_STATS_VCPU_SUFFIX_STATEZ!VIR_DOMAIN_STATS_VCPU_SUFFIX_TIMEZ!VIR_DOMAIN_STATS_VC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_DOMAIN_TUNABLE_CPU_EMULATOR_PERIODZ%VIR_DOMAIN_TUNABLE_CPU_EMULATOR_QUOTAZ$VIR_DOMAIN_TUNABLE_CPU_GLOBAL_PERIODZ#VIR_DOMAIN_TUNABLE_CPU_GLOBAL_QUOTAZ#VIR_DOMAIN_TUNABLE_CPU_IOTHREADSPINZ&VIR_DOMAIN_TUNABLE_CPU_IOTHREAD_PERIODZ%VIR_DOMAIN_TUNABLE_CPU_IOTHREAD_QUOTAZVIR_DOMAIN_TUNABLE_CPU_VCPUPINZ"VIR_DOMAIN_TUNABLE_CPU_VCPU_PERIODZ!VIR_DOMAIN_TUNABLE_CPU_VCPU_QUOTAZ)VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENTZ'VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIALZVIR_MIGRATE_PARAM_BANDWIDTHZ,VIR_MIGRATE_PARAM_BANDWIDTH_AVAIL_SWITCHOVERZ$VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPYZVIR_MIGRATE_PARAM_COMPRESSIONZ)VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADSZ&VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVELZ(VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADSZ*VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHEZ(VIR_MIGRATE_PARAM_COMPRESSION_ZLIB_LEVELZ(VIR_MIGRATE_PARAM_COMPRESSION_ZSTD_LEVELZVIR_MIGRATE_PARAM_DEST_NAMEZVIR_MIGRATE_PARAM_DEST_XMLZVIR_MIGRATE_PARAM_DISKS_PORTZVIR_MIGRATE_PARAM_DISKS_URIZVIR_MIGRATE_PARAM_GRAPHICS_URIZ VIR_MIGRATE_PARAM_LISTEN_ADDRESSZVIR_MIGRATE_PARAM_MIGRATE_DISKSZ-VIR_MIGRATE_PARAM_MIGRATE_DISKS_DETECT_ZEROESZ&VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONSZVIR_MIGRATE_PARAM_PERSIST_XMLZ!VIR_MIGRATE_PARAM_TLS_DESTINATIONZVIR_MIGRATE_PARAM_URIZ%VIR_NETWORK_PORT_BANDWIDTH_IN_AVERAGEZ#VIR_NETWORK_PORT_BANDWIDTH_IN_BURSTZ#VIR_NETWORK_PORT_BANDWIDTH_IN_FLOORZ"VIR_NETWORK_PORT_BANDWIDTH_IN_PEAKZ&VIR_NETWORK_PORT_BANDWIDTH_OUT_AVERAGEZ$VIR_NETWORK_PORT_BANDWIDTH_OUT_BURSTZ#VIR_NETWORK_PORT_BANDWIDTH_OUT_PEAKZVIR_NODE_CPU_STATS_IDLEZVIR_NODE_CPU_STATS_INTRZVIR_NODE_CPU_STATS_IOWAITZVIR_NODE_CPU_STATS_KERNELZVIR_NODE_CPU_STATS_USERZVIR_NODE_CPU_STATS_UTILIZATIONZ!VIR_NODE_MEMORY_SHARED_FULL_SCANSZ)VIR_NODE_MEMORY_SHARED_MERGE_ACROSS_NODESZ#VIR_NODE_MEMORY_SHARED_PAGES_SHAREDZ$VIR_NODE_MEMORY_SHARED_PAGES_SHARINGZ$VIR_NODE_MEMORY_SHARED_PAGES_TO_SCANZ%VIR_NODE_MEMORY_SHARED_PAGES_UNSHAREDZ%VIR_NODE_MEMORY_SHARED_PAGES_VOLATILEZ&VIR_NODE_MEMORY_SHARED_SLEEP_MILLISECSZVIR_NODE_MEMORY_STATS_BUFFERSZVIR_NODE_MEMORY_STATS_CACHEDZVIR_NODE_MEMORY_STATS_FREEZVIR_NODE_MEMORY_STATS_TOTALZVIR_NODE_SEV_CBITPOSZVIR_NODE_SEV_CERT_CHAINZVIR_NODE_SEV_CPU0_IDZVIR_NODE_SEV_MAX_ES_GUESTSZVIR_NODE_SEV_MAX_GUESTSZVIR_NODE_SEV_PDHZVIR_NODE_SEV_REDUCED_PHYS_BITSZVIR_PERF_PARAM_ALIGNMENT_FAULTSZ"VIR_PERF_PARAM_BRANCH_INSTRUCTIONSZVIR_PERF_PARAM_BRANCH_MISSESZVIR_PERF_PARAM_BUS_CYCLESZVIR_PERF_PARAM_CACHE_MISSESZVIR_PERF_PARAM_CACHE_REFERENCESZVIR_PERF_PARAM_CMTZVIR_PERF_PARAM_CONTEXT_SWITCHESZVIR_PERF_PARAM_CPU_CLOCKZVIR_PERF_PARAM_CPU_CYCLESZVIR_PERF_PARAM_CPU_MIGRATIONSZVIR_PERF_PARAM_EMULATION_FAULTSZVIR_PERF_PARAM_INSTRUCTIONSZVIR_PERF_PARAM_MBMLZVIR_PERF_PARAM_MBMTZVIR_PERF_PARAM_PAGE_FAULTSZVIR_PERF_PARAM_PAGE_FAULTS_MAJZVIR_PERF_PARAM_PAGE_FAULTS_MINZVIR_PERF_PARAM_REF_CPU_CYCLESZ%VIR_PERF_PARAM_STALLED_CYCLES_BACKENDZ&VIR_PERF_PARAM_STALLED_CYCLES_FRONTENDZVIR_PERF_PARAM_TASK_CLOCKrZ   r   r   <module>r     s$     ] ] ]T]S#sB'-.S(B7<= !3*d"23 !3%*- S"ItO$h 3S 89 "C:t#34 "C5#:. lKc2>MN	sCx.S> sCx.sCx.:9 :@6     L 0 
 E 
 E	 w 
 wQ Q,G G&,4@6 0 $*u>(3	50#p. p.f]hE hETPV Pde6 eNuJV uJneF eNL!J L!J\BNF N`e eN=& =~4 4l[9 [9z
oS& oSbVS VSr      !  ! !"        ,- (&' #'( $ "#   %& ""#  -. )'( $         ;< 7AB >:; 7 <= 8>? ; "#   !   12 -./ +   ,- (-. */0 ,./ +,. )+- (,. )*- '+4 (,6 )2< / CD ? #$ $% !&' #%& "#%  "$ #%  !$ '* $*- '%) "(, %(, %'+ $*/ '). & () $%& " &' "#$  '( $&' #&( #)+ & ,- (,- ),- )23 /(* %.0 +02 -), &,/ ),/ )+/ (15 .(, %/3 ,). &,1 ),1 ))/ &,2 )-3 *.5 +(/ %18 .4; 1+4 (*3 ')3 &'1 $ &' "() %#$  &' # +, '() %,- )+, (+- (.0 +%' "$' !'* $), &&* #'+ $&* #'+ $%* "*/ '). &%+ "*0 '.4 + !"  +- ',. )+, ( -. ),- ) *+ & #$ !" !" #$  *, ' !" "# &' #+, ( $%  #$   -. ) ./ * %& !!" !" #$  *+ '#$   )+ % #$ $% !#$    #%  #%  *, ' !" #$       )* %'( $12 . )* %-. *-. * *+ &#$  )* &$% !'( $ $%  &' #!"     () $*+ '*+ '+, (         #$ )* &() %+, (&' #        !   !      !"  $%   ! "# !"  +, ')* &'( $ "# !"  !     !"  %& !'( $ "# #$  #$  )* & *+ &)* &)* & %& !'( $'( $ !"  !"       &' #$% ! ! "# "$ !  " %' "%' "%' ""$   &( ##%  *, '$& !,. )&( #&( #%' "02 -%' " "# "# #$   '( #$% ! %& !$% !)* &$% !+, ( &' ""# !"  #$ $% !$% !)* &"# %& " %& !%& "#$  $% !!" "# )* &%& " %& !&' #%& "&' #&' #+, ('( $&' #-. * %& !%& "            &' "%& " "# "# "# %& "%& ""# &' # ,- (,- ) !"  !  "# &' # '( #&' #    !" !" #%    #%     ,- (+, ()* & $%  !"  ! #$  () %)* &$% !+, ( ! "# +- (        !"    '( #&' #-. *'( $/0 ,/0 , 12 -01 -/0 ,/0 , -. )&' # 89 423 /         "# "# %& "%& " ! #$  () %  ! %& "%' ")+ &(* %    "#    #$                #    !       ,2 )$   )* %       "# $% !%& "&' # %& ! '( # "#         "# "#    "  $& !   !"  !  ! !"  ! !" !"  !  ! !" !# !# !# !# !# !# #%  !# !# !# !# !# !#  " !# !# #%  !# "$ !#  "  "  "  "  "  "  "  "  "  "  "  " !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !# !#   #$   !         #$   () %#$      %' " $%    !       !"    %& ""#   !              #$    '( #%& ")* &"# ') $') $%' "$' !"% &) # '( #+, (+, ( () $!" $% !"# %& "') $$& !"$ %( "$' !$' !'+ $ &' "$% !#$  )* & "#                        $%  )* & !" +- ( !       !                                 
                                       !                         !#  "$   ! !   "        "              #&  ! $' !"  "     "%  !  # "          !"                    ! !" !" "#  () $  !        "# '( $      $%      #$ #$   #$ $% !$% !&' #'( $ %& !!" #$       #$  $% ! () %!"  ! !           '( # '( # &' ""#  !"  !  ! "#  )* %%& "'( $  !  !  #%      !"       !  ! !"    !" $% !              !  ! &' ##$   "# %& "/0 ,23 / $%   "# !"  '( #$% ! "# #$  !" !" !" !"       !  ,- (!" "#  !"  ! () % *+ & "#    #$    !         () $ !"  !     #$  $% !%& "&' #"#  !            !             !#       #/ ". $2 !&6 #'8 $%4 "$2 !!, /H ,"3  /  / - #5  !1  / #:  $: !!0 $< !%< "" "- !+ $1 !%1 ")9 &-A *4O 1(7 %,? )3M 0(7 %*; '.C +5Q 2)9 &-A *4O 1*; '.C +5Q 2)9 &-A *4O 1$ #5  +> ($. !"1 *: '%/ "#2  +; () "/  +  + #/  $+ !*2 '5H 26D 3;B 80> -.: +)0 &.: ++4 (!+ "' -: *.6 +4< 15> 25> 2)2 &-: *'. $.< +-: **4 '!+ "' -: *.6 +3: 05> 23: 0)2 &'. $!+  )  ) % *= '*= '#/   ) '7 $#/  &5 ##/  &5 #&5 #(9 %#/  $+ !+4 (/< ,)0 & + "/ "/ &7 #&7 #(@ %#6  #6  *D '&< ##6   0  0 ( $  0  0 !2  0 ( $ ,   ( !2 #6  "4 . %: ""4 &@ #"4 "4 , & ( " , "4  0 '> $+: (+: (*8 '-> *(4 %(4 %/B ,4L 1,< )+ "1 + $5 !" ( # # %3 "*= '  ". '8 $&6 #%4 "$2 !'8 $&6 #$ #0  & #0  ". & %8 "#4  '< $+D (*B ''< $'< $#4  '< $, #4  $6 !"2 "2 ,  ( +8 (-< *)4 &'0 $(2 %)4 &%, "%, ")4 &)4 &(2 %)4 &*6 ')4 &(2 %)4 &+D (,@ )7D 48@ 5>F ;;@ 818 .2: /*B '-H ** & & *0 '*0 '*0 ''< $)@ &-H *)@ &2R /): &>U ;"2 #.  -9 */= ,/= ,2R /3N 08? 5>K ;?G <KY HKY HBG ?9A 6( $ #*  '2 $&0 #&0 #&0 #'2 $&0 #&0 #&0 #)@ &,F )&: ##4  %8 ")@ && )@ &"2 #4  '< $)@ &%8 "( ( $6 !(> %(> %'< $/L ,0N -#4   . ,  .  . & %- "&/ #%- "$+ !$+ !" !4 '@ $+H (/P ,6^ 3*F '.N +5\ 2*F ',J )0R -7` 4+H (/P ,6^ 3,J )0R -7` 4+H (/P ,6^ 3$8 !%: ")B &(@ %'> $&< #&= #)B &(@ %!4 %: "$8 !,E )*A ') /K ,'; $ - ,E ))? &+C (-G *+C (+C (0 . + ) !/ #3  "1 0M -)? & 0 $5 !% (9 %&5 #&5 #%3 "); &'7 $&5 #    $ $   !. $4 !,D )&8 #': $': $(< %(< %)> & ) ' # %   &   , &  !4 "4 %: ". ( , "4  "4 & (  0 "4 ,   * !2 !2  0 (@ %)B &( Qc  '' E
*K +*sF   AJ& J&AK%J.AJ8J8AKJ?AKKAK KAKKAK K AK%