diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2009-08-09 15:54:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-09 16:28:34 -0400 |
commit | 9f51e24ee8b5a1595b6a5ac0c2be278a16488e75 (patch) | |
tree | 59de398ad0311cfa351df01b6986cc7d3d209e66 /arch/x86/kvm/x86.c | |
parent | 8bdbd962ecfcbdd96f9dbb02d780b4553afd2543 (diff) |
x86: Use printk_once()
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
LKML-Reference: <1249847649-11631-6-git-send-email-marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index fe5474aec41a..0572c90f0c84 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2261,12 +2261,7 @@ static int emulator_cmpxchg_emulated(unsigned long addr, | |||
2261 | unsigned int bytes, | 2261 | unsigned int bytes, |
2262 | struct kvm_vcpu *vcpu) | 2262 | struct kvm_vcpu *vcpu) |
2263 | { | 2263 | { |
2264 | static int reported; | 2264 | printk_once(KERN_WARNING "kvm: emulating exchange as write\n"); |
2265 | |||
2266 | if (!reported) { | ||
2267 | reported = 1; | ||
2268 | printk(KERN_WARNING "kvm: emulating exchange as write\n"); | ||
2269 | } | ||
2270 | #ifndef CONFIG_X86_64 | 2265 | #ifndef CONFIG_X86_64 |
2271 | /* guests cmpxchg8b have to be emulated atomically */ | 2266 | /* guests cmpxchg8b have to be emulated atomically */ |
2272 | if (bytes == 8) { | 2267 | if (bytes == 8) { |