From patchwork Mon Nov 16 12:02:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 60272 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAGC3nk9016812 for ; Mon, 16 Nov 2009 12:03:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445AbZKPMDO (ORCPT ); Mon, 16 Nov 2009 07:03:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752795AbZKPMDG (ORCPT ); Mon, 16 Nov 2009 07:03:06 -0500 Received: from goliath.siemens.de ([192.35.17.28]:17308 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752740AbZKPMDD (ORCPT ); Mon, 16 Nov 2009 07:03:03 -0500 Received: from mail1.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id nAGC2r3v007277; Mon, 16 Nov 2009 13:02:53 +0100 Received: from [139.25.109.167] (mchn012c.mchp.siemens.de [139.25.109.167] (may be forged)) by mail1.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id nAGC2rwW025819; Mon, 16 Nov 2009 13:02:53 +0100 Message-ID: <4B013F6D.60003@siemens.com> Date: Mon, 16 Nov 2009 13:02:53 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Dietmar Maurer CC: Avi Kivity , kvm Subject: Re: problem wit svm_get_msr on kvm-kmod-2.6.31.6 References: <90D306BE6EBC8D428A824FBBA7A3113D014275E0F0@ronja.maurer-it.com> <4B012709.20508@redhat.com> <90D306BE6EBC8D428A824FBBA7A3113D014275E0F2@ronja.maurer-it.com> <4B012EDF.7030109@redhat.com> <90D306BE6EBC8D428A824FBBA7A3113D014275E0F5@ronja.maurer-it.com> In-Reply-To: <90D306BE6EBC8D428A824FBBA7A3113D014275E0F5@ronja.maurer-it.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h index b0b9f21..b0de024 100644 --- a/x86/external-module-compat.h +++ b/x86/external-module-compat.h @@ -94,9 +94,10 @@ static inline unsigned long long native_read_msr_safe(unsigned int msr, static inline unsigned long long kvm_native_read_tsc(void) { - unsigned long long val; - asm volatile("rdtsc" : "=A" (val)); - return val; + DECLARE_ARGS(val, low, high); + + asm volatile("rdtsc" : EAX_EDX_RET(val, low, high)); + return EAX_EDX_VAL(val, low, high); } #else /* >= 2.6.25 */