From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH] kvm: x86: Fix build in absence of KVM_CAP_ASYNC_PF Date: Thu, 27 Jan 2011 15:39:44 +0100 Message-ID: <4D4183B0.4020305@siemens.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Marcelo Tosatti , Anthony Liguori Return-path: Received: from thoth.sbs.de ([192.35.17.2]:21088 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753214Ab1A0OkB (ORCPT ); Thu, 27 Jan 2011 09:40:01 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Reported by Stefan Hajnoczi. Signed-off-by: Jan Kiszka --- Build regression of "Only read/write MSR_KVM_ASYNC_PF_EN if supported". target-i386/kvm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 8e8880a..05010bb 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -167,7 +167,9 @@ static int get_para_features(CPUState *env) features |= (1 << para_features[i].feature); } } +#ifdef KVM_CAP_ASYNC_PF has_msr_async_pf_en = features & (1 << KVM_FEATURE_ASYNC_PF); +#endif return features; } #endif -- 1.7.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57139 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiT0n-0002UO-FK for qemu-devel@nongnu.org; Thu, 27 Jan 2011 09:39:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiT0m-0008Be-A4 for qemu-devel@nongnu.org; Thu, 27 Jan 2011 09:39:49 -0500 Received: from thoth.sbs.de ([192.35.17.2]:20994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiT0m-0008BU-1T for qemu-devel@nongnu.org; Thu, 27 Jan 2011 09:39:48 -0500 Message-ID: <4D4183B0.4020305@siemens.com> Date: Thu, 27 Jan 2011 15:39:44 +0100 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] kvm: x86: Fix build in absence of KVM_CAP_ASYNC_PF List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti , Anthony Liguori Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Reported by Stefan Hajnoczi. Signed-off-by: Jan Kiszka --- Build regression of "Only read/write MSR_KVM_ASYNC_PF_EN if supported". target-i386/kvm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 8e8880a..05010bb 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -167,7 +167,9 @@ static int get_para_features(CPUState *env) features |= (1 << para_features[i].feature); } } +#ifdef KVM_CAP_ASYNC_PF has_msr_async_pf_en = features & (1 << KVM_FEATURE_ASYNC_PF); +#endif return features; } #endif -- 1.7.1