Re: [Xen-devel] [PATCH 4/6] AMD-PVH: Do not get/set vlapic TPR

2015-06-23 Thread Jan Beulich
>>> On 22.06.15 at 18:37, 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. *

[Xen-devel] [PATCH 4/6] AMD-PVH: Do not get/set vlapic TPR

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva PVH doesn't use apic emulation hence vlapic->regs ptr is not set for it. Signed-off-by: Mukesh Rathor --- xen/arch/x86/hvm/svm/svm.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/h