]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
hw/i386/kvm/ioapic.c: fix typo in error message
authorKenta Ishiguro <kentaishiguro@slowstart.org>
Fri, 17 Jul 2020 12:35:14 +0000 (21:35 +0900)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 1 Sep 2020 06:59:34 +0000 (08:59 +0200)
Fix a typo in an error message for KVM_SET_IRQCHIP ioctl:
"KVM_GET_IRQCHIP" should be "KVM_SET_IRQCHIP".

Fixes: a39c1d47ac ("kvm: x86: Add user space part for in-kernel IOAPIC")
Signed-off-by: Kenta Ishiguro <kentaishiguro@slowstart.org>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Message-Id: <20200717123514.15406-1-kentaishiguro@slowstart.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/i386/kvm/ioapic.c

index 4ba8e472510d450010bdd5a88b7b71a856a1547f..c5528df942a29a6c40a52f1d47ac03e1b82b0cdc 100644 (file)
@@ -97,7 +97,7 @@ static void kvm_ioapic_put(IOAPICCommonState *s)
 
     ret = kvm_vm_ioctl(kvm_state, KVM_SET_IRQCHIP, &chip);
     if (ret < 0) {
-        fprintf(stderr, "KVM_GET_IRQCHIP failed: %s\n", strerror(ret));
+        fprintf(stderr, "KVM_SET_IRQCHIP failed: %s\n", strerror(ret));
         abort();
     }
 }