Coverage Report

Created: 2017-10-25 09:10

/root/src/xen/xen/arch/x86/x86_64/physdev.c
Line
Count
Source (jump to first uncovered line)
1
/******************************************************************************
2
 * physdev.c
3
 */
4
5
asm(".file \"" __FILE__ "\"");
6
7
#include <xen/types.h>
8
#include <xen/guest_access.h>
9
#include <compat/xen.h>
10
#include <compat/event_channel.h>
11
#include <compat/physdev.h>
12
#include <asm/hypercall.h>
13
14
#define do_physdev_op compat_physdev_op
15
16
#define physdev_apic               compat_physdev_apic
17
#define physdev_apic_t             physdev_apic_compat_t
18
19
#define xen_physdev_eoi physdev_eoi
20
CHECK_physdev_eoi;
21
#undef xen_physdev_eoi
22
23
#define physdev_pirq_eoi_gmfn      compat_physdev_pirq_eoi_gmfn
24
#define physdev_pirq_eoi_gmfn_t    physdev_pirq_eoi_gmfn_compat_t
25
26
#define physdev_set_iobitmap       compat_physdev_set_iobitmap
27
#define physdev_set_iobitmap_t     physdev_set_iobitmap_compat_t
28
29
#define xen_physdev_set_iopl physdev_set_iopl
30
CHECK_physdev_set_iopl;
31
#undef xen_physdev_set_iopl
32
33
#define xen_physdev_irq physdev_irq
34
CHECK_physdev_irq;
35
#undef xen_physdev_irq
36
37
#define xen_physdev_irq_status_query physdev_irq_status_query
38
CHECK_physdev_irq_status_query;
39
#undef xen_physdev_irq_status_query
40
41
0
#define physdev_map_pirq_t         physdev_map_pirq_compat_t
42
43
#define xen_physdev_unmap_pirq physdev_unmap_pirq
44
CHECK_physdev_unmap_pirq;
45
#undef xen_physdev_unmap_pirq
46
47
#define xen_physdev_manage_pci physdev_manage_pci
48
CHECK_physdev_manage_pci;
49
#undef xen_physdev_manage_pci
50
51
#define xen_physdev_manage_pci_ext physdev_manage_pci_ext
52
CHECK_physdev_manage_pci_ext;
53
#undef xen_physdev_manage_pci_ext
54
55
#define xen_physdev_restore_msi physdev_restore_msi
56
CHECK_physdev_restore_msi;
57
#undef xen_physdev_restore_msi
58
59
#define xen_physdev_setup_gsi physdev_setup_gsi
60
CHECK_physdev_setup_gsi;
61
#undef xen_physdev_setup_gsi
62
63
#define xen_physdev_get_free_pirq physdev_get_free_pirq
64
CHECK_physdev_get_free_pirq;
65
#undef xen_physdev_get_free_pirq
66
67
#define xen_physdev_pci_mmcfg_reserved physdev_pci_mmcfg_reserved
68
CHECK_physdev_pci_mmcfg_reserved;
69
#undef xen_physdev_pci_mmcfg_reserved
70
71
#define xen_physdev_pci_device_add physdev_pci_device_add
72
CHECK_physdev_pci_device_add
73
#undef xen_physdev_pci_device_add
74
75
#define xen_physdev_pci_device physdev_pci_device
76
CHECK_physdev_pci_device
77
#undef xen_physdev_pci_device
78
79
#define COMPAT
80
#undef guest_handle_okay
81
0
#define guest_handle_okay          compat_handle_okay
82
typedef int ret_t;
83
84
#include "../physdev.c"
85
86
/*
87
 * Local variables:
88
 * mode: C
89
 * c-file-style: "BSD"
90
 * c-basic-offset: 4
91
 * tab-width: 4
92
 * indent-tabs-mode: nil
93
 * End:
94
 */