]> Pileus Git - ~andy/linux/blobdiff - arch/x86/kvm/x86.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next-2.6
[~andy/linux] / arch / x86 / kvm / x86.c
index 3d45290118284223ffc1c3d2c66fa0ffd08ba1cf..633ccc7400a43ea230e3c02b252d4b80ff838140 100644 (file)
@@ -2297,12 +2297,7 @@ static int emulator_cmpxchg_emulated(unsigned long addr,
                                     unsigned int bytes,
                                     struct kvm_vcpu *vcpu)
 {
-       static int reported;
-
-       if (!reported) {
-               reported = 1;
-               printk(KERN_WARNING "kvm: emulating exchange as write\n");
-       }
+       printk_once(KERN_WARNING "kvm: emulating exchange as write\n");
 #ifndef CONFIG_X86_64
        /* guests cmpxchg8b have to be emulated atomically */
        if (bytes == 8) {