From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: [PATCH] make KVM conform to sucky rdmsr interface Date: Thu, 22 Mar 2007 13:51:57 +1100 Message-ID: <1174531917.2713.91.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , lkml - Kernel Mailing List To: Andi Kleen , Avi Kivity , Andrew Morton Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Grrr.... Andi refused to take my "rdmsr64" patch which moved to a function-like interface for MSRs, dismissing it as pointless churn. paravirt_ops cleanups changed a macro to an inline and spotted this kvm bug. Signed-off-by: Rusty Russell diff -r 47c6ee74a5c5 drivers/kvm/vmx.c --- a/drivers/kvm/vmx.c Thu Mar 22 12:57:44 2007 +1100 +++ b/drivers/kvm/vmx.c Thu Mar 22 13:38:24 2007 +1100 @@ -1127,7 +1127,7 @@ static int vmx_vcpu_setup(struct kvm_vcp u64 data; int j = vcpu->nmsrs; - if (rdmsr_safe(index, &data_low, &data_high) < 0) + if (rdmsr_safe(index, data_low, data_high) < 0) continue; if (wrmsr_safe(index, data_low, data_high) < 0) continue; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV