OSDN Git Service

kvm/ioapic: dump real object instead of a fake one
authorPeter Xu <peterx@redhat.com>
Fri, 3 Feb 2017 07:18:16 +0000 (15:18 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Feb 2017 13:06:55 +0000 (14:06 +0100)
commitc6fcb0e201ad296a9c0f587486830d9508094efb
tree02d88091fccc90e2d45b15d8c747de30d6b5f22f
parent5dae13cd71f0755a1395b5a4cde635b8a6ee3f58
kvm/ioapic: dump real object instead of a fake one

When we do "info ioapic" for kvm ioapic, we were building up a temporary
ioapic object. Let's fetch the real one and update correspond to the
real object as well.

This fixes printing uninitialized version field in
ioapic_print_redtbl().

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1486106298-3699-2-git-send-email-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/kvm/ioapic.c