diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2017-03-14 13:35:54 -0400 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2017-05-02 05:10:06 -0400 |
commit | 16624390816c4c40df3d777b34665d3fd01e693d (patch) | |
tree | 10f0b8b54e59956937ce6cbd70cd8eb42e50d6d1 /include/xen | |
parent | 4fee9ad84e9648a3cb07586501d283d3aef9f923 (diff) |
xen: create xen_create/destroy_contiguous_region() stubs for PVHVM only 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>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/xen-ops.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index b5486e648607..f93911452f9e 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h | |||
@@ -34,11 +34,25 @@ u64 xen_steal_clock(int cpu); | |||
34 | int xen_setup_shutdown_event(void); | 34 | int xen_setup_shutdown_event(void); |
35 | 35 | ||
36 | extern unsigned long *xen_contiguous_bitmap; | 36 | extern unsigned long *xen_contiguous_bitmap; |
37 | |||
38 | #ifdef CONFIG_XEN_PV | ||
37 | int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order, | 39 | int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order, |
38 | unsigned int address_bits, | 40 | unsigned int address_bits, |
39 | dma_addr_t *dma_handle); | 41 | dma_addr_t *dma_handle); |
40 | 42 | ||
41 | void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order); | 43 | void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order); |
44 | #else | ||
45 | static inline int xen_create_contiguous_region(phys_addr_t pstart, | ||
46 | unsigned int order, | ||
47 | unsigned int address_bits, | ||
48 | dma_addr_t *dma_handle) | ||
49 | { | ||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | static inline void xen_destroy_contiguous_region(phys_addr_t pstart, | ||
54 | unsigned int order) { } | ||
55 | #endif | ||
42 | 56 | ||
43 | struct vm_area_struct; | 57 | struct vm_area_struct; |
44 | 58 | ||