Re: [PATCH] svm: implement NEXTRIPsave SVM feature

Alexander Graf
2010-04-11T21:43:24Z

On 11.04.2010, at 23:40, Alexander Graf wrote:

>
> /* Either adds offset n to the instruction counter or takes the next
> instruction pointer from the vmcb if the CPU supports it */
>
> static u64 svm_next_rip(struct kvm_vcpu *vcpu, int add)
> {
> if (svm->vmcb->control.next_rip != 0)

In fact, that if should probably be:

if (svm_has(SVM_FEATURE_NRIP))

Alex