Initialize IA32_FEATURE_CONTROL MSR in reset and migration

The recent KVM patch adds IA32_FEATURE_CONTROL support. QEMU needs
to clear this MSR when reset vCPU and keep the value of it when
migration. This patch add this feature.

Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
target-i386: remove tabs from target-i386/cpu.h

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
kvm: migrate vPMU state

Reviewed-by: Gleb Natapov <gnatapov@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
kvm: add KVM_IRQFD_FLAG_RESAMPLE support

Added an EventNotifier* parameter to
kvm-all.c:kvm_irqchip_add_irqfd_notifier(), in order to give KVM
another eventfd to be used as "resamplefd". See the documentation
in the linux kernel sources in Documentation/virtual/kvm/api.txt
(section 4.75) for more details.
When the added parameter is passed NULL, the behaviour of the
function is unchanged with respect to the previous versions.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ivshmem: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pci-testdev: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vfio: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
e1000: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
eepro100: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ne2000: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pcnet: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rtl8139: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vmxnet3: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
shpc: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pci_bridge: split pci_bridge_exitfn from pci_bridge_free

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pcie_aer: pcie_aer_exit really frees stuff

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pci_bridge: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ioh4320: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
xio3130-downstream: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
xio3130-upstream: use instance_finalize instead of exit

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>