>>> On 11.12.15 at 08:51, <kevin.t...@intel.com> wrote: >> From: Roger Pau Monne >> Sent: Tuesday, December 08, 2015 12:48 AM >> >> 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....@citrix.com> >> Signed-off-by: Boris Ostrovsky <boris.ostrov...@oracle.com> >> Acked-by: Jan Beulich <jbeul...@suse.com> >> Cc: Jan Beulich <jbeul...@suse.com> >> Cc: Andrew Cooper <andrew.coop...@citrix.com> >> --- > > [...] > >> @@ -637,7 +638,7 @@ long do_xenpmu_op(unsigned int op, >> XEN_GUEST_HANDLE_PARAM(xen_pmu_params_t) arg) >> struct xen_pmu_data *xenpmu_data; >> struct vpmu_struct *vpmu; >> >> - if ( !opt_vpmu_enabled ) >> + if ( !opt_vpmu_enabled || has_vlapic(current->domain) ) >> return -EOPNOTSUPP; > > !has_vlapic(current->domain)?
Definitely not - a guest with vLAPIC shouldn't use the hypercall. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel