File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ config XEN
6
6
bool "Xen guest support"
7
7
depends on PARAVIRT
8
8
select PARAVIRT_CLOCK
9
- select XEN_HAVE_VPMU
10
9
depends on X86_64 || (X86_32 && X86_PAE)
11
10
depends on X86_LOCAL_APIC && X86_TSC
12
11
help
@@ -19,6 +18,7 @@ config XEN_PV
19
18
default y
20
19
depends on XEN
21
20
select XEN_HAVE_PVMMU
21
+ select XEN_HAVE_VPMU
22
22
help
23
23
Support running as a Xen PV guest.
24
24
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ nostackp := $(call cc-option, -fno-stack-protector)
10
10
CFLAGS_enlighten_pv.o := $(nostackp )
11
11
CFLAGS_mmu_pv.o := $(nostackp )
12
12
13
- obj-y := enlighten.o setup.o multicalls.o mmu.o irq.o \
13
+ obj-y := enlighten.o multicalls.o mmu.o irq.o \
14
14
time.o xen-asm.o xen-asm_$(BITS ) .o \
15
15
grant-table.o suspend.o platform-pci-unplug.o \
16
- p2m.o apic.o pmu.o enlighten_pv.o mmu_pv.o
16
+ p2m.o enlighten_pv.o mmu_pv.o
17
17
18
18
obj-$(CONFIG_XEN_PVHVM) += enlighten_hvm.o mmu_hvm.o suspend_hvm.o
19
- obj-$(CONFIG_XEN_PV) += suspend_pv.o
19
+ obj-$(CONFIG_XEN_PV) += setup.o apic.o pmu.o suspend_pv.o
20
20
obj-$(CONFIG_XEN_PVH) += enlighten_pvh.o
21
21
22
22
obj-$(CONFIG_EVENT_TRACING) += trace.o
Original file line number Diff line number Diff line change 4
4
#include <xen/interface/xenpmu.h>
5
5
6
6
irqreturn_t xen_pmu_irq_handler (int irq , void * dev_id );
7
+ #ifdef CONFIG_XEN_HAVE_VPMU
7
8
void xen_pmu_init (int cpu );
8
9
void xen_pmu_finish (int cpu );
10
+ #else
11
+ static inline void xen_pmu_init (int cpu ) {}
12
+ static inline void xen_pmu_finish (int cpu ) {}
13
+ #endif
9
14
bool is_xen_pmu (int cpu );
10
15
bool pmu_msr_read (unsigned int msr , uint64_t * val , int * err );
11
16
bool pmu_msr_write (unsigned int msr , uint32_t low , uint32_t high , int * err );
You can’t perform that action at this time.
0 commit comments