mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
6b08cd6328
Provide interfaces for recognizing accesses to PMU-related MSRs and LVTPC APIC and process these accesses in Xen PMU code. (The interrupt handler performs XENPMU_flush right away in the beginning since no PMU emulation is available. It will be added with a later patch). Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Reviewed-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
16 lines
462 B
C
16 lines
462 B
C
#ifndef __XEN_PMU_H
|
|
#define __XEN_PMU_H
|
|
|
|
#include <xen/interface/xenpmu.h>
|
|
|
|
irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
|
|
void xen_pmu_init(int cpu);
|
|
void xen_pmu_finish(int cpu);
|
|
bool is_xen_pmu(int cpu);
|
|
bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err);
|
|
bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err);
|
|
int pmu_apic_update(uint32_t reg);
|
|
unsigned long long xen_read_pmc(int counter);
|
|
|
|
#endif /* __XEN_PMU_H */
|