netchannel2-objs += autobypass.o
endif
-ifeq ($(XEN_HVM_GUEST),y)
-netchannel2-objs += hvm_guest_dummy.o
-else ifeq ($(CONFIG_PARAVIRT),y)
-netchannel2-objs += hvm_guest_dummy.o
-else
netchannel2-objs += receiver_map.o
-endif
ifeq ($(CONFIG_XEN_NETDEV2_BACKEND),y)
netchannel2-objs += netback2.o
}
#endif
-#ifndef CONFIG_PARAVIRT
-#include <xen/live_maps.h>
-#else
-static inline int page_is_tracked(struct page *p)
-{
- return 0;
-}
-static inline void lookup_tracker_page(struct page *p, domid_t *domid,
- grant_ref_t *gref)
-{
- BUG();
-}
-#endif
-
#endif /* !NETCHANNEL2_CORE_H__ */
#include <linux/delay.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
-#ifdef CONFIG_PARAVIRT
#include <xen/interface/xen.h>
#include <xen/grant_table.h>
#include <xen/events.h>
#include <xen/page.h>
-#else
-#include <xen/evtchn.h>
-#include <xen/gnttab.h>
-#endif
+#include <xen/live_maps.h>
#include <xen/xenbus.h>
#include "netchannel2_endpoint.h"
#include "netchannel2_core.h"
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <xen/live_maps.h>
-#include <xen/gnttab.h>
+#include <xen/grant_table.h>
#include <xen/balloon.h>
#include <xen/evtchn.h>
+#include <asm/xen/page.h>
#include "netchannel2_core.h"
#define MAX_MAPPED_FRAGS 1024
struct grant_unmapper {
unsigned nr_gops;
- gnttab_unmap_grant_ref_t gop_queue[32];
+ struct gnttab_unmap_grant_ref gop_queue[32];
};
static void do_unmaps(struct grant_unmapper *unmapper)
void *va,
int handle)
{
- gnttab_unmap_grant_ref_t *gop;
+ struct gnttab_unmap_grant_ref *gop;
if (unmapper->nr_gops == ARRAY_SIZE(unmapper->gop_queue))
do_unmaps(unmapper);
gop = &unmapper->gop_queue[unmapper->nr_gops];
struct rx_plan {
int is_failed;
unsigned nr_mops;
- gnttab_map_grant_ref_t mops[8];
+ struct gnttab_map_grant_ref mops[8];
struct rx_map_fragment *frags[8];
};
{
unsigned x;
int ret;
- gnttab_map_grant_ref_t *mop;
+ struct gnttab_map_grant_ref *mop;
if (rp->nr_mops == 0)
return;
struct netchannel2 *nc)
{
unsigned idx = fragment_idx(rx_frag);
- gnttab_map_grant_ref_t *mop;
+ struct gnttab_map_grant_ref *mop;
if (rp->nr_mops == ARRAY_SIZE(rp->mops))
flush_grant_operations(rp);
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/version.h>
-#ifdef CONFIG_PARAVIRT
#include <xen/grant_table.h>
#include <xen/page.h>
-#else
-#include <xen/gnttab.h>
-#endif
+#include <xen/live_maps.h>
#include "netchannel2_core.h"