Acked-by: Andy King <acking@vmware.com>
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
u64 num_ppns;
void *produce_q;
void *consume_q;
u64 num_ppns;
void *produce_q;
void *consume_q;
+ struct ppn_set ppn_set;
static int qp_alloc_ppn_set(void *prod_q,
u64 num_produce_pages,
void *cons_q,
static int qp_alloc_ppn_set(void *prod_q,
u64 num_produce_pages,
void *cons_q,
- u64 num_consume_pages, struct PPNSet *ppn_set)
+ u64 num_consume_pages, struct ppn_set *ppn_set)
{
u32 *produce_ppns;
u32 *consume_ppns;
{
u32 *produce_ppns;
u32 *consume_ppns;
/*
* Frees the two list of PPNs for a queue pair.
*/
/*
* Frees the two list of PPNs for a queue pair.
*/
-static void qp_free_ppn_set(struct PPNSet *ppn_set)
+static void qp_free_ppn_set(struct ppn_set *ppn_set)
{
if (ppn_set->initialized) {
/* Do not call these functions on NULL inputs. */
{
if (ppn_set->initialized) {
/* Do not call these functions on NULL inputs. */
* Populates the list of PPNs in the hypercall structure with the PPNS
* of the produce queue and the consume queue.
*/
* Populates the list of PPNs in the hypercall structure with the PPNS
* of the produce queue and the consume queue.
*/
-static int qp_populate_ppn_set(u8 *call_buf, const struct PPNSet *ppn_set)
+static int qp_populate_ppn_set(u8 *call_buf, const struct ppn_set *ppn_set)
{
memcpy(call_buf, ppn_set->produce_ppns,
ppn_set->num_produce_pages * sizeof(*ppn_set->produce_ppns));
{
memcpy(call_buf, ppn_set->produce_ppns,
ppn_set->num_produce_pages * sizeof(*ppn_set->produce_ppns));
typedef int (*vmci_event_release_cb) (void *client_data);
/* Guest device port I/O. */
typedef int (*vmci_event_release_cb) (void *client_data);
/* Guest device port I/O. */
u64 num_produce_pages;
u64 num_consume_pages;
u32 *produce_ppns;
u64 num_produce_pages;
u64 num_consume_pages;
u32 *produce_ppns;