Patchwork [v2,01/24] kvm: x86: Fix build in absence of KVM_CAP_ASYNC_PF

login
register
mail settings
Submitter Jan Kiszka
Date Feb. 1, 2011, 9:15 p.m.
Message ID <b7d130880de0b1396c53656ddffaa39fbf2f0a36.1296594961.git.jan.kiszka@web.de>
Download mbox | patch
Permalink /patch/81401/
State New
Headers show

Comments

Jan Kiszka - Feb. 1, 2011, 9:15 p.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

Reported by Stefan Hajnoczi.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 target-i386/kvm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

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