On Mon, 2016-05-23 at 06:32 -0600, Jan Beulich wrote: > > > > On 20.05.16 at 10:53, <feng...@intel.com> wrote: > > @@ -247,13 +246,14 @@ 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; > > } > > > > static int vmx_domain_initialise(struct domain *d) > > { > > int rc; > > > > + d->arch.hvm_domain.vmx.pi_do_resume = vmx_pi_do_resume; > > + > > if ( !has_vlapic(d) ) > > return 0; > Along the lines of what I said last in for 1/3: There's no need to > always install the hook. For your purpose it ought to suffice to > simply not zap it upon device de-assign (which would still leave > all VMs without passed through devices without such useless to > them hook in place). > FWIW, +1 to this.
Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel