>>> On 11.10.16 at 02:57, <feng...@intel.com> wrote:
> + * In fact, we can remove this hooks inside itself if no new device is in the
> + * process of getting assigned and "from" hook is NULL. However, it is not
> + * straightforward to find a clear solution, so just leave it here.
> + */
> static void vmx_pi_switch_to(struct vcpu *v)
I think this comment would better go next to where the NULL
assignment is (to be).
> @@ -221,9 +226,8 @@ void vmx_pi_hooks_deassign(struct domain *d)
> d->arch.hvm_domain.vmx.vcpu_block = NULL;
> - d->arch.hvm_domain.vmx.pi_switch_from = NULL;
> - d->arch.hvm_domain.vmx.pi_switch_to = NULL;
> d->arch.hvm_domain.vmx.pi_do_resume = NULL;
> + d->arch.hvm_domain.vmx.pi_switch_from = NULL;
Besides the discrepancy of description and implementation which
Kevin has already pointed out, I'd also like to ask to replace the
"statically" in title and description. "Statically" would mean the
hooks get installed unconditionally at domain creation time (or
even at build time). Instead I think you mean "keep two PI hooks
assigned" or "permanently assign two PI hooks".
Xen-devel mailing list