Skip to content

Commit

Permalink
xen: create xen_create/destroy_contiguous_region() stubs for PVHVM on…
Browse files Browse the repository at this point in the history
…ly builds

xen_create_contiguous_region()/xen_create_contiguous_region() are PV-only,
they both contain xen_feature(XENFEAT_auto_translated_physmap) check and
bail in the very beginning.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
  • Loading branch information
vittyvk authored and jgross1 committed May 2, 2017
1 parent 4fee9ad commit 1662439
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,25 @@ u64 xen_steal_clock(int cpu);
int xen_setup_shutdown_event(void);

extern unsigned long *xen_contiguous_bitmap;

#ifdef CONFIG_XEN_PV
int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
unsigned int address_bits,
dma_addr_t *dma_handle);

void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
#else
static inline int xen_create_contiguous_region(phys_addr_t pstart,
unsigned int order,
unsigned int address_bits,
dma_addr_t *dma_handle)
{
return 0;
}

static inline void xen_destroy_contiguous_region(phys_addr_t pstart,
unsigned int order) { }
#endif

struct vm_area_struct;

Expand Down

0 comments on commit 1662439

Please sign in to comment.