From: Juan Quintela <quint...@redhat.com> Signed-off-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Avi Kivity <a...@redhat.com>
diff --git a/hw/apic.c b/hw/apic.c index 5ed5c98..3a2e128 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -968,9 +968,9 @@ void qemu_kvm_load_lapic(CPUState *env) static void apic_pre_save(const void *opaque) { +#ifdef KVM_CAP_IRQCHIP APICState *s = (void *)opaque; -#ifdef KVM_CAP_IRQCHIP if (kvm_enabled() && qemu_kvm_irqchip_in_kernel()) { kvm_kernel_lapic_save_to_user(s); } @@ -979,9 +979,9 @@ static void apic_pre_save(const void *opaque) static int apic_post_load(void *opaque) { +#ifdef KVM_CAP_IRQCHIP APICState *s = opaque; -#ifdef KVM_CAP_IRQCHIP if (kvm_enabled() && qemu_kvm_irqchip_in_kernel()) { kvm_kernel_lapic_load_from_user(s); } -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html