[PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-09 Thread Joerg Roedel
From: Joerg Roedel Currently we always write the next_rip of the shadow vmcb to the guests vmcb when we emulate a vmexit. This could confuse the guest when its cpuid indicated no support for the next_rip feature. Fix this by only propagating next_rip if the guest actually

Re: [PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-09 Thread Paolo Bonzini
On 09/10/2015 11:51, Joerg Roedel wrote: > From: Joerg Roedel > > Currently we always write the next_rip of the shadow vmcb to > the guests vmcb when we emulate a vmexit. This could confuse > the guest when its cpuid indicated no support for the > next_rip feature. > > Fix

Re: [PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-07 Thread kbuild test robot
Hi Joerg, [auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore] config: i386-randconfig-x009-201540 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>):

[PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-07 Thread Joerg Roedel
s that next_rip is supported there, like in this patch: >From 019afc60507618b8e44e0c67d5ea2d850d88c9dd Mon Sep 17 00:00:00 2001 From: Joerg Roedel <jroe...@suse.de> Date: Wed, 7 Oct 2015 13:38:19 +0200 Subject: [PATCH] kvm: svm: Only propagate next_rip when guest supports it Currently we a

Re: [PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-07 Thread Joerg Roedel
On Wed, Oct 07, 2015 at 11:48:36AM -0400, Bandan Das wrote: > Ok, understood now. The warn_on would trigger in L1 only if it has > decided to disable nrips for some reason as was the case here. So, > my reasoning behind putting the warning was incorrect. Okay, so I think the warning can be

Re: [PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-07 Thread Bandan Das
cates that next_rip is supported there, like in this patch: Yep, agreed. > From 019afc60507618b8e44e0c67d5ea2d850d88c9dd Mon Sep 17 00:00:00 2001 > From: Joerg Roedel <jroe...@suse.de> > Date: Wed, 7 Oct 2015 13:38:19 +0200 > Subject: [PATCH] kvm: svm: Only propagate nex

Re: [PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-07 Thread Dirk Müller
On 07.10.2015 18:14, Joerg Roedel wrote: Dirk is currently testing whether this (fixed) patch solves the problem in his setup. Tested-By: Dirk Mueller Works fine here. Thanks! Greetings, Dirk -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body