|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/6] AMD-PVH: Do not get/set vlapic TPR
>>> On 22.06.15 at 18:37, <elena.ufimtseva@xxxxxxxxxx> wrote:
> @@ -2720,15 +2720,18 @@ void svm_vmexit_handler(struct cpu_user_regs *regs)
> }
>
> out:
> - if ( vcpu_guestmode )
Why can't you just adjust this if() and leave the rest of the code alone?
Jan
> - /* Don't clobber TPR of the nested guest. */
> - return;
> -
> - /* The exit may have updated the TPR: reflect this in the hardware vtpr
> */
> - intr = vmcb_get_vintr(vmcb);
> - intr.fields.tpr =
> - (vlapic_get_reg(vcpu_vlapic(v), APIC_TASKPRI) & 0xFF) >> 4;
> - vmcb_set_vintr(vmcb, intr);
> + /* Don't clobber TPR of the nested guest. */
> + if ( vcpu_guestmode && !is_pvh_domain(v->domain) )
> + {
> + /*
> + * The exit may have updated the TPR: reflect this in the hardware
> + * vtpr.
> + */
> + intr = vmcb_get_vintr(vmcb);
> + intr.fields.tpr =
> + (vlapic_get_reg(vcpu_vlapic(v), APIC_TASKPRI) & 0xFF) >> 4;
> + vmcb_set_vintr(vmcb, intr);
> + }
> }
>
> void svm_trace_vmentry(void)
> --
> 1.9.3
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |