x86: set the vPMU interface based on the presence of a lapic
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 15 Dec 2015 13:11:11 +0000 (14:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Dec 2015 13:11:11 +0000 (14:11 +0100)
commitfee4100a9ed9b801eddaccb96b4f63c8265af68a
tree63ab517cc26cceca978a696c5d07e9ff747f189f
parent6285ff920dfc42eb15890b8877da72aa9bae8592
x86: set the vPMU interface based on the presence of a lapic

Instead of choosing the interface to expose to guests based on the guest
type, do it based on whether the guest has an emulated local apic or not.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/cpu/vpmu_amd.c
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c