|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v21 11/14] x86/VPMU: Handle PMU interrupts for PV(H) guests
On 05/18/2015 05:43 AM, Dietmar Hahn wrote: Am Freitag 08 Mai 2015, 17:06:11 schrieb Boris Ostrovsky: ...
I was actually thinking about (eventually) dropping ops tests and checking that all of them exist during VPMU initialization. As for this particular test, it may be worth moving it to the beginning of the routine, mostly to guard against spurious interrupts (but also to avoid performing it more than once) } -void vpmu_load(struct vcpu *v) +int vpmu_load(struct vcpu *v, bool_t verify)vpmu_load uses "verify" but within the arch_vpmu_load functions (core2_vpmu_load() and amd_vpmu_load()) you use "from_guest" for the same meaning. This is a little bit confusing. Always using "verify" would be clearer I think. Then this will not be consistent with the save part (which doesn't use the flag to verify the context but rather to only state that the routine should copy it). So I think renaming 'verify' to 'from_guest' and keeping arch ops as they are now would be more consistent. Thanks. -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |