[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XENBUS PATCH v3 5/9] Add EMULATED v3





On Mon, Aug 4, 2025 at 4:35 PM Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx> wrote:
+/*! \typedef XENFILT_EMULATED_IS_DEVICE_PRESENT
+    \brief Determine whether a given device is present in the VM
+
+    \param Interface The interface header
+    \param DeviceID The DeviceID of the device, or NULL to query the force-
+           activated device
+    \param InstanceID The (un-prefixed) InstanceID of the device or
+           NULL to match any device instance
+    \param IsForceActivated Returns 1 if the device was force-activated, -1 if
+           the device was not active and another device was force-activated,
+           and 0 otherwise
+    \return TRUE if the specified device is present in the system or
+            FALSE if it is not
+*/
+typedef BOOLEAN
+(*XENFILT_EMULATED_IS_DEVICE_PRESENT)(
+    _In_ PVOID      Context,
+    _In_opt_ PSTR   DeviceID,
+    _In_opt_ PSTR   InstanceID,
+    _Out_opt_ PLONG IsForceActivated
+    );
+

Making IsForceActivated an enum would help with clarity. The enum probably needs defining in the emulated_interface.h file, so reordering patches or defining the enum first may help. 

Owen

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.