[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH xenvif] Bring XENBUS interface versions up to date...
From: Paul Durrant <pdurrant@xxxxxxxxxx> ... and update binding accordlingly. Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx> --- include/evtchn_interface.h | 46 +++++++++++++++++++++----------------- include/gnttab_interface.h | 44 ++++++++++++++++++++++++------------ include/store_interface.h | 22 +----------------- include/unplug_interface.h | 2 +- src/xenvif.inf | 6 ++--- src/xenvif/controller.c | 1 + src/xenvif/receiver.c | 1 + src/xenvif/transmitter.c | 1 + 8 files changed, 63 insertions(+), 60 deletions(-) diff --git a/include/evtchn_interface.h b/include/evtchn_interface.h index 068a69734fe9..05c342e50db8 100644 --- a/include/evtchn_interface.h +++ b/include/evtchn_interface.h @@ -100,6 +100,8 @@ typedef VOID \b VIRQ: \param Index The index number of the VIRQ + \param Group The group number of the CPU that should handle the VIRQ + \param Number The relative number of the CPU that should handle the VIRQ \return Event channel handle */ @@ -141,7 +143,7 @@ typedef VOID \param Interface The interface header \param Channel The channel handle \param InCallback Set to TRUE if this method is invoked in context of the channel callback - \param Force Set to TRUE if the unmask must succeed, otherwise set to FALSE and the function will return FALSE if the unmask did not complete. + \param Force Set to TRUE if the unmask must succeed, otherwise set to FALSE and the function will return TRUE if the unmask did not complete and there is still an event pending. */ typedef BOOLEAN (*XENBUS_EVTCHN_UNMASK)( @@ -249,23 +251,6 @@ typedef VOID DEFINE_GUID(GUID_XENBUS_EVTCHN_INTERFACE, 0xbe2440ac, 0x1098, 0x4150, 0xaf, 0x4d, 0x45, 0x2f, 0xad, 0xce, 0xf9, 0x23); -/*! \struct _XENBUS_EVTCHN_INTERFACE_V4 - \brief EVTCHN interface version 4 - \ingroup interfaces -*/ -struct _XENBUS_EVTCHN_INTERFACE_V4 { - INTERFACE Interface; - XENBUS_EVTCHN_ACQUIRE EvtchnAcquire; - XENBUS_EVTCHN_RELEASE EvtchnRelease; - XENBUS_EVTCHN_OPEN EvtchnOpen; - XENBUS_EVTCHN_BIND EvtchnBind; - XENBUS_EVTCHN_UNMASK_V4 EvtchnUnmaskVersion4; - XENBUS_EVTCHN_SEND_V1 EvtchnSendVersion1; - XENBUS_EVTCHN_TRIGGER EvtchnTrigger; - XENBUS_EVTCHN_GET_PORT EvtchnGetPort; - XENBUS_EVTCHN_CLOSE EvtchnClose; -}; - /*! \struct _XENBUS_EVTCHN_INTERFACE_V5 \brief EVTCHN interface version 5 \ingroup interfaces @@ -340,7 +325,26 @@ struct _XENBUS_EVTCHN_INTERFACE_V8 { XENBUS_EVTCHN_CLOSE EvtchnClose; }; -typedef struct _XENBUS_EVTCHN_INTERFACE_V8 XENBUS_EVTCHN_INTERFACE, *PXENBUS_EVTCHN_INTERFACE; +/*! \struct _XENBUS_EVTCHN_INTERFACE_V9 + \brief EVTCHN interface version 9 + \ingroup interfaces +*/ +struct _XENBUS_EVTCHN_INTERFACE_V9 { + INTERFACE Interface; + XENBUS_EVTCHN_ACQUIRE EvtchnAcquire; + XENBUS_EVTCHN_RELEASE EvtchnRelease; + XENBUS_EVTCHN_OPEN EvtchnOpen; + XENBUS_EVTCHN_BIND EvtchnBind; + XENBUS_EVTCHN_UNMASK EvtchnUnmask; + XENBUS_EVTCHN_SEND EvtchnSend; + XENBUS_EVTCHN_TRIGGER EvtchnTrigger; + XENBUS_EVTCHN_GET_COUNT EvtchnGetCount; + XENBUS_EVTCHN_WAIT EvtchnWait; + XENBUS_EVTCHN_GET_PORT EvtchnGetPort; + XENBUS_EVTCHN_CLOSE EvtchnClose; +}; + +typedef struct _XENBUS_EVTCHN_INTERFACE_V9 XENBUS_EVTCHN_INTERFACE, *PXENBUS_EVTCHN_INTERFACE; /*! \def XENBUS_EVTCHN \brief Macro at assist in method invocation @@ -350,8 +354,8 @@ typedef struct _XENBUS_EVTCHN_INTERFACE_V8 XENBUS_EVTCHN_INTERFACE, *PXENBUS_EVT #endif // _WINDLL -#define XENBUS_EVTCHN_INTERFACE_VERSION_MIN 4 -#define XENBUS_EVTCHN_INTERFACE_VERSION_MAX 8 +#define XENBUS_EVTCHN_INTERFACE_VERSION_MIN 5 +#define XENBUS_EVTCHN_INTERFACE_VERSION_MAX 9 #endif // _XENBUS_EVTCHN_INTERFACE_H diff --git a/include/gnttab_interface.h b/include/gnttab_interface.h index 61272ab41cb3..e3ee888bd979 100644 --- a/include/gnttab_interface.h +++ b/include/gnttab_interface.h @@ -72,12 +72,24 @@ typedef VOID IN PINTERFACE Interface ); +typedef NTSTATUS +(*XENBUS_GNTTAB_CREATE_CACHE_V1)( + IN PINTERFACE Interface, + IN const CHAR *Name, + IN ULONG Reservation, + IN XENBUS_CACHE_ACQUIRE_LOCK AcquireLock, + IN XENBUS_CACHE_RELEASE_LOCK ReleaseLock, + IN PVOID Argument OPTIONAL, + OUT PXENBUS_GNTTAB_CACHE *Cache + ); + /*! \typedef XENBUS_GNTTAB_CREATE_CACHE \brief Create a cache of grant table entries \param Interface The interface header \param Name A name for the cache which will be used in debug output \param Reservation The target minimum population of the cache + \param Cap The maximum population of the cache \param AcquireLock A callback invoked to acquire a spinlock \param ReleaseLock A callback invoked to release the spinlock \param Argument An optional context argument passed to the callbacks @@ -88,6 +100,7 @@ typedef NTSTATUS IN PINTERFACE Interface, IN const CHAR *Name, IN ULONG Reservation, + IN ULONG Cap, IN XENBUS_CACHE_ACQUIRE_LOCK AcquireLock, IN XENBUS_CACHE_RELEASE_LOCK ReleaseLock, IN PVOID Argument OPTIONAL, @@ -220,43 +233,46 @@ typedef NTSTATUS DEFINE_GUID(GUID_XENBUS_GNTTAB_INTERFACE, 0x763679c5, 0xe5c2, 0x4a6d, 0x8b, 0x88, 0x6b, 0xb0, 0x2e, 0xc4, 0x2d, 0x8e); -/*! \struct _XENBUS_GNTTAB_INTERFACE_V1 - \brief GNTTAB interface version 1 +/*! \struct _XENBUS_GNTTAB_INTERFACE_V2 + \brief GNTTAB interface version 2 \ingroup interfaces */ -struct _XENBUS_GNTTAB_INTERFACE_V1 { +struct _XENBUS_GNTTAB_INTERFACE_V2 { INTERFACE Interface; XENBUS_GNTTAB_ACQUIRE GnttabAcquire; XENBUS_GNTTAB_RELEASE GnttabRelease; - XENBUS_GNTTAB_CREATE_CACHE GnttabCreateCache; + XENBUS_GNTTAB_CREATE_CACHE_V1 GnttabCreateCacheVersion1; XENBUS_GNTTAB_PERMIT_FOREIGN_ACCESS GnttabPermitForeignAccess; XENBUS_GNTTAB_REVOKE_FOREIGN_ACCESS GnttabRevokeForeignAccess; XENBUS_GNTTAB_GET_REFERENCE GnttabGetReference; XENBUS_GNTTAB_DESTROY_CACHE GnttabDestroyCache; + XENBUS_GNTTAB_MAP_FOREIGN_PAGES GnttabMapForeignPages; + XENBUS_GNTTAB_UNMAP_FOREIGN_PAGES GnttabUnmapForeignPages; }; -/*! \struct _XENBUS_GNTTAB_INTERFACE_V2 - \brief GNTTAB interface version 2 +/*! \struct _XENBUS_GNTTAB_INTERFACE_V3 + \brief GNTTAB interface version 3 \ingroup interfaces */ -struct _XENBUS_GNTTAB_INTERFACE_V2 { +struct _XENBUS_GNTTAB_INTERFACE_V3 { INTERFACE Interface; XENBUS_GNTTAB_ACQUIRE GnttabAcquire; XENBUS_GNTTAB_RELEASE GnttabRelease; - XENBUS_GNTTAB_CREATE_CACHE GnttabCreateCache; + XENBUS_GNTTAB_CREATE_CACHE_V1 GnttabCreateCacheVersion1; XENBUS_GNTTAB_PERMIT_FOREIGN_ACCESS GnttabPermitForeignAccess; XENBUS_GNTTAB_REVOKE_FOREIGN_ACCESS GnttabRevokeForeignAccess; XENBUS_GNTTAB_GET_REFERENCE GnttabGetReference; + XENBUS_GNTTAB_QUERY_REFERENCE GnttabQueryReference; XENBUS_GNTTAB_DESTROY_CACHE GnttabDestroyCache; XENBUS_GNTTAB_MAP_FOREIGN_PAGES GnttabMapForeignPages; XENBUS_GNTTAB_UNMAP_FOREIGN_PAGES GnttabUnmapForeignPages; }; -/*! \struct _XENBUS_GNTTAB_INTERFACE_V3 - \brief GNTTAB interface version 3 +/*! \struct _XENBUS_GNTTAB_INTERFACE_V4 + \brief GNTTAB interface version 4 \ingroup interfaces */ -struct _XENBUS_GNTTAB_INTERFACE_V3 { +struct _XENBUS_GNTTAB_INTERFACE_V4 { INTERFACE Interface; XENBUS_GNTTAB_ACQUIRE GnttabAcquire; XENBUS_GNTTAB_RELEASE GnttabRelease; @@ -270,7 +286,7 @@ struct _XENBUS_GNTTAB_INTERFACE_V3 { XENBUS_GNTTAB_UNMAP_FOREIGN_PAGES GnttabUnmapForeignPages; }; -typedef struct _XENBUS_GNTTAB_INTERFACE_V3 XENBUS_GNTTAB_INTERFACE, *PXENBUS_GNTTAB_INTERFACE; +typedef struct _XENBUS_GNTTAB_INTERFACE_V4 XENBUS_GNTTAB_INTERFACE, *PXENBUS_GNTTAB_INTERFACE; /*! \def XENBUS_GNTTAB \brief Macro at assist in method invocation @@ -280,8 +296,8 @@ typedef struct _XENBUS_GNTTAB_INTERFACE_V3 XENBUS_GNTTAB_INTERFACE, *PXENBUS_GNT #endif // _WINDLL -#define XENBUS_GNTTAB_INTERFACE_VERSION_MIN 1 -#define XENBUS_GNTTAB_INTERFACE_VERSION_MAX 3 +#define XENBUS_GNTTAB_INTERFACE_VERSION_MIN 2 +#define XENBUS_GNTTAB_INTERFACE_VERSION_MAX 4 #endif // _XENBUS_GNTTAB_INTERFACE_H diff --git a/include/store_interface.h b/include/store_interface.h index 52f1a1dde592..e1251dd1369f 100644 --- a/include/store_interface.h +++ b/include/store_interface.h @@ -290,26 +290,6 @@ typedef NTSTATUS DEFINE_GUID(GUID_XENBUS_STORE_INTERFACE, 0x86824c3b, 0xd34e, 0x4753, 0xb2, 0x81, 0x2f, 0x1e, 0x3a, 0xd2, 0x14, 0xd7); -/*! \struct _XENBUS_STORE_INTERFACE_V1 - \brief STORE interface version 1 - \ingroup interfaces -*/ -struct _XENBUS_STORE_INTERFACE_V1 { - INTERFACE Interface; - XENBUS_STORE_ACQUIRE StoreAcquire; - XENBUS_STORE_RELEASE StoreRelease; - XENBUS_STORE_FREE StoreFree; - XENBUS_STORE_READ StoreRead; - XENBUS_STORE_PRINTF StorePrintf; - XENBUS_STORE_REMOVE StoreRemove; - XENBUS_STORE_DIRECTORY StoreDirectory; - XENBUS_STORE_TRANSACTION_START StoreTransactionStart; - XENBUS_STORE_TRANSACTION_END StoreTransactionEnd; - XENBUS_STORE_WATCH_ADD StoreWatchAdd; - XENBUS_STORE_WATCH_REMOVE StoreWatchRemove; - XENBUS_STORE_POLL StorePoll; -}; - /*! \struct _XENBUS_STORE_INTERFACE_V2 \brief STORE interface version 2 \ingroup interfaces @@ -341,7 +321,7 @@ typedef struct _XENBUS_STORE_INTERFACE_V2 XENBUS_STORE_INTERFACE, *PXENBUS_STORE #endif // _WINDLL -#define XENBUS_STORE_INTERFACE_VERSION_MIN 1 +#define XENBUS_STORE_INTERFACE_VERSION_MIN 2 #define XENBUS_STORE_INTERFACE_VERSION_MAX 2 #endif // _XENBUS_STORE_INTERFACE_H diff --git a/include/unplug_interface.h b/include/unplug_interface.h index 6f459754cd41..83b3dc98d8be 100644 --- a/include/unplug_interface.h +++ b/include/unplug_interface.h @@ -85,7 +85,7 @@ typedef VOID ); // {73db6517-3d06-4937-989f-199b7501e229} -DEFINE_GUID(GUID_XENBUS_UNPLUG_INTERFACE, +DEFINE_GUID(GUID_XENBUS_UNPLUG_INTERFACE, 0x73db6517, 0x3d06, 0x4937, 0x98, 0x9f, 0x19, 0x9b, 0x75, 0x01, 0xe2, 0x29); /*! \struct _XENBUS_UNPLUG_INTERFACE_V1 diff --git a/src/xenvif.inf b/src/xenvif.inf index b091cfd36d04..5dfcd90a631d 100644 --- a/src/xenvif.inf +++ b/src/xenvif.inf @@ -59,9 +59,9 @@ xenvif_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll ; DisplayName Section DeviceID ; ----------- ------- -------- -%XenVifName% =XenVif_Inst, XENBUS\VEN_@VENDOR_PREFIX@@VENDOR_DEVICE_ID@&DEV_VIF&REV_09000005 -%XenVifName% =XenVif_Inst, XENBUS\VEN_@VENDOR_PREFIX@0001&DEV_VIF&REV_09000005 -%XenVifName% =XenVif_Inst, XENBUS\VEN_@VENDOR_PREFIX@0002&DEV_VIF&REV_09000005 +%XenVifName% =XenVif_Inst, XENBUS\VEN_@VENDOR_PREFIX@@VENDOR_DEVICE_ID@&DEV_VIF&REV_09000009 +%XenVifName% =XenVif_Inst, XENBUS\VEN_@VENDOR_PREFIX@0001&DEV_VIF&REV_09000009 +%XenVifName% =XenVif_Inst, XENBUS\VEN_@VENDOR_PREFIX@0002&DEV_VIF&REV_09000009 [XenVif_Inst] CopyFiles=XenVif_Copyfiles diff --git a/src/xenvif/controller.c b/src/xenvif/controller.c index 35901a264388..3cd0a263aff7 100644 --- a/src/xenvif/controller.c +++ b/src/xenvif/controller.c @@ -456,6 +456,7 @@ ControllerConnect( &Controller->GnttabInterface, Name, 0, + 0, ControllerAcquireLock, ControllerReleaseLock, Controller, diff --git a/src/xenvif/receiver.c b/src/xenvif/receiver.c index 7125743f7443..c70d9382358d 100644 --- a/src/xenvif/receiver.c +++ b/src/xenvif/receiver.c @@ -2581,6 +2581,7 @@ __ReceiverRingConnect( &Receiver->GnttabInterface, Name, 0, + 0, ReceiverRingAcquireLock, ReceiverRingReleaseLock, Ring, diff --git a/src/xenvif/transmitter.c b/src/xenvif/transmitter.c index 6a4db1f0d922..f6935a66e695 100644 --- a/src/xenvif/transmitter.c +++ b/src/xenvif/transmitter.c @@ -3692,6 +3692,7 @@ __TransmitterRingConnect( &Transmitter->GnttabInterface, Name, 0, + 0, TransmitterRingAcquireLock, TransmitterRingReleaseLock, Ring, -- 2.17.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |