[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86/vpmu: put HVM only code under CONFIG_HVM
commit 6c851a9e5a535d38a15c0b1c4acf07dc7e1284e0 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Sun Aug 26 13:19:40 2018 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Tue Aug 28 10:49:12 2018 +0100 x86/vpmu: put HVM only code under CONFIG_HVM Change u32 to uint32_t while at it. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/cpu/vpmu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/cpu/vpmu.c b/xen/arch/x86/cpu/vpmu.c index b978e05613..fa6762fa86 100644 --- a/xen/arch/x86/cpu/vpmu.c +++ b/xen/arch/x86/cpu/vpmu.c @@ -196,8 +196,10 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs) { struct vcpu *sampled = current, *sampling; struct vpmu_struct *vpmu; +#ifdef CONFIG_HVM struct vlapic *vlapic; - u32 vlapic_lvtpc; + uint32_t vlapic_lvtpc; +#endif /* * dom0 will handle interrupt for special domains (e.g. idle domain) or, @@ -324,6 +326,7 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs) return; } +#ifdef CONFIG_HVM /* HVM guests */ vlapic = vcpu_vlapic(sampling); @@ -345,6 +348,7 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs) sampling->nmi_pending = 1; break; } +#endif } static void vpmu_save_force(void *arg) -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |