X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=arch%2Fx86%2Fkvm%2Fx86.c;h=633ccc7400a43ea230e3c02b252d4b80ff838140;hb=99bc47067910f7070e65ee318a6dd79a2371f1e5;hp=3d45290118284223ffc1c3d2c66fa0ffd08ba1cf;hpb=1110afbe728838ac7ce973c37af9e11385dbaef9;p=~andy%2Flinux diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 3d452901182..633ccc7400a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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) {