From: Alexander Graf Subject: Re: [PATCH] svm: implement NEXTRIPsave SVM feature Date: Sun, 11 Apr 2010 23:43:22 +0200 Message-ID: References: <1271020048-10083-1-git-send-email-andre.przywara@amd.com> <98EA2068-1878-4698-945B-10BACCB0631F@suse.de> Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Avi Kivity , kvm-devel list To: Andre Przywara Return-path: Received: from cantor.suse.de ([195.135.220.2]:57614 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753130Ab0DKVnY (ORCPT ); Sun, 11 Apr 2010 17:43:24 -0400 In-Reply-To: <98EA2068-1878-4698-945B-10BACCB0631F@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: 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